pragmagic/vscode-nim

Something wrong with syntax analyzing& Channels

Closed this issue · 3 comments

Hi. I using type Channel and see that (also autocompletion doen't work; probably I must define something "--threads:on" for Nim's parser/autocompletion?):
3
But project compiles without errors and works fine.
What I'm doing wrong?
thr_spawned_channels.zip

create a file inside your src folder, named nim.cfg and put the following content inside it:

threads:on

You might also remove the --threads:on from your build_c_debug.nims file

@RSDuck thanks!

oskca commented

Adding nim.cfg works, but vscode-nim would ignore settings in config.nims which shall be of the same functionality of nim.cfg as the documentation said