borela / naomi

Sublime Text enhanced syntax highlighting for JavaScript ES6/ES7/ES2015/ES2016/ES2017+, Babel, FlowType, React JSX, Styled Components, HTML5, SCSS3, PHP 7, phpDoc, PHPUnit, MQL4. Basic: Git config files.
Other
557 stars 20 forks source link

Error loading syntax file "Packages/PHP/PHP.sublime-syntax": Apparent recursion within a with_prototype action: 25000 context sanity limit hit #261

Open reekrd opened 3 years ago

reekrd commented 3 years ago

After installing Naomi (I used Package Control) Sublime pops up the following error:

Error loading syntax file "Packages/PHP/PHP.sublime-syntax": Apparent recursion within a with_prototype action: 25000 context sanity limit hit

This error also pops up after restarting Sublime.

If I remove Naomi the error goes away.

Minimal code sample used to reproduce the error.
delroh commented 3 years ago

Also experiencing this issue but with markdown syntax.

On sublime text start/restart: window toast popup

Checking the sublime text terminal: sublime text terminal output

CelestinaDragoni commented 3 years ago

I have posted a solution here: https://github.com/borela/naomi/issues/183 try that and and see if it works for you (Note: I'm not on the naomi team). Let me know if that works out for you.

reekrd commented 3 years ago

@KernelZechs awesome. Thanks for the workaround.

I went with renaming Naomi/syntaxes/naomi.php7.sublime-syntax Naomi/syntaxes/php7 Naomi/syntaxes/naomi.css3.sublime-syntax Naomi/syntaxes/css3

boycce commented 3 years ago

@KernelZechs awesome. Thanks for the workaround.

I went with renaming Naomi/syntaxes/naomi.php7.sublime-syntax Naomi/syntaxes/php7 Naomi/syntaxes/naomi.css3.sublime-syntax Naomi/syntaxes/css3

Unfortunately @reekrd when doing this React CSS (style-components) will break.