pragmagic / vscode-nim

An extension for VS Code which provides support for the Nim language.
Other
237 stars 37 forks source link

Undeclared identifier: Channel #70

Closed peheje closed 6 years ago

peheje commented 6 years ago

I get undefined identifier on Channel and Thread etc. See image.

screenshot 2017-10-24 20 32 52
peheje commented 6 years ago

Solved: Create a file called nim.cfg in root, in it write --threads:on, restart VSCode, give it a few seconds.

theAkito commented 3 years ago

Works for the threads module, as well. That said, I honestly perceive this more like a workaround than an actual solution. Any chance this could be solved in the project, without requiring us to issue this workaround, @kosz78?

RSDuck commented 3 years ago

this isn't a workaround, nimsuggest has to learn which parameters you use from somewhere. Creating a nims/cfg file is recommended anyway so that the build parameters don't need to be given over command line every time.