vscode-nim icon indicating copy to clipboard operation
vscode-nim copied to clipboard

Channel

Open jiuker opened this issue 5 years ago • 6 comments

undeclared identifier: 'Channel'

jiuker avatar Jun 16 '20 05:06 jiuker

please be more descriptive with your issues. The only reason we can know what you mean, is because this is a common issue.

You need to make a nimscript file for nim check and nim suggest to pickup the threads option.

RSDuck avatar Jun 16 '20 08:06 RSDuck

I've seen the same bug in vscode-nim

  • Windows 10.
  • Nim plugin version: O.66 Screenshot (642)

serge-hulne avatar Jul 29 '20 19:07 serge-hulne

That's not a VSCode bug, you need to provide configuration for Nim (and Nimsuggest since it uses the compiler) for it to understand that you're actually using threads.

There are mainly 2 ways - with older .nim.cfg and newer .nims, but the syntax for simple options is the same. E.g. make a file named as1.nims or as1.nim.cfg or config.nims (that'll apply to all .nim files in the same directory) or nim.cfg (same as with config.nims but older format) with contents:

--threads:on

And then Nimsuggest will actually recognize that you're using threads.

Yardanico avatar Jul 30 '20 06:07 Yardanico

Also yeah, as @RSDuck said this is a duplicate of https://github.com/pragmagic/vscode-nim/issues/98 and https://github.com/pragmagic/vscode-nim/issues/70 and should be closed.

Yardanico avatar Jul 30 '20 06:07 Yardanico

Thanks.

serge-hulne avatar Jul 30 '20 06:07 serge-hulne

I commented on the issue, I didn't raise it, but yes it should be closed.

On Thu, Jul 30, 2020 at 8:40 AM Danil Yarantsev [email protected] wrote:

Also yeah, as @RSDuck https://github.com/RSDuck said this is a duplicate of #98 https://github.com/pragmagic/vscode-nim/issues/98 and #70 https://github.com/pragmagic/vscode-nim/issues/70 and should be closed.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pragmagic/vscode-nim/issues/166#issuecomment-666158829, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACKDDWAI6JDWGMTYICHJZ3R6EIURANCNFSM4N7IKM7A .

serge-hulne avatar Jul 30 '20 09:07 serge-hulne