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

ST 3124: Error loading syntax, apparent recursion within a with_prototype action: 25000 context sanity limit hit #141

Closed
simonhaenisch opened this issue Sep 22, 2016 · 34 comments

Comments

@simonhaenisch
Copy link

With the latest ST release (3124), when I have the default markdown package disabled, I get an error message like in the title (also see the forum link below) and the syntax highlighting won't work.

Enabling the default markdown package fixed the problem. Is it intended to have them both enabled?

Maybe this info is related:
https://forum.sublimetext.com/t/syntax-highlighting-problem-with-3113-apparent-recursion-within-a-with-prototype-action-25000-context-sanity-limit-hit/19914/22

@jessmartin
Copy link

Enabling the default markdown package fixed the problem. Is it intended to have them both enabled?

That also fixed it for me - thanks for the fix!

@simov
Copy link
Contributor

simov commented Sep 23, 2016

Enabling the default markdown package

Can you elaborate on this? I'm really not getting it. Which one is the default Markdown package and how can I enable it? I tried switching the file syntax from Markdown Extended to Markdown but it doesn't work.

@rbnhmll
Copy link

rbnhmll commented Sep 23, 2016

@simov In your preferences>settings file you can remove or comment out Markdown from your ignored_packages. At least a temporary fix.

"ignored_packages":
    [
        // "Markdown",
        "Vintage"
    ],

@simov
Copy link
Contributor

simov commented Sep 23, 2016

Thanks @rbnhmll !

Actually adding Markdown to my ignored packages solved it for me 😆

I mean I have this .sublime-syntax manually placed in my packages folder, because I have some custom stuff there. I didn't installed it with package control.

@simonhaenisch
Copy link
Author

simonhaenisch commented Sep 23, 2016

Well that is kind of strange now 😜

Actually there is only two places where with_prototype is used:

Both times latex_elements is included and latex_elements has include: latex_elements itself (L1263), so maybe this is where the recursion happens? I don't have any experience with syntax files 😑 @simov are your custom changes related to the latex part?

@simov
Copy link
Contributor

simov commented Sep 23, 2016

So I'm back with the same error. It turns out that my .sublime-syntax is identical, it's just not installed through the package manager.

Ignoring the Markdown package actually removes Markdown from the list of available syntaxes.

@jonschlinkert
Copy link
Owner

something changed in sublime text (again) that is causing these issues. I would be very appreciative if anyone can shed any light on what's happening

@niksy
Copy link

niksy commented Sep 23, 2016

Same error occurs for Bash (Shell) syntax.

@simov
Copy link
Contributor

simov commented Sep 24, 2016

Adding ShellScript to the list of ignored packages solves it for me. Too bad I actually want my bash code blocks highlighted in my markdown files. The problem is in another syntax file and just because this syntax loads other syntaxes the error manifests here.

Can someone report the issue with sublime's default ShellScript package on their official forum or something? They just released a hotfix today (3126), but that doesn't seems to fix this issue.

@jonschlinkert
Copy link
Owner

@randy3k any thoughts on this? The latex code appears to be causing the issue. When I remove latext support, the errors go away. I wanted to get your thoughts first and see if you had a fix before I just remove latex support.

@randy3k
Copy link
Contributor

randy3k commented Sep 24, 2016

The latex syntax was updated in the recent versions of ST.please remove the latex section for now. I will fix it asap

@jonschlinkert
Copy link
Owner

please remove the latex section for now.

I'll try to do it this evening, if someone wants to do a pr before then that would be great

@lwolfsonkin
Copy link

Just pinging this issue. I was wondering if there are any updates to getting LaTex support both for math and arbitrary LaTex back in this package.

@hws-sp
Copy link

hws-sp commented May 22, 2017

Problems with CFML package => I had to remove CSS3 and HTML5 from package list

@tegendraads
Copy link

@hws-sp Thanks! That solved my problem with the same errror occurring for the CML package. Removed CSS3 and HTML5.

@tuayo77
Copy link

tuayo77 commented Aug 6, 2017

remove html and css
it work for me

@skwidz
Copy link

skwidz commented Oct 26, 2017

removing css3 worked for me. thanks @hws-sp

@developer669
Copy link

Yep!
Just remove css3 package. works for me !
Thanks!

@indrayam
Copy link

My setup:
MacOS Sierra 10.12.6
Sublime Text Dev Channel Build 3157

I had set MarkdownExtended as my default Syntax type for .md files. Every time I opened a Markdown file, I would get this error:

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

I decided to take the advice shared above. Uninstalled the CSS3 package and the error went away!

Thanks again

@bcomnes
Copy link

bcomnes commented Jun 14, 2018

Disabled CSS3 made the error go away for me. Man, what a mess sublime text plugins have become.

@ruborg
Copy link

ruborg commented Jul 17, 2018

Same issue, removing package JavaScriptNext - ES6 Syntax fixed it

@Nemesis19
Copy link

JavaScriptNext - ES6 Syntax was my issue too

@mishell-trickster
Copy link

@ruborg What if I need this package? This error happens with JavaScriptNext for me, and I cant understand why. Previously, everything worked fine with JavaScriptNext - ES6 Syntax

@FrancisBou
Copy link

@mishell-trickster Updating Sublime Text to the latest version solved this problem for me.

@pup500
Copy link

pup500 commented Jul 23, 2018

As others have noticed, this error will appear when a different plugin has a problem. My problem was also with the JavaScriptNext plugin.

@rezn8d
Copy link

rezn8d commented Jul 24, 2018

ditto: JavaScriptNext - ES6 Syntax removed and all clear.

@Akamaozu
Copy link

+1 JavaScriptNext - ES6 Syntax as source of issues.

Removed package and everything is right again.

@sergeifilippov
Copy link

+1 JavaScriptNext - ES6 Syntax as source of issues.

Removed package and everything is right again.

@blake-regalia
Copy link

For those having issues w/ JavaScriptNext, might be worth switching to the much cleaner Ecmascript package: bathos/Ecmascript-Sublime.

@maparent
Copy link

Ecmascript-Sublime is also mentioning that error fyi. There is an interesting analysis of the recursion issue in bathos/Ecmascript-Sublime#51

Incidentally, it has no support for flow, for those of us who need that.
I just discovered that https://github.com/borela/naomi who does that well, though I still run into the recursion error.

@armlesshobo
Copy link

Adding Java and Java Server Pages to the list

@hashimaziz1
Copy link

Can confirm that disabling the CSS3 package solved this error appearing when using the Markdown or MultiMarkdown syntax, but it's ridiculous that this needs to be done at all, and that this hasn't been properly fixed after 2 years. It indicates something I've suspected for a while; that the state of ST3 development is a mess, and I'm seriously considering dropping it for something like VSCode or Atom.

@armlesshobo
Copy link

armlesshobo commented Dec 21, 2018

Removing "Naomi" fixed Groovy & Java syntax highlighting for me.

@ErAz7
Copy link

ErAz7 commented May 30, 2021

Thanks @armlesshobo
disabled Naomi and now it's working

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

No branches or pull requests