-
Notifications
You must be signed in to change notification settings - Fork 37.4k
Fix fish shell integration execution order #226589
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
Conversation
5be43b2 to
fb7e686
Compare
8ca0813 to
68cbae1
Compare
f4217cf to
2f7dbf3
Compare
|
Need to fix some regression errors. Will update once I'm back at my computer |
2f7dbf3 to
04ad603
Compare
|
Fixed accidental regression added for bash due to changed shell integration script directory |
04ad603 to
c17f997
Compare
Tyriar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@meganrogge can you look at this when you get some time? This change is a little scary as it changes the approach used in fish unfortunately away from environment variables which is a much nicer way to inject. It also appears to keep the fish_xdg_data/ dir but maybe not use it anymore?
|
@meganrogge I have a summary of the changes in the first comment on here but there's a more detailed analysis of what's going on in the linked issue if that helps |
c54aee0 to
8109d63
Compare
|
Apologies on the delay, we hope to get to this some time next week (current week is stabilizing the upcoming release). |
|
Hi @aravind-n, thanks for all of your work on this PR. I was eager to test it out this week and unfortunately, my mac has broken, so will take a look ASAP when my new one comes. |
|
I was having issues with how the VSCode terminal was resolving the PATH variable on my system and I discovered this PR which fixes the execution order of the shell integration and the fish config, which I thought was the cause. In particular I was having this same old issue but on Linux with fish #99878 , which was fixed for macOS back in the day. But despite the fix in this PR, my issue specifically with the PATH wasn't fixed. In particular, I'm using the official fish variable I opened a PR on top of this one with the simple fix aravind-n#1 The linked old issue is particularly annoying when working with extensions that let you change the version of a language SDK per project, because the PATH change won't work in the terminal. |
|
@meganrogge hi just checking if you've got any updates on the mac situation. I was in Redmond the other day and I heard it's tough being an apple product in that neighborhood |
8109d63 to
608495c
Compare
|
@aravind-n very frustrating - no eta atm, with the guess that it'll take several weeks yet 😢 |
|
@meganrogge lol np |
608495c to
4fd3c6c
Compare
meganrogge
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works great and makes sense. Thank you!
Head branch was pushed to by a user without write access
943fe8c to
a0f289f
Compare
|
@meganrogge What's your take on adding the following changes to fix #99878 on Linux with Fish? |
|
@davidmartos96 I think a separate PR would be better to keep things simple. Thanks |
|
@meganrogge how do I get this to merge lol do I just rebase? |
|
@aravind-n nothing more you need to do. I want @Tyriar to also review and approve the PR - he's back next week. My understanding of this PR: |
|
Sounds good. Your understanding is exactly what's going on |
| shellIntegrationArgs.set(ShellIntegrationExecutable.Zsh, ['-i']); | ||
| shellIntegrationArgs.set(ShellIntegrationExecutable.ZshLogin, ['-il']); | ||
| shellIntegrationArgs.set(ShellIntegrationExecutable.Bash, ['--init-file', '{0}/out/vs/workbench/contrib/terminal/common/scripts/shellIntegration-bash.sh']); | ||
| shellIntegrationArgs.set(ShellIntegrationExecutable.Fish, ['--init-command', '. {0}/out/vs/workbench/contrib/terminal/common/scripts/fish_xdg_data/fish/vendor_conf.d/shellIntegration.fish']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're no longer using XDG_DATA_DIRS we should move the script out of this folder: #232408
|
Change looks good to me if it was tested well |
Summary
Related Issue: #226554
areZshBashLoginArgstoareZshBashFishLoginArgsShellIntegrationExecutableenumshellIntegrationArgsPrevious Behavior
Current Behavior