You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that even if you do manually install vscode-textmate to /node_modules.asar/ in the root of your filesystem, you get this in the console:
[Extension Host] TypeError: Cannot read property 'encoding' of null
at t (nbin.js:1:8431)
at n.(anonymous function).t (nbin.js:1:6652)
at n (nbin.js:1:6481)
at n.(anonymous function).t (nbin.js:1:6667)
at go$readFile (/home/travis/build/codercom/code-server/packages/server/build/bootstrap-fork.js.gz:7452:14) at Object.readFile (/home/travis/build/codercom/code-server/packages/server/build/bootstrap-fork.js.gz:7449:12)
at Promise (/home/tom/code-server/extensions/coenraads.bracket-pair-colorizer-2-0.0.28/out/src/textMateLoader.js:34:16)
Interestingly: /home/tom is my home folder. I see many errors stemming from /home/travis though, and @ymmt2005 has /home/travis in his log output as well. I checked my filesystem to see if it was just this extension or not, and it appears /home/travis is all through CachedExtensions/builtin as well as globalStorage/state.json.
I added a fix for extensions trying to load from node_modules.asar. As soon as CI completes I'll put up another pre-release.
It couldn't install the extension because it didn't exist so we'll need to add a 404 check in code-server to make that more clear because it was trying to parse the 404 page as a vsix. It seems the marketplace failed to build the extension because it has a dependency on event-stream@3.3.6 which doesn't exist (I think it was pulled due to some security vulnerability).
Maybe the move is to run npm audit fix if a package fails to build and try again. In the meantime I fixed it manually.
I neglected to test inside the binary. 😲 Looks like our binary packager had an issue in some cases reading files (the error @TomFrost posted above). Should have a new pre-release up soon.
You're right about remote.extensionKind. All extensions run on the server regardless of their kind. Eventually we'll be able to run certain extensions in the browser though.
BTW @TomFrost if you're still curious the build path inside Travis CI used to be /home/travis and that gets embedded into the binary which is why you see that path. It's been changed since then to /src/build.
Activating extension 'CoenraadS.bracket-pair-colorizer-2' failed: ENOENT: no such file or directory, open '/usr/lib/code-server/lib/vscode/node_modules.asar/vscode-oniguruma/release/onig.wasm'. _logMessageInConsole @ abstractExtensionService.ts:416
I realized that there was no /usr/lib/code-server/lib/vscode/node_modules.asar folder. Instead there was /usr/lib/code-server/lib/vscode/node_modules and on this folder I found 'vscode-textmate'.
Activity
foresthoffman commentedon Apr 19, 2019
@ymmt2005 What errors are you receiving in your browser's developer console, and/or in the VSCode Output tab?
ymmt2005 commentedon Apr 19, 2019
In developer console, I can see following errors:
TomFrost commentedon Apr 26, 2019
Note that even if you do manually install vscode-textmate to /node_modules.asar/ in the root of your filesystem, you get this in the console:
Interestingly:
/home/tomis my home folder. I see many errors stemming from/home/travisthough, and @ymmt2005 has/home/travisin his log output as well. I checked my filesystem to see if it was just this extension or not, and it appears/home/travisis all throughCachedExtensions/builtinas well asglobalStorage/state.json.sr229 commentedon Sep 12, 2019
@ymmt2005 hey OP, give v2 a try, I think we fixed it on the latest tree.
ymmt2005 commentedon Sep 13, 2019
@sr229 Thank you, but unfortunately, the latest v2 seems not working well:
Fix extensions that try to load from node_modules.asar
code-asher commentedon Sep 13, 2019
I added a fix for extensions trying to load from
node_modules.asar. As soon as CI completes I'll put up another pre-release.It couldn't install the extension because it didn't exist so we'll need to add a 404 check in code-server to make that more clear because it was trying to parse the 404 page as a vsix. It seems the marketplace failed to build the extension because it has a dependency on
event-stream@3.3.6which doesn't exist (I think it was pulled due to some security vulnerability).Maybe the move is to run
npm audit fixif a package fails to build and try again. In the meantime I fixed it manually.ymmt2005 commentedon Sep 14, 2019
Thanks. I tried the new version. It successfully installs and starts the extension.
However, it does not colorize brackets.
No errors in "Log (Remote Extension Host)".
It spits a log in console, though:
ymmt2005 commentedon Sep 14, 2019
Also, I tried these in
settings.jsonbut both did not work.In fact, it seems that code-server does not support
remote.extensionKind.{ "remote.extensionKind": { "coenraads.bracket-pair-colorizer-2": "ui" } }{ "remote.extensionKind": { "coenraads.bracket-pair-colorizer-2": "workspace" } }code-asher commentedon Sep 16, 2019
I neglected to test inside the binary. 😲 Looks like our binary packager had an issue in some cases reading files (the error @TomFrost posted above). Should have a new pre-release up soon.
You're right about
remote.extensionKind. All extensions run on the server regardless of their kind. Eventually we'll be able to run certain extensions in the browser though.BTW @TomFrost if you're still curious the build path inside Travis CI used to be
/home/travisand that gets embedded into the binary which is why you see that path. It's been changed since then to/src/build.CogitoBurrito commentedon Oct 13, 2020
Bracket Pair Colorizer 2 does not work on 3.6.0.
code-server --version: 3.6.0Error message in developer console:
Activating extension 'CoenraadS.bracket-pair-colorizer-2' failed: ENOENT: no such file or directory, open '/usr/lib/code-server/lib/vscode/node_modules.asar/vscode-oniguruma/release/onig.wasm'. _logMessageInConsole @ abstractExtensionService.ts:416code-asher commentedon Oct 13, 2020
@Talent30 Thanks for the report, I opened #2197 to fix the problem.
andreimosman commentedon Feb 9, 2021
I got this message:
Activating extension 'CoenraadS.bracket-pair-colorizer-2' failed: Cannot find module '/usr/lib/code-server/lib/vscode/node_modules.asar/vscode-textmate'.I realized that there was no /usr/lib/code-server/lib/vscode/node_modules.asar folder. Instead there was /usr/lib/code-server/lib/vscode/node_modules and on this folder I found 'vscode-textmate'.
I created a symbolic link:
$ sudo ln -s /usr/lib/code-server/lib/vscode/node_modules /usr/lib/code-server/lib/vscode/node_modules.asarIt's working now! =)