Open gzheng92 opened 1 year ago
Looks like this is the new VSCode setting that causes the issue: terminal.integrated.shellIntegration.enabled
. Turning it off and starting a new shell resulted in no more error for me.
Hopefully the injection script used by VSCode will eventually work with mcfly, but I guess this is a good enough solution
Manual shell integration (https://code.visualstudio.com/docs/terminal/shell-integration#_manual-installation) did not print this error for me. I was able to use the shell integration and McFly
Looks like this is the new VSCode setting that causes the issue:
terminal.integrated.shellIntegration.enabled
. Turning it off and starting a new shell resulted in no more error for me.![]()
Thank you @Tarpstone This solved several problems for me, from poetry to pyenv, and of course mcfly.
Re-opening so it's easier for folks to find this issue. I wonder if there's anything mcfly's init script can do to fix this.
The claim is that this will be fixed in the next VSCode release: https://github.com/microsoft/vscode/issues/145296#issuecomment-1222465601
I just updated and it is still not fixed, unable to comment on microsoft/vscode#145296 to let them know
Darn! I guess you could make a new issue.
For whatever reason, the manual installation for shell integration is unable to set theHISTFILE
, so I just set it manually.
Just put this in your .zshrc
:
[[ "$TERM_PROGRAM" == "vscode" ]] && . "$(codium --locate-shell-integration-path zsh)" && HISTFILE=$USER_ZDOTDIR/.zsh_history
Is HISTFILE not set in the vscode shell by default?
Ran into the same issue today. I can confirm that removing the shell integration feature seems to work.
For whatever reason, the manual installation for shell integration is unable to set the
HISTFILE
, so I just set it manually.Just put this in your
.zshrc
:[[ "$TERM_PROGRAM" == "vscode" ]] && . "$(codium --locate-shell-integration-path zsh)" && HISTFILE=$USER_ZDOTDIR/.zsh_history
btw.: this only works with the editor codium as I see it rn.
Ran into the same issue today. I can confirm that removing the shell integration feature seems to work.
For whatever reason, the manual installation for shell integration is unable to set the
HISTFILE
, so I just set it manually. Just put this in your.zshrc
:[[ "$TERM_PROGRAM" == "vscode" ]] && . "$(codium --locate-shell-integration-path zsh)" && HISTFILE=$USER_ZDOTDIR/.zsh_history
btw.: this only works with the editor codium as I see it rn.
I substituted code
for codium
for my installation:
Version: 1.73.0 Commit: 8fa188b2b301d36553cbc9ce1b0a146ccb93351f Date: 2022-11-01T15:33:40.745Z Electron: 19.0.17 Chromium: 102.0.5005.167 Node.js: 16.14.2 V8: 10.2.154.15-electron.0 OS: Darwin arm64 22.1.0 Sandboxed: No
Looks like it is still not fixed in VSCode, see e.g. https://github.com/microsoft/vscode/issues/164025
I'm still seeing this (/cc @Tyriar):
Version: 1.73.1
Commit: 6261075646f055b99068d3688932416f2346dd3b
Date: 2022-11-09T02:22:48.959Z
Electron: 19.0.17
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Darwin arm64 22.1.0
Sandboxed: No
Getting this error on a brand new machine, no VSCode, regular Terminal in Fedora 37.
In the latest release version of VSCode, starting a terminal produces the following console output:
I tried adding
to my
~/.zshrc
, but that didn't help