-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bridgestan on Julia crashes on windows if .julia path has spaces #160
Comments
I believe that this is a restriction of mingw32-make, which we currently use for our build process. I’m not sure if we can work around this as long as we rely on that tool, but it’s good to investigate and note either way. Thanks for the report! |
Thank you! Strangely though, that seems to happen before
and
I was puzzled it would crash during package install since the Julia Do you think potentially the problem is could rather be coming from the |
Hm, that filename is 281 characters long, which is just over the ~280 character “limit” I’ve observed certain processes on Windows failing at. For example, the Prophet python package (based on Stan) recently had issues with very long path names: The space in the path probably would have also caused problems later, but I suspect whatever alternative path was chosen was also shorter, not just space free. I believe this kind of issue can occur even if the LongPathsEnabled registry key is set, possibly because the Win32 API used by mingw32-make (and, since julia is also compiled with gcc on windows, I assume Julia uses this too) may ignore that setting as it is a relatively recent addition to the windows runtime. |
Wow! Interesting, I didn't know about that crazy windows limitation. How people can live like this? ;) Thank you!! |
Some more information (or at least relevant-sounding issues): JuliaLang/Pkg.jl#1943 (comment) This second post implies that LongPathsEnabled may have fixed it in their case, but this had no impact the last time I encountered an issue of this flavor on Windows I suppose this kind of thing is good to document somewhere, but I’m not sure how to phrase it in a way that doesn’t sound super tin-foil-hat-y |
Thanks for the nice project! It has been quite helpful to use in our Julia distributed parallel tempering project, https://github.com/Julia-Tempering/Pigeons.jl
One of our users reported that the Julia bridgestan fails during precompilation if the path to
.julia
in windows contains a space. For reference: Julia-Tempering/Pigeons.jl#80 (comment)Not sure if this relevant here, but we had a similar problem in another project at some point and found that using raw strings of the form
raw"code/for/building/paths/from/$variable"
was necessary to support windows + path with spaces.The text was updated successfully, but these errors were encountered: