I'm getting an error that I don't understand when using **setCurrentDir**.
I set up making a string that creates a path that I confirm exists.
let newpath = unixToNativePath(getCurrentDir() & "newdir")
discard existsOrCreateDir(newpath)
assert existsDir(newpath)
then I try to switch to that directory
discard setCurrentDir(newpath)
which results in
> Error: expression 'setCurrentDir(newpath)' has no type (or is ambiguous)
so, I try setting the named parameter
discard setCurrentDir(newDir: newpath)
which results in
> Error: type expected
other variations haven't gotten me past this. I expect it is something obvious
that I'm overlooking. I've only been using Nim for a couple days, but it has
been the most productive coding experience in all my years of programming ....
right up until I hit this. Any clues would be appreciated. Thanks!