question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: Julia Extension REPL Terminal not restored after code-server window reload

See original GitHub issue

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: Chrome 103
  • Local OS: Windows 10
  • Remote OS: Ubuntu 18
  • Remote Architecture: amd64
  • code-server --version: 4.5.1

Steps to Reproduce

  1. open code-server
  2. install Julia v1.7.3 (latest stable) on the remote
  3. install Julia extension (currently v1.6.28, can also reproduce with v1.6.24)
  4. start Julia REPL
  5. start normal (e.g. bash) session. Check Julia process id in the list of processes (there would be two Julia processes: one running LanguageServer main.jl, the REPL one runs terminalserver.jl).
  6. reload code-server window/tab

Expected

Upon reload Julia REPL is preserved. It was working with VS Code 4.2.0 (4.3.0 and 4.4.0 haver other problems in my setup, so I cannot test them) and Julia extension 1.6.24.

Actual

Julia REPL is not in the list of terminals, while the old Julia REPL process (the one that runs terminalserver.jl) is still running.

Logs

No response

Screenshot/Video

No response

Does this issue happen in VS Code or GitHub Codespaces?

  • I cannot reproduce this in VS Code.
  • I cannot reproduce this in GitHub Codespaces.

Are you accessing code-server over HTTPS?

  • I am using HTTPS.

Notes

No response

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
benz0licommented, Aug 1, 2022

@benz0li are you able to reproduce this?

Yes. Currently, this can be reproduced at https://demo.jupyter.b-data.ch with image Julia (base:latest) + code-server (=registry.gitlab.b-data.ch/julia/base:1.7.3 (code-server v4.5.1, Julia v1.7.3, Julia extension v1.6.28)).

It is not working with registry.gitlab.b-data.ch/julia/ver:1.7.2 (code-server v4.4.0, Julia v1.7.2, Julia extension v1.6.17) either.

It was last working with registry.gitlab.b-data.ch/julia/ver:1.7.1 (code-server v4.0.1, Julia v1.7.1, Julia extension v1.5.10) in my case.
ℹ️ I didn’t release Julia images with code-server v4.1.0 or v4.3.0 and I skipped over v4.2.0 due to issues.

1reaction
benz0licommented, Aug 2, 2022

When I start a new Julia REPL:

[IPC Library: Pty Host]  WARN Shell integration cannot be enabled for executable "/opt/julia/bin/julia" and args [
  '-i',
  '--banner=no',
  '--project=/opt/julia/local/share/julia/environments/v1.7',
  '/opt/code-server/lib/vscode/extensions/julialang.language-julia-1.6.17/scripts/terminalserver/terminalserver.jl',
  '/tmp/vsc-jl-repl-c60ae286-d040-431f-a691-e903b1172776',
  '/tmp/vsc-jl-cr-b45e317b-56ca-4d6c-a10c-fddc98d8ea27',
  'USE_REVISE=true',
  'USE_PLOTPANE=true',
  'USE_PROGRESS=true',
  'DEBUG_MODE=false'
]

Then, after reloading the code-server browser tab/window:

[nothing relevant]

And the Julia REPL is gone.

(code-server v4.5.1, Julia v1.7.3, Julia extension v1.6.28)


With code-server v4.0.1 I get the [IPC Library: Pty Host] INFO Persistent process "2": Replaying 264 chars and 1 size events message and the Julia REPL is restored.

Read more comments on GitHub >

github_iconTop Results From Across the Web

VSCode REPL hanging after a while - Julia Discourse
After I use the integrated VSCode repl for a while, it increasingly hangs with this error: “The connection to the terminal's pty host...
Read more >
Change Log · Julia in VS Code
Change Log. All notable changes to the Julia extension will be documented in this file. The format is based on Keep a Changelog....
Read more >
User and Workspace Settings - Visual Studio Code
To open the Settings editor, use the following VS Code menu command: ... Be careful since there will be no way to recover...
Read more >
Can not start Julia REPL with v1.6 and latest Julia VS Code ...
As it turns out, the issue was that I was running the most recent version of the Julia VS Code extension with Julia...
Read more >
homebrew-core - Homebrew Formulae
a2ps 4.14 Any‑to‑PostScript filter aacgain 1.8 AAC‑supporting version of mp3gain aalib 1.4rc5 Portable ASCII art graphics library aamath 0.3 Renders mathematical expressions as ASCII art
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found