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.

Bracket Pair Colorizer 2 does not colorize

See original GitHub issue
  • code-server version: 1.868-vsc1.33.1
  • OS Version: Ubuntu 18.04

Description

Bracket Pair Colorizer 2 version 0.0.28 can be installed but not colorize brackets.

Steps to Reproduce

  1. Install the extension.
  2. Open some file containing matching brackets.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:11
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

9reactions
andreimosmancommented, 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.asar

It’s working now! =)

1reaction
code-ashercommented, 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.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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

VS Code, Bracket Pair Colorizer does not work. Do I have to ...
If you are facing trouble activating the default bracket pair colorizer then here are the steps to follow. In VS Code ...
Read more >
Bracket Pair Colorization is not working #155239 - GitHub
Yes/No VS Code Version: 1.69.1 OS Version: MacOS 12.3.1 (21E258) Steps to Reproduce: The native VSCode bracket pair colorization suddenly ...
Read more >
[Deprecated] Bracket Pair Colorizer 2
This extension allows matching brackets to be identified with colours. The user can define which tokens to match, and which colours to use....
Read more >
Bracket Pair Colorizer (1&2) are no longer maintained and h...
Bracket Pair Colorizer (1&2) are no longer maintained and have been sporting that warning for a couple of months now.
Read more >
VS Code tips — The Bracket Pair Colorizer 2 extension
Note that bracket colorization is now built into VS Code: https://youtu.be/tw7LJZfhowU----Original post:Today's VS Code extension: Bracket ...
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