-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
25000 context sanity limit hit for PHP syntax #183
Comments
This is being fixed and a temporary solution is described here. |
Thank you! |
Are we suppose to remove the default PHP syntax temporarily?? |
No, you just configure files to open with the alternative syntax by default.
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? |
Rename the “naomi.php7.sublime-syntax” to “naomi.php7.sublime-syntax.disabled” located at:
|
@borela Unfortunately that does not help. I renamed the file What did I do wrong? |
naomi's php syntax highlighting breaks when there are escaped single quotes inside a string of single quotes. |
Still waiting for a fix |
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 Just delete the original package and replace it with this one. For good measure close your sublime, delete your cache folder, reopen. Alternative Solution:
Remove any and all other sublime-syntax/directory files not related to the above in |
@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
The text was updated successfully, but these errors were encountered: