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.

Latest version (5.0.221116) breaks syntax highlighting

See original GitHub issue

The issue

Syntax highlighting stopped working for TypeScript files after last update.

v5.0.20221115: image

v5.0.20221116: image

Logs

2022-11-16 22:33:25.758 [error] Unable to load and parse grammar for scope source.tsx from file:///Users/devdavi/.vscode/extensions/ms-vscode.vscode-typescript-next-5.0.20221116/syntaxes/TypeScriptReact.tmLanguage.json {}

Steps to reproduce

  • Update to latest version (or let vscode update it automatically as happened to me)
  • Open a .ts (TypeScript) or .tsx (TypeScript React) file
  • You will probably see that syntax highlighting is not working anymore

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Reactions:44
  • Comments:14 (1 by maintainers)

github_iconTop GitHub Comments

31reactions
toyo30commented, Nov 17, 2022

step 1. Being in trouble image

step 2. Check version of “JavaScript and TypeScript Nightly” image

step 3. Changing version v5.0.20221115 image image

step 4. Still Being in trouble. Don’t panic. Just reload image command + shift + p -> Developer:Reload Window image

step 5. Solve! image

28reactions
mjbvzcommented, Nov 17, 2022

This is fixed with v5.0.202211170

Sorry for the trouble. The root cause was an upstream part of our build pipelines corrupting syntax files

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeScript syntax highlighting partially broken
Intellisense or code analysis works fine, it really is just issue with syntax highlighting. Visual Studiowindows 10.0typescriptvisual studio 15.1.2.
Read more >
Syntax Highlighting - GitLab Documentation
GitLab provides syntax highlighting on all files through Highlight.js and the Rouge Ruby gem. It attempts to guess what language to use based...
Read more >
1882163 – gedit disables HTML syntax highlighting due to ...
Fixed In Version: Doc Type: ---. Doc Text: Clone Of: Environment: Last Closed: 2021-11-30 16:30:31 UTC. Type: Bug. Dependent Products:.
Read more >
Visual Studio Code syntax highlighting is not working for ...
This was more of a bug with the latest version (currently 1.73.1). ... and TypeScript Nightly seems to be breaking the syntax highlighting....
Read more >
Syntax highlighting: vimrc - Miller Latest Documentation
Quick links: Flags Verbs Functions Glossary Release docs ... syntax for syntax-highlighting source files in the Miller programming language, ...
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