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.

Code OSS cannot activate extension after update to 0.5.4

See original GitHub issue

Hello! First of all, this is really must have extension, thanks for creating it!

After update to version 0.5.4 the extension just stops working. After some couple of times reinstalling extension, I’ve notice the tab “Runtime Status”, and on it it was said “Not yet activated”. After quite some more time, I’ve found the “Log (Extension Host)” sections in logs panel and there was error:

[2021-12-08 12:31:54.295] [exthost] [error] Activating extension meganrogge.template-string-converter failed due to an error:
[2021-12-08 12:31:54.295] [exthost] [error] Error: Cannot find module '/home/user/.vscode-oss/extensions/meganrogge.template-string-converter-0.5.4/out/extension.js'

I went in the extension folder and found that in packge.json it is said: "main": "./out/extension.js". However there is no folder named out. But there is a file, named launch.json and in it there is a string:

"outFiles": ["${workspaceFolder}/dist/web/**/*.js"],

So, I’ve just copied all contend contend of dir/web into newly created out directory and everything looks to be working now.

I’m not familiar with Code extension publishing process, but it looks like something went wrong somewhere in it. Maybe it is due to my Code version, which is 1.62.0, or maybe it somehow related to the fact that in Arch’s Linux Code uses different marketplace: Open VSX Registry.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
RB-Labcommented, Dec 9, 2021

Ahh, damn, it’s not even you who published the extension there! image Ok. I’ll address this issue to open-vsx than.

0reactions
meganroggecommented, Dec 13, 2021

I made this web-enabled, which is why there is that browser entry there.

Replace the scripts in the package.json with:

"scripts": {
    "vscode:prepublish": "npm run compile",
    "compile": "tsc -p ./",
    "watch": "tsc -watch -p ./",
    "package-web": "eslint . --ext .ts,.tsx"
  },

it will work

Read more comments on GitHub >

github_iconTop Results From Across the Web

VS Code is unable to activate a debugger extension because ...
The error occurs because a check in the extension API fails that verifies that a "debug adapter factory" can only be registered in...
Read more >
Managing Extensions in Visual Studio Code
VS Code makes it easy to manage your extensions. You can install, disable, update, and uninstall extensions through the Extensions view, the Command...
Read more >
Can't Find certain extensions in CODE-OSS(Open source ...
I have to do this every time after code - OSS updates, so I created a small python script that automates this. –...
Read more >
Visual Studio Code - ArchWiki
Code is a cross-platform text editor developed by Microsoft, built on the Electron framework. Visual Studio Code is a binary distribution of ...
Read more >
Selection Search
With this extension you can easily search for text you have selected. ... Source code: https://github.com/Pitmairen/selection-search ...
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