Open jspngh opened 1 month ago
Everything works fine again in v0.156.2, but I didn't investigate further on what code change fixed the issue. I'll close this, since it seems I was the only one experiencing this problem.
Everything works fine again in v0.156.2, but I didn't investigate further on what code change fixed the issue. I'll close this, since it seems I was the only one experiencing this problem.
wow, it seems this issue happens to me as well. I just post a reply for this issue #14904
And after running this launchctl setenv FISH_UNIT_TESTS_RUNNING 1
, it works again.
Zed version: 0.159.6
The issue also exists for me. The fix by @icoigo still works.
Zed version: 0.162.4
This popped up again recently for me as well, but I switched to zsh as to not have to deal with it. I'll re-open the issue, since more people are experiencing it. Please give it a thumbs-up for visibility to the zed team.
Also, setting FISH_UNIT_TESTS_RUNNING
to 1 is a good way to check if your issue has the same root cause, but shouldn't be considered a fix :smile:
Check for existing issues
Describe the bug / provide steps to reproduce it
On recent Zed releases, rust-analyzer stopped working for me on macOS.
I've tried 0.152.4, and there the issue is not present. I believe it is related to the new environment loading from #17717 (or adjacent changes).
This happens only when using fish as a login shell (no issue when switching to zsh). This does not happen when launching from the cli. This does not happen on Linux (with an up-to-date Zed version and also using fish).
As you can see in my logs, the character
[?2004l
appears, which is related to bracketed-paste mode in fish.13888 might be related, however that issue seems to be fixed after 0.153.x, and this issue starts at that version.
Apparently if you set the
FISH_UNIT_TESTS_RUNNING
, bracketed-paste mode is not active in fish. After setting it usinglaunchctl setenv FISH_UNIT_TESTS_RUNNING 1
, rust-analyzer starts correctly.My guess: now that a login shell is spawned to determine the environment variables, it doesn't interact correctly with what fish does (printing those
[?2004l
characters to enable bracketed-paste mode). I think this is part of the fish prompt, which gets added as additional command (for a good reason presumably).Environment
Zed: v0.155.2 (Zed) OS: macOS 15.0.0 Memory: 36 GiB Architecture: aarch64 Fish: 3.7.1
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your Zed.log file to this issue.
Zed.log
rust-analyzer.log