Skip to content
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

[BUG] Julia REPL crashes when Julia Path contains environment variables. #439

Closed
racinmat opened this issue Dec 8, 2019 · 3 comments
Closed
Labels

Comments

@racinmat
Copy link

racinmat commented Dec 8, 2019

Details

  • Atom version: 1.41.0
  • Julia version: 1.3.0
  • OS: Windows 10 Pro
  • Package versions:
    • Atom.jl: 0.11.3
    • julia-client: 0.11.3
    • ink: 0.11.7

Steps to reproduce

  1. Use environment variable in a Julia path in settings of julia-client, e.g. %HOMEPATH%\AppData\Local\Julia-1.3.0\bin\julia.exe

  2. Julia REPL crashes, showing:

Press Enter to start Julia. 
Start-Process : This command cannot be run due to the error: The system cannot find the file
specified.
At C:\Users\Azathoth\.atom\packages\julia-client\script\spawnInterruptible.ps1:8 char:9
+ $proc = Start-Process "`"$jlpath`"" $jlargs -NoNewWindow -PassThru
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Start-Process], InvalidOperationException
    + FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcess
   Command

I want to use env vars here, because I use sync-settings to synchronize settings between two PCs which have Julia installed in different directories, but same directory relatively to the %HOMEPATH% variable.

@racinmat racinmat added the bug label Dec 8, 2019
@pfitzseb
Copy link
Member

pfitzseb commented Feb 4, 2020

Just use ~ instead of %HOMEPATH% (which looks up USERPROFILE). I don't think supporting arbitrary env variables makes any sense here.

@pfitzseb pfitzseb closed this as completed Feb 4, 2020
@racinmat
Copy link
Author

racinmat commented Feb 5, 2020

And does the ~ work on windows? Because usually windows does not support ~ for home directory.

@pfitzseb
Copy link
Member

pfitzseb commented Feb 5, 2020

It does, yes. We're internally resolving that to %USERPROFILE%.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants