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

[zsh] activate-rust is missing #21

Open
lowks opened this issue Oct 27, 2016 · 11 comments
Open

[zsh] activate-rust is missing #21

lowks opened this issue Oct 27, 2016 · 11 comments

Comments

@lowks
Copy link
Contributor

lowks commented Oct 27, 2016

It can download now, but:

~/D/envirius-0.8.1 ❯❯❯ nv mk rust --rust-prebuilt=1.12.1
Creating environment: rust ...
 * installing rust-prebuilt==1.12.1 ...
plug_post_install_actions:6: no such file or directory: /home/lowks/.envirius/envs/rust/bin/activate-rust
plug_post_install_actions:7: no such file or directory: /home/lowks/.envirius/envs/rust/bin/activate-rust
plug_post_install_actions:8: no such file or directory: /home/lowks/.envirius/envs/rust/bin/activate-rust
plug_post_install_actions:9: no such file or directory: /home/lowks/.envirius/envs/rust/bin/activate-rust
chmod: cannot access '/home/lowks/.envirius/envs/rust/bin/activate-rust': No such file or directory
plug_post_install_actions:13: no such file or directory: /home/lowks/.envirius/envs/rust/bin/deactivate-rust
chmod: cannot access '/home/lowks/.envirius/envs/rust/bin/deactivate-rust': No such file or directory
nv_cmd_default:190: no such file or directory: /home/lowks/.envirius/envs/rust/envirius.info

The command that I am using:

nv mk rust --rust-prebuilt=1.12.1

@ekalinin
Copy link
Owner

@lowks Please, try again.
Here's my try:

➥ nv version
nv 0.8.2
➥ nv mk --rust-prebuilt=0.12.0
Creating environment: rust-prebuilt-0.12.0 ...
 * installing rust-prebuilt==0.12.0 ...
 * done (in 5 secs.)
➥ nv on rust-prebuilt-0.12.0 
Environment rust-prebuilt-0.12.0 activated.
(rust-prebuilt-0.12.0) ➥ rustc --version
rustc 0.12.0 (ba4081a5a 2014-10-07 13:44:41 -0700)

@lowks
Copy link
Contributor Author

lowks commented Oct 30, 2016

I am confused. rust-prebuilt is equivalent to rust release version what ?

@ekalinin
Copy link
Owner

ekalinin commented Oct 30, 2016

@lowks it should work now.
Fixed in bb149fe

➥ nv version 
nv 0.8.3

➥ nv ls-versions --rust-prebuilt 
* rust-prebuilt:
1.0.0       1.1.0       1.2.0       1.3.0       1.4.0       
1.5.0       1.6.0       1.7.0       1.8.0       1.9.0       
1.10.0      1.11.0      1.12.0      1.12.1      nightly-2016-10-30

➥ nv mk --rust-prebuilt=1.12.1
Creating environment: rust-prebuilt-1.12.1 ...
 * installing rust-prebuilt==1.12.1 ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 45.4M  100 45.4M    0     0  1943k      0  0:00:23  0:00:23 --:--:-- 2705k
 * done (in 25 secs.)

➥ nv on rust-prebuilt-1.12.1 
Environment rust-prebuilt-1.12.1 activated.

(rust-prebuilt-1.12.1) ➥ rustc --version
rustc 1.12.1 (d4f39402a 2016-10-19)

@ekalinin
Copy link
Owner

ekalinin commented Oct 30, 2016

rust-prebuilt is equivalent to rust release version what ?

Please, read this section of the README:

@lowks
Copy link
Contributor Author

lowks commented Oct 30, 2016

Thanks I will upgrade the version today and report back.

@lowks
Copy link
Contributor Author

lowks commented Oct 31, 2016

I am getting something like this:

~/S/envirius_latest ❯❯❯ nv version                                       master
nv 0.8.3
~/S/envirius_latest ❯❯❯ nv ls-versions --rust-prebuilt                   master
* rust-prebuilt:
1.0.0       1.1.0       1.2.0       1.3.0       1.4.0       
1.5.0       1.6.0       1.7.0       1.8.0       1.9.0       
1.10.0      1.11.0      1.12.0      1.12.1      nightly-2016-10-31

~/S/envirius_latest ❯❯❯ nv mk rust_release --rust-prebuilt=1.12.1        master
Creating environment: rust_release ...
 * installing rust-prebuilt==1.12.1 ...
nv_cmd_default:190: no such file or directory: /home/lowks/.envirius/envs/rust_release/envirius.info
 * done (in 0 secs.)

@ekalinin
Copy link
Owner

Seems like, it's a cache. Please, try 1.12.0 version.
Here's my try:

echo $ZSH_VERSION
5.1.1

➥ nv mk --rust-prebuilt=1.12.0
Creating environment: rust-prebuilt-1.12.0 ...
 * installing rust-prebuilt==1.12.0 ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 45.3M  100 45.3M    0     0  1992k      0  0:00:23  0:00:23 --:--:-- 2503k
 * done (in 24 secs.)

➥ nv on rust-prebuilt-1.12.0
Environment rust-prebuilt-1.12.0 activated.

(rust-prebuilt-1.12.0) ➥ rustc --version
rustc 1.12.0 (3191fbae9 2016-09-23)

@lowks
Copy link
Contributor Author

lowks commented Oct 31, 2016

I am getting the same error (I am also having zsh 5.1.1):

~/S/envirius_latest ❯❯❯ nv mk --rust-prebuilt=1.12.0                                                                             master
Creating environment: rust-prebuilt-1.12.0 ...
 * installing rust-prebuilt==1.12.0 ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 45.3M  100 45.3M    0     0  1617k      0  0:00:28  0:00:28 --:--:--  911k
nv_cmd_default:190: no such file or directory: /home/lowks/.envirius/envs/rust-prebuilt-1.12.0/envirius.info
 * done (in 29 secs.)

@ekalinin ekalinin changed the title activate-rust is missing [zsh] activate-rust is missing Oct 31, 2016
@lowks
Copy link
Contributor Author

lowks commented Oct 31, 2016

Hmm strange on Mac it seems okay:

➜  ~ nv version
nv 0.8.3
➜  ~ nv ls-versions --rust-prebuilt
* rust-prebuilt:
1.0.0 1.1.0 1.2.0 1.3.0 1.4.0 1.5.0 1.6.0 1.7.0 1.8.0 1.9.0 1.10.0 1.11.0 1.12.0 1.12.1
nightly-2016-10-31
➜  ~ nv mk rust_env --rust-prebuilt=1.12.1
Creating environment: rust_env ...
 * installing rust-prebuilt==1.12.1 ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 41.1M  100 41.1M    0     0  1140k      0  0:00:36  0:00:36 --:--:-- 1113k
 * done (in 42 secs.)
➜  ~ nv on rust_env
complete:13: command not found: compdef
Environment rust_env activated.```

How do you do a complete clean re-install on envirius ?

@ekalinin
Copy link
Owner

ekalinin commented Oct 31, 2016

# rm -rf ~/.envirius or
$ make uninstall

$ make install

@lowks
Copy link
Contributor Author

lowks commented Oct 31, 2016

Okay so it's something to do with my zsh. I tried it again, it failed using zsh then using bash, it's successful:

lowks@lowkster-laptop:~/Sources/envirius_latest$ nv mk rust_prebuilt --rust-prebuilt=1.12.1
Creating environment: rust_prebuilt ...
 * installing rust-prebuilt==1.12.1 ...
 * done (in 0 secs.)
lowks@lowkster-laptop:~/Sources/envirius_latest$ nv on rust_prebuilt --same-shell
Environment rust_prebuilt activated.
(rust_prebuilt)lowks@lowkster-laptop:~/Sources/envirius_latest$ rustc --version
rustc 1.12.1 (d4f39402a 2016-10-19)

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

No branches or pull requests

2 participants