--path:"../src" does not seem to work in config.nims nor module.nims files. It works on the command line so what I am doing wrong?
2015-10-01 01:46:59
Use switch("path", "../src"). Not sure yet what causes this.
2015-10-01 02:06:37
@Araq, when I use nim installed via ./install.sh, ./koch tests c newconfig fails:
FAIL: tfoo.nim
Test "tests/newconfig/tfoo.nim" in category "newconfig"
Failure: reNimcCrash

invalid command: 'default'
, but the command PATH=$PATH:bin ./koch tests c newconfig works:
/home/vega/work/nim/Nim/tests/testament/tester c newconfig
PASS: tfoo.nim
2015-10-01 04:55:49
So? Where do we say koch tests is a general purpose tool for Nimsters that works even after you used ./install.sh which is not recommended.
2015-10-01 09:19:49
@Araq, The problem is not only about the compiler's test. I can't build my project using config.nims, if $PATH variable points to ./install.sh version of the nim compiler.
2015-10-01 09:31:45
@vega, ok, sorry! Will fix it asap. 2015-10-01 11:17:06
Problem with not working switches is interesting. Both --define:release and switch("define", "release") are picked up by when in compiled application, however compiled executable size remails 162KB. Adding --define:release to command line makes executable size 60KB. Maybe this will help to narrow it down.
2015-10-01 16:50:22

Hello, i have several questions:

1) How are tasks executed. There is no information in the docs, i suppose you run them with nim [scriptName].nims [taskName]

2) I get Error: cannot 'importc' variable at compile time when executing this script with nim build.nims build:

task build:
  exec "nim c src/main.nim"
  setCommand "nop"

2015-11-03 08:41:46
  1. nim taskName project.nim (NOT project.nims).
  2. Not sure, does it work without the mkDir?

@r-ku That is a problem because the configuration system doesn't perform a fixpoint iteration, so by the time -d:release is picked up, the default config already set the other switches and it's too late. This issue has nothing to do with nimscript, the old configuration files have exactly this problem too.

EDIT: My own nimscript files use mkDir. Works for me.

2015-11-03 09:23:13
@Arrrrrr you can also do
task build:
  setCommand "c", "src/main.nim"
2015-11-03 09:41:10