-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
pathutils./ can return invalid AbsoluteFile
Example
import compiler/pathutils
proc main()=
var a: AbsoluteDir
let b = "../foo".RelativeFile
let c: AbsoluteFile = a/b
echo c
main()Current Output
../foo
Expected Output
../foo is not absolute so there's a loophole in API
Possible Solution
- making a empty behave as
cwd - throwing an exception is another option
Additional Information
- devel a33b72a
- root cause of successX now correctly shows html output for
nim doc,nim jsondoc; fix #13121 #13116 (comment)
Note: I dislike AbsoluteFile,AbsoluteDir,RelativeFile,RelativeDir as I've written in nim-lang/RFCs#71 and I think we can find a better API; at least it's not exposed outside compiler
Metadata
Metadata
Assignees
Labels
No labels