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]: Broken extensions with code-server 4.8.0

See original GitHub issue

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: Safari 16.1
  • Local OS: macOS 13.0 (Ventura)
  • Remote OS: Debian bullseye
  • Remote Architecture: amd64
  • code-server --version: 4.8.0 005fa87699b4b3c791bd97693400dd016a7ee315 with Code 1.72.1

Steps to Reproduce

  1. Go to https://vscode-r.jupyter.b-data.ch
  2. Log in with your GitHub account
  3. Click “Start My Server”
  4. Select image R (jupyterlab/r/base:test) + code-server
  5. Open code-server
  6. Try to create an R terminal or create/edit a Jupyter Notebook

Expected

“R: Create R terminal” is supposed to create an R terminal.
ℹ️ [YYYY-MM-DD hh:mm:ss.sss] [exthost] [info] ExtensionService#_doActivateExtension REditorSupport.r, startup: false, activationEvent: 'onCommand:r.createRTerm'

When creating a Jupyter Notebook it should be displayed and editable.

Actual

No R terminal is created.

Jupyter Notebook is created but nothing is displayed.

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:closed
  • Created a year ago
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
code-ashercommented, Oct 27, 2022

Ahhhhh that makes sense, I did not consider the use in non-JS code. To use asExternalUri it would need to call back to the extension to run asExternalUri every time it needed the URI since as noted it should not be modified but that does seem rather onerous.

VSCODE_PROXY_URI will not become obsolete however if a good way to use asExternalUri does present itself it might make sense to pursue that so the extension works in Codespaces as well!

2reactions
benz0licommented, Oct 27, 2022

@jsjoeio Extension functionality retested and found to work:

  1. [R] “R: Create R terminal”
  2. [Jupyter] Create/Edit/Run Jupyter Notebooks

Functionality [modified by patches] retested and found to work:

  • proxy-url
  • webview

@code-asher I will get in touch with @renkun-ken about

proxy-url: VSCODE_PROXY_URI is now suffixed with a /.

Ah, we added that to make sure relative paths from the proxied application work. We could remove it but my thinking is that we probably always want there to be a trailing slash (open to thoughts on this of course). For extensions the recommended method now is to use asExternalUri instead of the environment variable (we should have put this in the changelog; I will add it once we settle on what to do with the slash).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python extension is broken · Issue #2341 · coder/code-server
It seems like the python interpreter cannot be selected in 3.7.1 Command 'Python: Select Interpreter' resulted in an error (command 'python.
Read more >
FAQ - code-server v4.8.0 docs - Coder
How do I use my own extensions marketplace? Where are extensions stored? How can I reuse my VS Code configuration? How does code-server...
Read more >
Visual Studio Code June 2022
These extensions install a server on the remote environment, allowing local VS Code to smoothly interact with remote source code and runtimes.
Read more >
Bug listing with status RESOLVED with resolution TEST ...
status:RESOLVED resolution:TEST-REQUEST severity:enhancement · Bug:52721 - "Mozilla-firefox builds with some old xft library incorrectly included breaking ...
Read more >
Intellisense not working for Visual Studio Code - Unity Forum
Operating System: Windows 10 Problem: 1. ... https://forum.unity.com/threads/psa-if-your-vs-code-c-extension- ... NET Framework 4.8.0, .
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