pragmagic/vscode-nim

Undeclared identifier: Channel

Closed this issue · 3 comments

I get undefined identifier on Channel and Thread etc. See image.
screenshot 2017-10-24 20 32 52

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

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?

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.