c3lang / editor-plugins

Editor plugins for C3
MIT License
34 stars 15 forks source link

Language server on Windows and VSCode #22

Open Nazeofel opened 1 month ago

Nazeofel commented 1 month ago

I am running in this error when starting the VSCode extension 'C3' on VSCode.

I am using Windows 10

[Error - 8:08:21 PM] C3LSP client: couldn't create connection to server. Launching server using command c:\Users\celsi.vscode\extensions\tonios2.c3-vscode-0.0.83\c3-lsp-windows failed. Error: spawn c:\Users\celsi.vscode\extensions\tonios2.c3-vscode-0.0.83\c3-lsp-windows ENOENT

Dimension4 commented 1 month ago

Ran into the same issue, I think the urls of the extension are messed up, you want https://github.com/tonis2/c3-vscode. I've found a simple fix for the issue https://github.com/tonis2/c3-vscode/issues/1

Nazeofel commented 1 month ago

Excuse me for my lack of knowledge but where do you find the exe you are talking about ?

Nazeofel commented 1 month ago

Update, found it and modified it in the .vscode folder of my computer but still is not working, did you have to recompile it or something ?

Dimension4 commented 1 month ago
  1. go to ~\.vscode\extensions\tonios2.c3-vscode-0.0.83\
  2. rename the file c3-lsp-windows to c3-lsp-windows.exe
  3. open extension.js
  4. search for c3-lsp-windows and replace that finding with c3-lsp-windows.exe (should be 1 match in line 26)
  5. restart VS Code
Nazeofel commented 1 month ago

It seems to have worked, but I got no auto completions / cannot jump to definitions, atleast I got colors