task tests, "run tests":
--hints: off
--linedir: on
--stacktrace: on
--linetrace: on
--debuginfo
--path: "."
--run
var dir_list = listDirs("tests")
dir_list.keepItIf(it != "tests/nimcache")
# segfaults
task tests, "run tests":
--hints: off
--linedir: on
--stacktrace: on
--linetrace: on
--debuginfo
--path: "."
--run
var dir_list = @["tests/nimcache"] # and other subdirs
dir_list.keepItIf(it != "tests/nimcache")
# works fine
task tests, "run tests":
--hints: off
--linedir: on
--stacktrace: on
--linetrace: on
--debuginfo
--path: "."
--run
var dir_list = newSeq[string]()
for dir in listDirs("tests"):
if dir != "tests/nimcache":
dir_list.add(dir)
# also works
I wasn't sure if it was a bug or I don't get how NimScript does things so I didn't want to create a bug issue yet.