I have foo.nimble with line bin = @["bar"]
Both src/foo.nim and src/bar.nim exist
.vscode/settings.json is:
{
"nim.project": [
"src/bar.nim"
]
}
When vscode is launched, nimsuggest is executed only on src/foo.nim and warning is raised for src/bar.nim:
/home/arkanoid/nim/example/src/bar.nim is not compiled as part of project /home/arkanoid/nim/example/src/foo.nim. In orde to get the IDE features working you must either configure nim.projectMapping or import the module.
I can clearly see that the settings.json file is read into the DBG Received the following configuration debug terminal.
basically getProjectFileAutoGuess overwrites user preference in settings.json
TL;DR; These two functions are fighting each other https://github.com/nim-lang/langserver/blob/3eb83dabfba18f079fca72f1b72199f01beb13b5/nimlangserver.nim#L139 https://github.com/nim-lang/vscode-nim/blob/7dfe32a99bd51da7984aaf3d7cd48959751418f5/src/nimProjects.nim#L123
I have
foo.nimble
with linebin = @["bar"]
Bothsrc/foo.nim
andsrc/bar.nim
exist.vscode/settings.json
is:When vscode is launched,
nimsuggest
is executed only onsrc/foo.nim
and warning is raised forsrc/bar.nim
:I can clearly see that the
settings.json
file is read into theDBG Received the following configuration
debug terminal.basically
getProjectFileAutoGuess
overwrites user preference insettings.json