monokai-pro / sublime-text

Issue tracking for Monokai Pro for Visual Studio Code
https://monokai.pro
197 stars 7 forks source link

Breaks Automatic Syntax Highlighting for some filetypes #173

Open Treeniks opened 7 months ago

Treeniks commented 7 months ago

I use Sublime Text 4169 on Windows 11 and since one of the recent updates, automatic selection of syntax seems to be broken for both Julia and Scala files (there might be more, but those are the two I have noticed). After going through all my installed Packages, I found Monokai Pro to be the culprit. If I remove or disable the packages, the problem goes away.

For Julia I use the Julia-sublime Package.

Specifically, when opening a Julia file, e.g. hello.jl, instead of Sublime automatically recognizing that it is a Julia file and setting the syntax to Julia, is sets it to Plain Text (Julia) with no Syntax highlighting until I manually set the Syntax to Julia.

For Scala it's a little weirder. When opening a scala file, e.g. hello.scala, Sublime correctly recognizes and sets the Syntax to Scala, however there is still not Syntax highlighting. Only once I set the Syntax to Scala again manually do I get syntax highlighting.

Mind you this issue is not dependent on using the Theme. Simply having the package installed is enough for this problem to occur, even when using a different theme.

dndrsn commented 1 month ago

This is likely related to / a duplicate of https://github.com/Monokai/monokai-pro-sublime-text/issues/178.

LimpEmu commented 1 week ago

For me HTML files are broken, I really need this fixed. It's very, very annoying to set the file type manually for one of the most frequently edited file types. For now I will no longer use Monokai Pro even though I paid for it.