Multiple Language Support in a single Repl

Question:
I have a pygame repl that uses ctypes to “talk” to C++ and draw on the screen what a C++ function tells it to. This works. The problem is that the repl is by default configured so that it has no language server support for my C++ file, pymodule.cpp, which contains the python/C++ extension code. This means no error highlighting, code completion, etc, which makes it difficult to write code.

Repl Link: https://replit.com/@GriffinSchreibe/CPygame-Interface

Thank you in advance.

Perhaps try copying in a lot of the .replit configuration from a C++ repl. It might conflict with the python modules though.

4 Likes

Thank you for your quick response! I added

[languages]

[languages.cpp]
pattern = "**/*.{cpp,h}"

[languages.cpp.languageServer]
start = "ccls"

to the .replit file, and now it works.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.