# VSCode REPL hanging after a while

**URL:** https://discourse.julialang.org/t/vscode-repl-hanging-after-a-while/85585
**Category:** General Usage
**Tags:** windows, repl, vscode
**Created:** [August 10, 2022, 2:24pm UTC](https://discourse.julialang.org/t/vscode-repl-hanging-after-a-while/85585 "2022-08-10T14:24:12Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![taotree](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/taotree/32/31982_2.png) [@taotree](https://discourse.julialang.org/u/taotree)
#### Post date: [August 10, 2022, 2:24pm UTC](https://discourse.julialang.org/t/vscode-repl-hanging-after-a-while/85585/1 "2022-08-10T14:24:12Z")

</div>

This just started happening recently. After I use the integrated VSCode repl for a while, it increasingly hangs with this error:  
“The connection to the terminal’s pty host process is unresponsive, the terminals may stop working.”  
It recovers, but it takes longer and longer to recover until I have to restart it. This was happening with Julia 1.7.1 and I upgraded to 1.7.3 and it still happens.

I recently upgraded to Windows 11, so that could be related. I understand the problem might be with Windows or VSCode, but I thought someone here might know what’s going on or how to investigate.

---

<div class="post-metadata">

### Author: ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)
#### Post date: [August 10, 2022, 3:16pm UTC](https://discourse.julialang.org/t/vscode-repl-hanging-after-a-while/85585/2 "2022-08-10T15:16:42Z")

</div>

Do you have a firewall running that might block the communication to the REPL?

Does it also happen if you use the normal VSCode terminal and launch Julia from the  
terminal?

---

<div class="post-metadata">

### Author: ![elipivo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/elipivo/32/32916_2.png) [@elipivo](https://discourse.julialang.org/u/elipivo)
#### Post date: [August 10, 2022, 6:22pm UTC](https://discourse.julialang.org/t/vscode-repl-hanging-after-a-while/85585/3 "2022-08-10T18:22:17Z")

</div>

I just noticed this today too. I am still using Windows 10.

---

<div class="post-metadata">

### Author: ![c74](https://avatars.discourse-cdn.com/v4/letter/c/3bc359/32.png) [@c74](https://discourse.julialang.org/u/c74)
#### Post date: [August 10, 2022, 8:24pm UTC](https://discourse.julialang.org/t/vscode-repl-hanging-after-a-while/85585/4 "2022-08-10T20:24:33Z")

</div>

I’ve been using VSCodium and VSCode since at least January 2022, and noticed this too on both versions with the latest upgrade to VSCode (I think it was called the July update).

As a result, I ran my usual work today through the REPL - no problems there.

It wasn’t a problem with either VSCodium or VSCode previously.

I know I’m reaching out about a problem, but thanks to the team for the great work! The VSCode extension makes it really easy to work with Julia.

VSCodium setup:

> Version: 1.70.0 (user setup)  
> Commit: da76f93349a72022ca4670c1b84860304616aaa2  
> Date: 2022-08-05T01:52:42.266Z  
> Electron: 18.3.5  
> Chromium: 100.0.4896.160  
> Node.js: 16.13.2  
> V8: 10.0.139.17-electron.0  
> OS: Windows\_NT x64 10.0.19042

VSCode setup:

> Version: 1.70.0 (user setup)  
> Commit: da76f93349a72022ca4670c1b84860304616aaa2  
> Date: 2022-08-04T04:38:16.462Z  
> Electron: 18.3.5  
> Chromium: 100.0.4896.160  
> Node.js: 16.13.2  
> V8: 10.0.139.17-electron.0  
> OS: Windows\_NT x64 10.0.19042

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [August 10, 2022, 8:30pm UTC](https://discourse.julialang.org/t/vscode-repl-hanging-after-a-while/85585/5 "2022-08-10T20:30:57Z")

</div>

Can you try downgrading the extension version to 1.6.28 or 1.6.29, just to confirm that this was caused by us and not the VS Code update?

---

<div class="post-metadata">

### Author: ![c74](https://avatars.discourse-cdn.com/v4/letter/c/3bc359/32.png) [@c74](https://discourse.julialang.org/u/c74)
#### Post date: [August 10, 2022, 9:03pm UTC](https://discourse.julialang.org/t/vscode-repl-hanging-after-a-while/85585/6 "2022-08-10T21:03:21Z")

</div>

I switched to Julia extension 1.6.28 and in my initial tests of the REPL, everything seems to be working normally (no hanging or errors). I’ll keep using 1.6.28 to see if I encounter any issues - unfortunately I don’t use Julia all day, but I should have a couple of chances to try it live by the end of the week.

Also if there are specific things that I should try in order to provide more useful information, I’m all ears.

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [August 10, 2022, 9:09pm UTC](https://discourse.julialang.org/t/vscode-repl-hanging-after-a-while/85585/7 "2022-08-10T21:09:28Z")

</div>

Ok, one more data point would be to try disabling the shell integration (`terminal.integrated.shellIntegration.enabled`) on the latest release of the extension.

---

<div class="post-metadata">

### Author: ![Elmo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/elmo/32/17979_2.png) [@Elmo](https://discourse.julialang.org/u/Elmo)
#### Post date: [August 10, 2022, 9:26pm UTC](https://discourse.julialang.org/t/vscode-repl-hanging-after-a-while/85585/8 "2022-08-10T21:26:28Z")

</div>

For what its worth, I also had a lag issue that sometimes got so bad it froze vscode (Windows, Julia extension v1.6.30). I downgraded to v1.6.29, and it seems to be better now. Will post back if the problem persists. I am running Julia v.1.8.0-rc4.

---

<div class="post-metadata">

### Author: ![c74](https://avatars.discourse-cdn.com/v4/letter/c/3bc359/32.png) [@c74](https://discourse.julialang.org/u/c74)
#### Post date: [August 10, 2022, 9:29pm UTC](https://discourse.julialang.org/t/vscode-repl-hanging-after-a-while/85585/9 "2022-08-10T21:29:51Z")

</div>

OK, switched back to Julia extension v1.6.30 and on initial tests everything seems to be working great. I’ll leave this as-is when I use Julia over the next couple of days and will report back. Thanks!

---

<div class="post-metadata">

### Author: ![taotree](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/taotree/32/31982_2.png) [@taotree](https://discourse.julialang.org/u/taotree)
#### Post date: [August 11, 2022, 3:17pm UTC](https://discourse.julialang.org/t/vscode-repl-hanging-after-a-while/85585/10 "2022-08-11T15:17:00Z")

</div>

Thanks for the help here. As for firewall, wouldn’t that cause it to never work as opposed to just gradually stop working over time? (and possibly related to how much was displayed in REPL as when much text is dumped there is when it seems to start having issues).

> Does it also happen if you use the normal VSCode terminal and launch Julia from the  
> terminal?

This is interesting. I tried that yesterday as you suggested. When I ran git bash and Julia from there, I didn’t see the issue. Also, when I ran Julia from the terminal inside VSCode, I didn’t see the issue. So, it seems it was only when I right clicked on a jl file and ran “execute file in repl” which creates a new REPL, that’s when there was a problem.

However, just now I did that, and so far there hasn’t been a problem.  
I’m on the 1.6.30 version of the extension.  
VSCode:  
Version: 1.70.0 (user setup)  
Commit: da76f93349a72022ca4670c1b84860304616aaa2  
Date: 2022-08-04T04:38:16.462Z  
Electron: 18.3.5  
Chromium: 100.0.4896.160  
Node.js: 16.13.2  
V8: 10.0.139.17-electron.0  
OS: Windows\_NT x64 10.0.22000

but I don’t know if that changed since yesterday. So… not sure what happened.

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [August 11, 2022, 3:29pm UTC](https://discourse.julialang.org/t/vscode-repl-hanging-after-a-while/85585/11 "2022-08-11T15:29:11Z")

</div>

Disabling ` terminal.integrated.shellIntegration.enabled` should fix this in the short-term.

---

<div class="post-metadata">

### Author: ![andreasvarga](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/andreasvarga/32/11634_2.png) [@andreasvarga](https://discourse.julialang.org/u/andreasvarga)
#### Post date: [August 12, 2022, 11:28am UTC](https://discourse.julialang.org/t/vscode-repl-hanging-after-a-while/85585/12 "2022-08-12T11:28:55Z")

</div>

I am facing the same issue.Could somebody show how the disabling can be done? Thank in advance.

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [August 12, 2022, 11:29am UTC](https://discourse.julialang.org/t/vscode-repl-hanging-after-a-while/85585/13 "2022-08-12T11:29:53Z")

</div>

Go to `File > Preferences > Settings` (or hit `Ctrl+,`) and paste the id into the search bar.
