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

25000 context sanity limit hit for java syntax #181

Open
YuriGor opened this issue Oct 16, 2018 · 10 comments
Open

25000 context sanity limit hit for java syntax #181

YuriGor opened this issue Oct 16, 2018 · 10 comments

Comments

@YuriGor
Copy link

YuriGor commented Oct 16, 2018

Naomi breaks native java syntax highlighter:

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

If I disable Naomi package - everything starts to work. Enable back - a lot of errors happens and java code become plain white.

Since Java code example is proprietary, I'll send it to you by email.

@YuriGor
Copy link
Author

YuriGor commented Oct 16, 2018

@borela
Copy link
Owner

borela commented Oct 16, 2018

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).

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.

@mIcHyAmRaNe
Copy link

mIcHyAmRaNe commented Oct 19, 2018

i installed Laravel Blade Highlighter & Naomi.
and i have same problem when i open .blade.php files :

Apparent recursion within a with_prototype action: 25000 context sanity limit hit

screenshot from 2018-10-17 23 47 47
disabling or removing Naomi resolve the problem but that's the last thing that i want to do

25,000 context limit is too low #1687
deleting HTML syntax the project will fix it?

I think you have to do a little clean in your code and lighten up a little

@borela
Copy link
Owner

borela commented Oct 19, 2018

I think you have to do a little clean in your code and lighten up a little

That's already in progress and it's a big change.

The problem was a wrong assumption about external files like I do here, I thought sublime would insert a reference to that file but the reality is that sublime copies the contents of the referenced file and any reference to other files in that file, recursively.

It's not that the code is not clean or heavy, it's just that sublime's syntax system duplicates the code everytime I use the include statement.

@cibulka
Copy link

cibulka commented May 1, 2019

Any updates on this issue? The problem persists for me.

@luco
Copy link

luco commented Nov 22, 2019

Can't use until this get fixed.

@ryanpcmcquen
Copy link

Any news here?

@seplveda
Copy link

I think you have to do a little clean in your code and lighten up a little

That's already in progress and it's a big change.

The problem was a wrong assumption about external files like I do here, I thought sublime would insert a reference to that file but the reality is that sublime copies the contents of the referenced file and any reference to other files in that file, recursively.

It's not that the code is not clean or heavy, it's just that sublime's syntax system duplicates the code everytime I use the include statement.

Hi Borela, nice work with Naomi, just rocks. But I'm still having the 25.000 limit with LaTeX.

@TechSage369
Copy link

Disable JavaScriptNext - ES6 syntax

actually it is creating an error

@pryley
Copy link

pryley commented Feb 11, 2022

Disable JavaScriptNext - ES6 syntax

actually it is creating an error

This was the solution! Install the Babel package instead.

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

9 participants