Sublime Forum

C++ syntax highlighting broken only on linux

#1

I have the latest ST 4. On my linux install, syntax highlighting is broken in C++ files: the first line gets some highlighting, then the rest of the text is almost all uncoloured.

The same ST configuration works perfectly on Windows and Mac though.

I have a few packages installed, but I have tried removing the relevant ones and it made no difference. I don’t see anything interesting in the console.

	"installed_packages":
[
	"AutoPEP8",
	"BracketHighlighter",
	"Git",
	"Grunt",
	"HypnotoadSVN",
	"Package Control",
	"Pretty JSON",
	"Qt Completions for C++",
	"Sass",
	"SideBarEnhancements",
	"SublimeCodeIntel",
	"SublimeLinter",
	"SublimeLinter-pycodestyle",
	"Theme - Monokai Pro",
	"WindowsContextMenu",
],

I’ve removed codeintel, linter, Qt Completions and bracket highlighter and nothing changed.

Any ideas?

0 Likes

#2

Does it happen in safe mode?

1 Like

#3

Seems OK in safe mode. Does that mean one of the packages is the cause, or is there some data or cache somewhere to be cleared?

0 Likes

#4

It’s likely one of the packages is the cause, though you can try clearing the cache in ~/.cache/sublime-text.

0 Likes

#5

I’ve removed the cache and all my packages except Package Control, and even changed my theme and colour schemes to the default, and I still have the problem.

0 Likes

#6

Perhaps you have something in your user package? You can check in .config/sublime-text/Packages/.

0 Likes

#7

I nuked .config/sublime-text-3/Packages/User and the problem persists.

If I nuke all of .config/sublime-text-3 then it works.

0 Likes

#8

My other linux install works fine too, so I guess I have some bad data somewhere on the other machine.

0 Likes