You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--path doesn't work well when given a relative path in some cases at least; eg --path:. (or --path:compiler/..) fails below (down the line, not immediately) whereas --path:$(pwd) (or using explicit absolute path) works
Example
create /mypathto/extend_aux.nim containing:
import std/nre
import compiler/ast
add import extend_aux at the end of ./compiler/nim.nim in nim sources (for example at latest devel, b67dea7)
recompile nim as follows:
bin/nim c --skipUserCfg -o:/tmp/nim --stylecheck:off --path:/mypathto/ --noNimblePath --path:. compiler/nim.nim
fails with --path:.
fails with other equivalent relative paths eg --path:compiler/..
works with equivalent absolute path eg --path:$(pwd)
The text was updated successfully, but these errors were encountered:
timotheecour
changed the title
nim c --path: silently gives wrong results with relative paths--path: silently gives wrong results with relative paths
Dec 28, 2019
timotheecour
changed the title
--path: silently gives wrong results with relative paths
[minor] --path: silently gives wrong results with relative paths
Dec 28, 2019
--path
doesn't work well when given a relative path in some cases at least; eg--path:.
(or--path:compiler/..
) fails below (down the line, not immediately) whereas--path:$(pwd)
(or using explicit absolute path) worksExample
add
import extend_aux
at the end of./compiler/nim.nim
in nim sources (for example at latest devel, b67dea7)recompile nim as follows:
fails with
--path:.
fails with other equivalent relative paths eg
--path:compiler/..
works with equivalent absolute path eg
--path:$(pwd)
Current Output
Expected Output
works
Additional Information
D20191228T161300
at nim devel b67dea7
The text was updated successfully, but these errors were encountered: