You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I’m testing this package, and it works wonderfully, but there's an issue with the Nim LSP and VSCode that I can’t resolve.
I believe this might be a configuration issue in my editor, but since the example in this repo is configured for VSCode, I expect it to work correctly with the official Nim extension.
The LSP doesn’t work due to the following error:
syncio.nim(767) open
Error: unhandled exception: cannot open: /Users/juancarlosllh/Projects/Playdate/hello_world_nim/playdate/bindings/malloc.nim [IOError]
This error causes the LSP to restart, and features like autocomplete, go to definition, etc., stop working.
The issue seems to be caused by the config.nims file. If I comment out the line include playdate/build/config in this file, the LSP works correctly.
A workaround is to comment out this line when the editor starts. After that, if I uncomment it, everything works as expected.
I'm using VSCode 1.95.3 with the official nim-lang.org extension, Nim 2.20.0 and Nimble 0.16.1
The text was updated successfully, but these errors were encountered:
JuanCarlosllh
changed the title
Error with Nim Lsp and VSCode with config.nims
LSO error with VSCode and config.nims file
Nov 30, 2024
JuanCarlosllh
changed the title
LSO error with VSCode and config.nims file
LSP error with VSCode and config.nims file
Nov 30, 2024
Hello! I’m testing this package, and it works wonderfully, but there's an issue with the Nim LSP and VSCode that I can’t resolve.
I believe this might be a configuration issue in my editor, but since the example in this repo is configured for VSCode, I expect it to work correctly with the official Nim extension.
The LSP doesn’t work due to the following error:
This error causes the LSP to restart, and features like autocomplete, go to definition, etc., stop working.
The issue seems to be caused by the
config.nims
file. If I comment out the lineinclude playdate/build/config
in this file, the LSP works correctly.A workaround is to comment out this line when the editor starts. After that, if I uncomment it, everything works as expected.
I'm using VSCode 1.95.3 with the official nim-lang.org extension, Nim 2.20.0 and Nimble 0.16.1
The text was updated successfully, but these errors were encountered: