Replies: 2 comments 3 replies
|
What's it do in the latest version 0.114.1? |
|
I reproduced this on Nushell 0.115.1 (Ubuntu 24.04.4 LTS / WSL2, x86_64). With The following worked around it in my tests while keeping the file-existence check. Keep const candidate = "/path/to/.venv/bin/activate.nu"
const selected = if ($candidate | path exists) {
$candidate
} else {
null
}
overlay use $selectedI tested the same pattern with an existing and a missing file using the minimal overlay. The existing-file case activated the overlay; the missing-file case started without errors and did not activate the test overlay. Tab completion followed both directory changes in each case. I also tested an environment created with virtualenv 21.7.4 and Python 3.12.3. It selected the virtualenv's Python correctly, and completion followed directory changes while the environment was active. The important limitation is that this is a parse-time check, not a replacement for arbitrary runtime conditions. Separate note about deactivation: in this setup, plain To deactivate while keeping the current directory, I verified: overlay hide activate --keep-env [ PWD ]This disabled the I repeated the conditional cases and both deactivation methods in fresh interactive sessions with actual Tab input. I have not tested the original 0.108.0/NixOS environment or established the underlying cause; this is a workaround verified on the setup above. |
Uh oh!
There was an error while loading. Please reload this page.
Basic Environment
NixOS 25.11, nushell 0.108.0
Problem description
It seems that even i was under
~/nixox-config, the completion data was come from$HOME.More current config
First I turned off external completion, now it is false. But the problem still exists.
My NixOS config:
Anyone has the same issue?
All reactions