vertexclique / tokamak

Fusion Reactor for Rust - Atom Rust IDE
https://vertexclique.github.io/tokamak/
MIT License
399 stars 13 forks source link

Tokomak can't find rustup during install, but rustup is there #70

Open lilith opened 7 years ago

lilith commented 7 years ago
Failed to spawn command $HOME/.cargo/bin/rustup. Make sure $HOME/.cargo/bin/rustup is installed and on your PATH

>  $HOME/.cargo/bin/rustup
rustup 1.0.0 (17b6d21 2016-12-15)
vertexclique commented 7 years ago

If rustup is not in your PATH it can't be detected.

lilith commented 7 years ago

It's in $PATH.

lilith commented 7 years ago

Sorry, just realized markdown was hiding the error I reported. Inserted newline.

vertexclique commented 7 years ago

can you expand the path and try again? like:

/home/nathanaeljones/.cargo/bin/rustup

lilith commented 7 years ago

This is only during package installation. It works afterwards, and in the terminal.

vertexclique commented 7 years ago

Cool, will take a look at it. By default if it couldn't find that, it defaults to $HOME/.cargo/bin/rustup. I don't know why was the reason but i will try to reproduce. Thanks for feedback.

lilith commented 7 years ago

Yeah, $HOME/.cargo/bin/rustup is where rustup is located. I'm using nightly-2017-03-04, in case that matters.

nullterminated commented 7 years ago

I had this same problem. In my .bashrc file I had put

export PATH=$PATH:~/.cargo/bin

The problem went away when I changed that to

export PATH=$PATH:$HOME/.cargo/bin

vertexclique commented 6 years ago

Ok, this looks like tilde expansion problem. By default, I bypassed this by using $HOME variable.