Passing paths as ARGS on Windows
The following script doesn't work on my computer
# script.jl
println(ARGS)
julia --project --startup-file=no -e "using DaemonMode; runargs()" .\script.jl "D:\w"
PAUSE
The error message is
ERROR: ERROR: MethodError: no method matching (::Colon)(::Int64, ::Nothing)
Whereas this is fine
julia --project .\script.jl "D:\w"
PAUSE
It seems that DaemonMode tries to process the ARGS and has problems with the windows path delimiters ''?
As a workaround, one could use
julia --project=. --startup-file=no -e "using DaemonMode; ARGS .= replace.(ARGS, '\\' => '/'); runargs()" .\scripts\show_video.jl "D:\w"
Which is of course not really a good solution.
Thank you for your issue. I have been checking it, and the problem is the "\" in the PATH, because when it is sent from the client to the server the "\w" is updated to "\w", giving that error. I will try to fix it in a few days.
Hi @dmolina, thanks for the quick reply.
I also noticed also that spaces in paths are also tricky to pass. It seems that during the socket communication those also get split into different arguments, independent of quotes.
(Anyway, both things are easy to work around so far.)