Playground.jl icon indicating copy to clipboard operation
Playground.jl copied to clipboard

Deactivating playground throws error if last command returned non-zero

Open christopher-dG opened this issue 7 years ago • 0 comments

[ ~ ] playground activate --name lorenzoland ~/.playground/lorenzoland
[ ~ ] true
[ ~ ]  # Deactivate here
[ ~ ] playground activate --name lorenzoland ~/.playground/lorenzoland
[ ~ ] false
[ ~ ]  # Deactivate here
ERROR: LoadError: failed process: Process(`/usr/local/bin/zsh -c 'source /Users/degraafc/.playground/lorenzoland/zshrc; /usr/local/bin/zsh'`, ProcessExited(1)) [1]
Stacktrace:
 [1] pipeline_error(::Base.Process) at ./process.jl:682
 [2] run(::Cmd) at ./process.jl:651
 [3] runshell(::String) at /Users/degraafc/.julia/v0.6/Playground/src/shell.jl:31
 [4] withenv(::Playground.##16#17{String}, ::Playground.Environment) at /Users/degraafc/.julia/v0.6/Playground/src/env.jl:167
 [5] #activate#15(::Bool, ::Function, ::Playground.Environment) at /Users/degraafc/.julia/v0.6/Playground/src/activate.jl:22
 [6] (::Playground.#kw##activate)(::Array{Any,1}, ::Playground.#activate, ::Playground.Environment) at ./<missing>:0
 [7] main(::Array{String,1}) at /Users/degraafc/.julia/v0.6/Playground/src/Playground.jl:86
 [8] include_from_node1(::String) at ./loading.jl:569
 [9] include(::String) at ./sysimg.jl:14
 [10] process_options(::Base.JLOptions) at ./client.jl:305
 [11] _start() at ./client.jl:371
while loading /Users/degraafc/.playground/bin/playground, in expression starting on line 4
[ ~ ]

On zsh 5.3.1, MacOS.

christopher-dG avatar Oct 11 '17 12:10 christopher-dG