My code is working well, and I'm trying out --gc:orc now. So I added that flag to my nim.cfg and ran nimble build. OK, it compiles. But then nimble test fails as soon as it compiles anything. In fact, if I run nim c tests/xxxx.nim, where "xxxx" is anything, whether or not such a file exists, I get this error:
/Users/snej/.choosenim/toolchains/nim-1.2.2/lib/system/assertions.nim(22, 11) template/generic instantiation of `sysFatal` from here
/Users/snej/.choosenim/toolchains/nim-1.2.2/lib/system/fatal.nim(49, 5) Error: system module needs: nimDestroyAndDispose
My other source directories don't have this problem. The only thing special about tests/ is that it has a config.nims file, containing the line switch("path", "$projectDir/../src"). I believe this was created automatically by nimble init.
What's going on here??
With devel (downloaded/installed this morning) I get the exact same error:
$ nimble test
Executing task test in /Users/snej/Code/nim/blip/blip.nimble
Verifying dependencies for blip@0.1.0
Info: Dependency on news@>= 0.5.0 already satisfied
Verifying dependencies for news@0.5
Info: Dependency on zip@>= 0.2.1 already satisfied
Verifying dependencies for zip@0.2.1
Compiling /Users/snej/Code/nim/blip/tests/testCodec (from package blip) using c backend
/Users/snej/.choosenim/toolchains/nim-#devel/lib/system/assertions.nim(23, 11) template/generic instantiation of `sysFatal` from here
/Users/snej/.choosenim/toolchains/nim-#devel/lib/system/fatal.nim(49, 5) Error: system module needs: nimDestroyAndDispose
Tip: 5 messages have been suppressed, use --verbose to show them.
Error: Execution failed with exit code 256
... Command: "/Users/snej/.nimble/bin/nim" c --noNimblePath -d:NimblePkgVersion=0.1.0 --path:"/Users/snej/Code/nim/news/src" --path:"/Users/snej/Code/nim/zip" "-r" "--path:." "/Users/snej/Code/nim/blip/tests/testCodec"