Skip to content
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

Getting ST error & no syntax highlighting since most recent version upgrade last week #149

Open
adrienne opened this issue Jun 24, 2018 · 8 comments

Comments

@adrienne
Copy link

adrienne commented Jun 24, 2018

I get the following since Naomi upgraded a few days ago. Always when opening ST3 from scratch, and sometimes when switching projects or even buffers. image

I am using Windows 10.

In addition, there is no syntax highlighting on any of the filetypes i use which Naomi is supposed to handle anymore - not only PHP but SASS and React are affected. The error message, however, always references the PHP syntax file.

There is no code required to reproduce; it happens spontaneously when opening the ST3 main program, and intermittently thereafter. Below is a list of the other PackageControl packages I am using, in case there's a known conflict:

  • DoxyDoxygen
  • GitSavvy
  • LESS
  • Origami
  • PackageControl
  • SideBarTools
  • SolarizedColorScheme
  • SublimeLinter
  • SublimeLinter-contrib-lesshint
  • SublimeLinter-contrib-sass-lint
  • SublimeLinter-eslint
  • SublimeLinter-phpcs
  • SublimeLinter-phpmd
@borela
Copy link
Owner

borela commented Jun 25, 2018

Which version of sublime are you using?

@adrienne
Copy link
Author

@borela - 3.1.1, Build 3176 . I ran "check for updates" and it says there is no update available.

@borela
Copy link
Owner

borela commented Jun 25, 2018

The core syntaxes are being heavily updated to allow other syntaxes to be mixed and that combined with Naomi is hitting the 25k contexts (A similar issue #117), to solve this I am writting a build system to reduce the amount of contexts required.

As mentioned in the other issue, a temporary alternative is to use sublime's build 3143 (https://download.sublimetext.com/Sublime%20Text%20Build%203143%20x64%20Setup.exe). I'll leave this issue open and close it when I get the build system working.

@braginteractive
Copy link

Getting the same issue.

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

Had to remove the Naomi package for the time being.

@adrienne
Copy link
Author

adrienne commented Oct 9, 2018

@borela - has this ever been looked at? Any fixes yet?

@borela
Copy link
Owner

borela commented Oct 9, 2018

@adrienne working on the fix on build-system branch

@conartist6
Copy link

I too have this error. It seems to happen if I install Naomi and then Typescript Syntax, however at this point I no longer have any other syntax plugins installed and I am unable to install Naomi without triggering the issue.

@borela
Copy link
Owner

borela commented Oct 13, 2018

@conartist6 The error usually happens with the builtin PHP, Markdown and LateX syntaxes, it started when they did a major upgrade in the latest version of sublime, they included source.js into their contexts and this in turn makes sublime go beyond the 25k contexts.

For PHP and Markdown, I included a syntax that does not present this issue(I'll probably remove them after the build system is in place).

If, after removing other plugins, the error still persists, clean up the Cache directory:

  • OS X: ~/Library/Application Support/Sublime Text 3
  • Windows: %LOCALAPPDATA%\Sublime Text 3
  • Linux: ~/.config/sublime-text-3

Avoid using the builtin PHP, Markdown and Latex syntaxes if possible, otherwise you'll have to wait for the build system to be finished. I am updating it as fast I can trying to balance my work schedule but this one will be a major change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants