Broken communication between VSCode Julia terminal and code editor

My Julia installation and VScode were working fine, but has stopped communicating between the code editor and Julia Terminal within VSCOde.
On initial code execution (Shift-Enter) the Julia terminal opens within VSCode and gives an error message which I have not been able to troubleshoot and fix:

After this message, code does not execute in the terminal from the code editor.

However, if copy-pasted into the same terminal it runs without issues. It doesn’t seem to be communicating/connecting to VSCode however- plots pop up in a separate pane, not within VSCode.

Any help is appreciated.
Running VSCode 1.9.52 on Windows_NT x64.
Julia 1.10.6 (the current LTS installed via juliaup, set as default in Powershell)

The most relevant issue I’ve found is here as github issue but have not been able to resolve the issue by setting terminal.integrated.enablePersistentSessions to false .

also possibly related report on github

I haven’t fixed the issue but found a useful workaround. adding here if others find useful:

Initiate Julia in the VSCode terminal
Open command panel - Cntrl+Shift+P (windows)
find the command Julia: Connect external REPL
copy the clipboard command into the external REPL

once connected, the code execution works as expected.

Can you show a bit more of the filename in the screen shot? Maybe just blur our your name, but leave the rest intact? Hard to judge what is going on otherwise.

1 Like

The project folder is in a OneDrive folder. It was previously working fine, but possibly my institution has added some firewalls or other security measures.

I’ve found that the workaround of connecting to an external REPL works really well. I plan to use that method and not worry about this further, although if it’s a bug then hopefully it will be fixed for other reasons.