nim-lang / Nim

Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).
https://nim-lang.org
Other
16.55k stars 1.47k forks source link

"undeclared identifier: 'setCommand'" in nimscript #12253

Closed dawkot closed 5 years ago

dawkot commented 5 years ago
setCommand "js"

undeclared identifier: 'setCommand'

The error is shown both in the editor and when running the .nims file... but it actually does what it's supposed to when compiling the .nim file itself.

Nim Compiler Version 1.0.0 [Windows: amd64]

https://nim-lang.org/docs/nimscript.html#setCommand%2Cstring%2Cstring

Araq commented 5 years ago

You cannot "run" a Nimscript file, it's a configuration file, it gets picked up when you compile a .nim file.