pragmagic / vscode-nim

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

Something wrong with syntax analyzing& Channels #83

Closed R3D9477 closed 6 years ago

R3D9477 commented 6 years ago

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

RSDuck commented 6 years ago

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

R3D9477 commented 6 years ago

@RSDuck thanks!

oskca commented 6 years ago

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