Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activating extension 'msjsdiag.debugger-for-chrome' failed #677

Closed
2 tasks
AbakumovAlexandr opened this issue Mar 22, 2021 · 8 comments
Closed
2 tasks

Activating extension 'msjsdiag.debugger-for-chrome' failed #677

AbakumovAlexandr opened this issue Mar 22, 2021 · 8 comments
Labels
bug Something isn't working

Comments

@AbakumovAlexandr
Copy link

AbakumovAlexandr commented Mar 22, 2021

Describe the bug
Debugger for Chrome extension cannott be activated after installation.

Please confirm that this problem is VSCodium-specific

  • This bug doesn't happen if I use Microsoft's Visual Studio Code. It only happens in VSCodium.

Please confirm that the issue/resolution isn't already documented

To Reproduce
Steps to reproduce the behavior:

  1. Install Debugger for Chrome into VSCodion via EXTENSIONS tab.
  2. Load your JS\TS project into VSCodion, build it, open in Chrome.
  3. Create proper launch.json config to attach to Chrome.
  4. Try to attach to Chrome via VSCodion's RUN AND DEBUG tab using the above created config.
  5. It doesn't attach. In VSCodiom Developer Tools, it throws an error:

Activating extension 'msjsdiag.debugger-for-chrome' failed: Cannot find module '/home/x/.vscode-oss/extensions/msjsdiag.debugger-for-chrome-4.12.6/out/src/extension'
Require stack:

  • /usr/share/codium/resources/app/out/vs/loader.js
  • /usr/share/codium/resources/app/out/bootstrap-amd.js
  • /usr/share/codium/resources/app/out/bootstrap-fork.js.
    _logMessageInConsole @ workbench.desktop.main.js:1857
    _logOrShowMessage @ workbench.desktop.main.js:1857
    $onExtensionActivationError @ workbench.desktop.main.js:2084
    _doInvokeHandler @ workbench.desktop.main.js:1687
    _invokeHandler @ workbench.desktop.main.js:1687
    _receiveRequest @ workbench.desktop.main.js:1687
    _receiveOneMessage @ workbench.desktop.main.js:1687
    (anonymous) @ workbench.desktop.main.js:1687
    fire @ workbench.desktop.main.js:57
    fire @ workbench.desktop.main.js:76
    _receiveMessage @ workbench.desktop.main.js:76
    (anonymous) @ workbench.desktop.main.js:76
    fire @ workbench.desktop.main.js:57
    acceptChunk @ workbench.desktop.main.js:76
    (anonymous) @ workbench.desktop.main.js:76
    I @ workbench.desktop.main.js:2760
    emit @ events.js:315
    addChunk @ _stream_readable.js:295
    readableAddChunk @ _stream_readable.js:271
    Readable.push @ _stream_readable.js:212
    onStreamRead @ internal/stream_base_commons.js:186

Expected behavior
Debugger for Chrome attaches to Chrome and works just like in VS Code.

Desktop (please complete the following information):

  • OS: Debian 10
  • Architecture arm64
  • Version 1.54.3

Additional context
I tried to uninstall the Debugger for Chrome extension. The /home/x/.vscode-oss/extensions/msjsdiag.debugger-for-chrome-4.12.6/ folder was not removed. I removed it manually and re-installed the extension. It has not helped - the same error when attaching to Chrome.

@AbakumovAlexandr AbakumovAlexandr added the bug Something isn't working label Mar 22, 2021
@AbakumovAlexandr
Copy link
Author

Just tested on Windows 10 x64 - exactly the same thing:

image

@daiyam
Copy link
Member

daiyam commented Mar 23, 2021

A sample would be useful.
But the extension is faulty on Open VSX, there is no out folder.
But that folder is in the extension on Visual Studio Marketplace...

@AbakumovAlexandr
Copy link
Author

A sample would be useful.

  1. Could you elaborate, please - sample of what?

But the extension is faulty on Open VSX, there is no out folder.

  1. Does Open VSX have a separate issue tracker, so I could notify them as well?

But that folder is in the extension on Visual Studio Marketplace...

  1. Di you mean the best way to work it around is to isntall it via EXTENSIONS ->install from VSIX and get that VSIX from Visual Studio Marketplace?

@daiyam
Copy link
Member

daiyam commented Mar 23, 2021

  1. A project so we can easily test the issue
  2. Maybe on their gitter: https://gitter.im/eclipse/openvsx
  3. Yes

@AbakumovAlexandr
Copy link
Author

You can reproduce it without any project.
launch.json could be created automatically.
Just try to attach to Chrome.

@spoenemann
Copy link
Contributor

The initial version was contributed to open-vsx.org via open-vsx/publish-extensions, that's a script that publishes a list of selected extensions every night. The extension was removed from the list because the namespace has been claimed, but we can add it back since the namespace owner apparently is not going to publish anything.

Could you create an issue at that repository? Also feel free to provide a PR to add the extension to the JSON list. If you do so, please have a close look whether special build steps are necessary in order to get a working extension package.

@AbakumovAlexandr
Copy link
Author

@spoenemann thank you, done.

@filiptronicek
Copy link

@AbakumovAlexandr as this extension is now deprecated in favor of the built-in functionality [1], is this issue still relevant?

@daiyam daiyam closed this as completed Sep 28, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants