diff options
author | flywind <xzsflywind@gmail.com> | 2022-03-26 18:50:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-26 11:50:15 +0100 |
commit | 82319ef00dc9ce6f65b1664024a10ee5d9465f38 (patch) | |
tree | 49c013001ebb12cb81b19e91cec0c0bb1a187317 /compiler | |
parent | 8cdd8867c0237c28f7a43e6f871507eda207a15d (diff) | |
download | Nim-82319ef00dc9ce6f65b1664024a10ee5d9465f38.tar.gz |
fix #8219; nim check/dump shouldn't run single nimscript project [backport: 1.6] (#19641)
* fix #8219; nim check/dump shouldn't run single nimscript project [backport: 1.6]
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/nimconf.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/nimconf.nim b/compiler/nimconf.nim index 319a3de6d..fceedb2c4 100644 --- a/compiler/nimconf.nim +++ b/compiler/nimconf.nim @@ -301,7 +301,7 @@ proc loadConfigs*(cfg: RelativeFile; cache: IdentCache; conf: ConfigRef; idgen: if conf.cmd == cmdNimscript: showHintConf() conf.configFiles.setLen 0 - if conf.cmd != cmdIdeTools: + if conf.cmd notin {cmdIdeTools, cmdCheck, cmdDump}: if conf.cmd == cmdNimscript: runNimScriptIfExists(conf.projectFull, isMain = true) else: @@ -311,5 +311,6 @@ proc loadConfigs*(cfg: RelativeFile; cache: IdentCache; conf: ConfigRef; idgen: runNimScriptIfExists(scriptFile, isMain = true) else: # 'nimsuggest foo.nims' means to just auto-complete the NimScript file + # `nim check foo.nims' means to check the syntax of the NimScript file discard showHintConf() |