-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Direnv environments are not picked up with either fish or nushell used #8633
Comments
@mrnugget, this seems like your stuff |
@mrnugget I have discovered a horrible hack for fish: add |
Just to confirm this: you're running into this when trying to use |
Yeah, but its a more general problem with some tools (like direnv) requiring |
Got it. I think special-casing |
We need to do that for every shell, I still don't know what should be done for nushell |
We can do fish for now and leave this open for suggestions on nushell |
Release Notes: - Fixed detection of `direnv` not working in `fish` when an LSP adapter (`gopls`, for example) tries to detect user-installed binaries. (#8633) --------- Co-authored-by: Thorsten Ball <[email protected]>
This is available in Zed v0.126.0-pre. |
@JosephTLyons please reopen as this is still not implemented for nushell. Also labeling this as help needed would be great as I have no idea how to fix nushell |
I don't intend fully on getting this merged, this is just an experiment on using `direnv` directly without relying on shell-specific behaviours. It works though, so this finally closes #8633 Release Notes: - Fixed nushell not picking up `direnv` environments by directly interfacing with it using `direnv export` --------- Co-authored-by: Thorsten Ball <[email protected]>
Current status
Check for existing issues
Describe the bug / provide steps to reproduce it
The current way to pick up the environment as used in
zed/crates/project/src/project.rs
Lines 9366 to 9385 in dab886f
does not work with neither fish nor nu shells. This is because direnv has some weird behaviour preventing it from evaluating. The dirty fix would be to force evaluation:
or something like that.
Environment
Zed: v0.125.1 (Zed Preview)
OS: macOS 14.3.1
Memory: 8 GiB
Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature
If applicable, attach your
~/Library/Logs/Zed/Zed.log
file to this issue.If you only need the most recent lines, you can run the
zed: open log
command palette action to see the last 1000.No response
The text was updated successfully, but these errors were encountered: