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]: Error: Creating workers from remote extensions is currently not supported.

See original GitHub issue

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: Chrome
  • Local OS: Windows 10
  • Remote OS: Ubunu
  • Remote Architecture: amd64
  • code-server --version: 4.9.0 0502dfa1ff42ab8a43adb911f7bf21f8b09ee25f with Code 1.73.1

Steps to Reproduce

  1. Installed PHP Tools extension by devsense.com https://open-vsx.org/api/devsense/phptools-vscode/web/1.25.11540/file/DEVSENSE.phptools-vscode-1.25.11540@web.vsix
  2. Extension is unable to run in code-server
  3. Error given is Error: Creating workers from remote extensions is currently not supported.

Expected

PHP Tools extension should be able to install and run as it works in vscode.dev and github.dev

Actual

  1. Extension is unable to run in code-server
  2. Error given is Error: Creating workers from remote extensions is currently not supported.

Logs

No response

Screenshot/Video

image

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 9 months ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
code-ashercommented, Dec 19, 2022

One interesting difference is that the vscode.dev one is marked as a browser extension while on code-server it is marked as a remote extension.

For vscode.dev I used the extension panel to install but in code-server I had to install from vsix because from the extension panel it said the extension is not supported in web (which given this error appears to be true).

So one theory is that Open VSX is not serving the web version of this extension yet.

I tried installing in Codespaces from the command line (code --install-extension DEVSENSE.phptools-vscode) to force it to install the non-web version and I get a different error but it does not work there either.

I am not sure it actually works in vscode.dev either. Am I supposed to get intellisense for functions? I tried typing explode for example but nothing comes up.

1reaction
bilogiccommented, Dec 14, 2022

I thought it is helpful to include the actual code and comments here

https://github.com/microsoft/vscode/blob/96bf637c101b8832e44a97a27a26305d8c2cf22e/src/vs/workbench/api/worker/extensionHostWorker.ts#L100-L103

const _Worker = (<any>self).Worker;
Worker = <any>function (stringUrl: string | URL, options?: WorkerOptions) {
if (/^file:/i.test(stringUrl.toString())) {
	stringUrl = FileAccess.uriToBrowserUri(URI.parse(stringUrl.toString())).toString(true);
} else if (/^vscode-remote:/i.test(stringUrl.toString())) {
	// Supporting transformation of vscode-remote URIs requires an async call to the main thread,
	// but we cannot do this call from within the embedded Worker, and the only way out would be
	// to use templating instead of a function in the web api (`resourceUriProvider`)
	throw new Error(`Creating workers from remote extensions is currently not supported.`);
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Allow running remote extensions in the web worker ... - GitHub
This extension is disabled because it is not supported in Visual Studio Code for the Web. I'll create a small extension to repro...
Read more >
Remote Development FAQ - Visual Studio Code
Remote Development FAQ. This article covers frequently asked questions for each of the Visual Studio Code Remote Development extensions.
Read more >
Troubleshooting Omnibus GitLab installation issues
This error is thrown when /etc/gitlab/gitlab.rb configuration file contains configuration that is invalid or unsupported. Double check that there are no typos ...
Read more >
Troubleshoot Agent and extension issues - Azure Backup
This error occurs when one of the extension failures puts the VM into provisioning failed state. Open Azure portal > VM > Settings...
Read more >
Docker Desktop release notes
Extensions in the Marketplace now display the number of installs. ... Fixed a bug causing symlinks to not be created for the user...
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