Open BokuNoCode opened 6 years ago
Just after installation of Naomi experienced the same issue.
This is being fixed and a temporary solution is described here.
Thank you!
Avoid using the builtin PHP, Markdown and Latex syntaxes if possible
Are we suppose to remove the default PHP syntax temporarily??
Avoid using the builtin PHP, Markdown and Latex syntaxes if possible
Are we suppose to remove the default PHP syntax temporarily??
No, you just configure files to open with the alternative syntax by default.
View > Syntax > Open all with the current extension as...
;The default PHP package can still be enabled, error will only appear if you try to highlight the code using the builtin syntaxes.
OK, thanx for the clarification and your help.
Is there a way to disable only Naomi PHP syntax?
@brokeyourbike
Rename the “naomi.php7.sublime-syntax” to “naomi.php7.sublime-syntax.disabled” located at:
~/Library/Application Support/Sublime Text 3/Packages/Naomi/syntaxes/
~/.config/sublime-text-3/Packages/Naomi/syntaxes/
%APPDATA%\Sublime Text 3\Packages\Naomi\syntaxes\
@borela Unfortunately that does not help.
I renamed the file /Users/<USER>/Library/Application Support/Sublime Text 3/Packages/Naomi/syntaxes\naomi.php7.sublime-syntax
to /Users/<USER>/Library/Application Support/Sublime Text 3/Packages/Naomi/syntaxes naomi.php7.sublime-syntax.disabled
, restarted Sublime text and error persists: Error loading syntax file "Packages/PHP/PHP.sublime-syntax": Apparent recursion within a with_prototype action: 25000 context sanity limit hit
.
What did I do wrong?
naomi's php syntax highlighting breaks when there are escaped single quotes inside a string of single quotes.
$str = 'asd\'s \'asd';
so i was trying to revert back to native php syntax highlighter but that broke. so i ended up disabling naomi for now. i downloaded it for React but ill just have to make do without it for now.
Still waiting for a fix
@borela Unfortunately that does not help.
I renamed the file
/Users/<USER>/Library/Application Support/Sublime Text 3/Packages/Naomi/syntaxes\naomi.php7.sublime-syntax
to/Users/<USER>/Library/Application Support/Sublime Text 3/Packages/Naomi/syntaxes naomi.php7.sublime-syntax.disabled
, restarted Sublime text and error persists:Error loading syntax file "Packages/PHP/PHP.sublime-syntax": Apparent recursion within a with_prototype action: 25000 context sanity limit hit
.What did I do wrong?
Were you able to disable it yet? doesn't seem to work for me
Just tried this plugin. In first place, it broke the original PHP syntax, and when I've selected the Naomi PHP syntax, it didn't highlight HTML outside the PHP tags. Loved how it displays pure PHP files though, but it's unusable for me
Welp, looks like this isn't getting fixed any time soon. Gotta find another plugin for react cause Naomi is no good for php and breaks the native highlighting.
Same as @rishisharma08, installed for react but it breaks php... Why wouldn't they fix it? Is this project abandoned?
+1
Attached is a working plugin that supports Naomi PHP7, Sublime (Native) PHP, and React/JSX using Naomi without conflict.
FWIW, the breaking syntax highlighter was css3
which, NGL, seems useless since sublimes CSS highlighter is perfectly fine.
Just delete the original package and replace it with this one. For good measure close your sublime, delete your cache folder, reopen.
Alternative Solution: Alternatively delete all syntaxes you don't want out of Naomi. What you need for just react highlighting is the following:
Remove any and all other sublime-syntax/directory files not related to the above in Namomi/Syntaxes
.
@KernelZechs removing seems to break React CSS (style-components)
@KernelZechs removing seems to break React CSS (style-components)
It does, however I don't use them (and in a work capacity where I do we're migrating away from them) so the above solution works fine for me. I can see if I can try to make another patch to fix that problem, but I wish the Naomi team would actually address this ticket instead of me championing this cause.
Please fix this, Team!
error: Error loading syntax file "Packages/PHP/PHP.sublime-syntax": Apparent recursion within a with_prototype action: 25000 context sanity limit hit