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.

Syntax coloring lost after load or reformat

See original GitHub issue

I have observed Rust source syntax coloring loss occasionally, usually after:

  • first opening of a file
  • Ctrl+Shift+F formatting
  • copy/paste code from another source file

Closing and reopening the affected file is an effective, albeit annoying, workaround.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:52 (51 by maintainers)

github_iconTop GitHub Comments

1reaction
mickaelistriacommented, Jul 5, 2021

On the new june build of corrosion (1.2.1.202106081156) and eclipse 2020-12 doing Window -> Editor -> Split Editor (Vertical) for the first time since eclipse launch on a 200 line rust file results in the second pane consistently being uncolored. It also happens when I leave the vertical split open and restart eclipse.

Please open a separate issue for that as it doesn’t seem related to the original bug.

1reaction
cplir-ccommented, Jul 5, 2021

On the new june build of corrosion (1.2.1.202106081156) and eclipse 2020-12 doing Window -> Editor -> Split Editor (Vertical) for the first time since eclipse launch on a 200 line rust file results in the second pane consistently being uncolored. It also happens when I leave the vertical split open and restart eclipse.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Syntax highlight getting lost when jumping down large file
If I load the file and set the syntax to Asciidoc the highlighting looks fine. However if I then do a search that...
Read more >
vim - No syntax highlighting after session restore in terminal
To enable your highlight color. I was using my .vimrc which does not have these but works in linux and old mac version....
Read more >
Custom Syntax Coloring - Wing Python IDE
Your custom syntax coloring configuration files can be modeled on the system-wide defaults, which are stored in resources/syntax within the Install Directory ...
Read more >
Most of the syntax coloring in the .js file is lost after pasting ...
Most of the syntax coloring in the .js file is lost after pasting code from a file outside of the project. This problem...
Read more >
GNU Source-highlight 3.1.8
This program, given a source file, produces a document with syntax highlighting. It also provides a C++ highlight library (new) (since version 3.0)....
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