Closed Wh1teDuke closed 5 years ago
Yeah, a "directory" string should never be an empty string; it doesn't make sense as "" directory means nothing.
This issue feels like a deja vu; I had reported a similar issue ( https://github.com/nim-lang/Nim/issues/9985 ) where projectDir()
in .nims returned an empty string, and that is already fixed.
@Araq Is there a way to constrain only the directory string returning functions to never return an empty string? Can the type still be string, but kind of be a subset of the string type where "" is an invalid value?
@kaushalmodi Nothing beyond assert
exists for that.
cannot reproduce. Is it still a problem. With both commands I get the correct directory.
cannot reproduce. Is it still a problem. With both commands I get the correct directory.
In my computer the issue persists.
Works for me here too. Unreproducible.
Test.nims:
CMD:
This wasn't an issue two days ago.