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

conda.nu not working #546

Closed
pedoc opened this issue Jul 10, 2023 · 2 comments
Closed

conda.nu not working #546

pedoc opened this issue Jul 10, 2023 · 2 comments

Comments

@pedoc
Copy link

pedoc commented Jul 10, 2023

This PR introduces a breaking change that causes errors on the following nu versions

error:

Error: nu::parser::parse_mismatch

  × Parse mismatch during operation.
    ╭─[C:\Users\Administrator\nu_scripts\modules\virtual_environments\conda.nu:85:1]
 85 │
 86 │     $env.PROMPT_COMMAND = if $env.CONDA_OLD_PROMPT_COMMAND == $nothing {
    ·                              ──────────────┬──────────────
    ·                                            ╰── expected operator
 87 │         $env.PROMPT_COMMAND
    ╰────

nushell env:

key value
version 0.82.0
branch
commit_hash ecdb023e2f6cb17445ae799206e464b2daef3d71
build_os windows-x86_64
build_target x86_64-pc-windows-msvc
rust_version rustc 1.68.2 (9eb3afe9e 2023-03-27)
rust_channel 1.68.2-x86_64-pc-windows-msvc
cargo_version cargo 1.68.2 (6feb7c9cf 2023-03-26)
build_time 2023-06-27 17:33:52 +00:00
build_rust_channel release
allocator standard
features default, sqlite, trash, which, zip
installed_plugins custom-value update, from vcf, gstat, inc, query xml

If change $nu.PROMPT_COMMAND to let-env PROMPT_COMMAND will continue to work

image

@fdncred
Copy link
Collaborator

fdncred commented Jul 10, 2023

We removed let-env recently. It'll work in the next release of nushell or if you compile the main branch of nushell. I also see that someone submitted a better fix as well.

@pedoc
Copy link
Author

pedoc commented Jul 14, 2023

fixed by #547

@pedoc pedoc closed this as completed Jul 14, 2023
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