nim-lang / vscode-nim

A VS Code plugin for the Nim language
Other
75 stars 8 forks source link

Undeclared identifiers in `.nims` files #74

Open marcinczenko opened 2 months ago

marcinczenko commented 2 months ago

Nim version: 2.0.8 [MacOSX: arm64] VSCode Extension Version: v0.9.0

I am quite new to Nim ecosystem and community. I am using vscode-nim extension and when writing Nim Script files .nims, I am getting lots of undeclared identifier errors. For example:

image
mode = ScriptMode.Verbose

task hello, "say hello":
  echo "Hello, world!"

When running nim check on that file everything is working fine and no problems are reported, which seemed to be a problem in the past as well (see https://github.com/nim-lang/Nim/issues/19440).

Is there a way to fix this? Or maybe at least a way to ignore certain (type of) file?