pragmagic / vscode-nim

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

template/generic instantiation of `____` from here #125

Open kobi2187 opened 4 years ago

kobi2187 commented 4 years ago

template/generic instantiation of mapIt from here

in vscode, it shows as an error, but when compiling from the command line, compilation is ok. This "error" is more like a hint, as far as I understand.

I am filing it here (instead of at the nim repository), since compilation succeeds.

It's just a minor annoyance of course, but I see it for a long time now, and thought to address this issue. Thanks

ktiy commented 3 years ago

i looked into this just a tiny bit because it was bugging me as well

on these errors, severity (sev) is not defined image while it's defined on other errors image

the switch statement there defaults to returning an error, which it will do in the case of undefined severity ;_;

adding if (!error.severity) return; seemed to fix the issue but im not sure if that's the best way to go about fixing; either way, i've opened #173

(i know kosz89 has assigned himself but it has been over a year)