IDX auto closing the terminal on Python virtual enviroments

Hi! I’m experiencing an issue with project IDX: my terminal is beeing closed automatically when I open it. I’m having no chance to type something. It just closes for no reason… I have to rebuild the enviroment to make it work, after a while it just stops again.

Gravando-2024-07-15-075157-Trim
s…

4 Likes

Gravando-2024-07-15-085622-Trim-Trim
It basically happens after the venv is automatically activated. This is me hitting “Cntrl + '” shortcut to open my terminal

I am also facing the same issue for my python project…

1 Like

Did you find a way to solve it?

haven’t taken a close look…

1 Like

Thanks for flagging this everyone. We are looking into this right now.

4 Likes

im also facing same problem for react project

Only workaround I’ve found so far is to just press and hold Cmd+Shift+Tilde (or Ctrl+Shift+Tilde on Linux/Mac) until one of the terminals stays up. Super weird.

1 Like

Yeah but sometimes that also doesn’t respond… And the menu button also ends up freezing… So can’t open it through that…

it’s also happen to me

I works but I ended up with 45128 terminals

did anyone find a more permament fix?

For anyone experiencing this, we’re still trying to pin down why this happens. In the meanwhile, can you try restarting the pty host through the vscode command please? You can find the command by going to the menu, clicking “Help”, then “Show All Commands”. Please let us know if this works.

3 Likes

Actually interestingly its working fine on my Python app now (earlier today I was getting the auto-closing terminals) but the issue is persisting with my Express app.

It’s weird after few times close and re-open project. The terminal now is stable

I have the same issue

Thank you, this worked for me

solved using extension = terminal keeper

@h71628761 - can you please share a link to the extension? I’m not able to find it for some reason.

https://open-vsx.org/extension/nguyenngoclong/terminal-keeper