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

"Apparent recursion" error loading syntax file #533

Closed
agj opened this issue Jul 27, 2018 · 13 comments · Fixed by #607
Closed

"Apparent recursion" error loading syntax file #533

agj opened this issue Jul 27, 2018 · 13 comments · Fixed by #607
Labels
C: syntax Category: syntax definition

Comments

@agj
Copy link

agj commented Jul 27, 2018

First of all thank you, I love this package and have been using it for a long time now. Recently however, I don't know if after an automatic update of MarkdownEditing or of Sublime, I'm getting this error whenever I open a markdown file:

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

I am under macOS High Sierra 10.13.6, and I have Sublime Text 3 version 3.1.1 build 3176, with the latest MarkdownEditing (I don't know how to check the version of a package...)

I didn't find any other issues here with the same error. I wonder what's causing it...?

@dissolved
Copy link

I get the same error... I've found various mentions of it here mostly mention disabling it. But that doesn't seem very practical! I actually want syntax highlighting for my markdown.

@agj
Copy link
Author

agj commented Jul 30, 2018

If you mean disabling the Markdown package, it's disabled in my case. I don't think this is related to that... And I have it set to use Markdown GFM.

@jayliu50
Copy link

jayliu50 commented Aug 6, 2018

I find that by disabling or enabling JavaScriptNext - ES6 Syntax I can get the issue to go away or come back. This what you find as well? I'm on Sierra, ST3, 3176.

Looking at other threads, it does seem like JavaScriptNext is the culprit:

Benvie/JavaScriptNext.tmLanguage#7

@agj
Copy link
Author

agj commented Aug 6, 2018

Wow, you're right, @jayliu50! It does work when I disable that package. I wonder why the error is so uninformative, though... Also, I tried installing the "JavaScript Ultimate" package as a replacement and I still got the same error. But, it does seem to mean that the problem lies in Sublime Text or its APIs...

@suifengtec
Copy link

thx @jayliu50

it works fine after I disable that package.

@eban5
Copy link

eban5 commented Aug 22, 2018

Disabling JavascriptNext - ES6 Syntax also worked for me, also on macOS High Sierra 10.13.6 Sublime Text 3 version 3.1.1 build 3176. Using the latest MarkdownEditing. This was driving me nuts, thanks!

@oldjackson
Copy link

Thank you so much, it worked for me as well!

@sascha-wolf
Copy link

For me the culprit was Naomi

@amsul
Copy link

amsul commented Jan 5, 2019

After months of those annoying popups..I can also confirm, disabling JavascriptNext - ES6 Syntax fixes the issue.

Thanks @eban5 🙌

@idr4n
Copy link

idr4n commented May 23, 2019

I don't have JavascriptNext nor Naomi installed, but still face the same issue. I do have however Javascript (Babel) installed.

Reading other posts about this (e.g. here), I realized that the problem is being caused by disabling the built-in Javascript syntax. All these alternative Javascript syntax packages require or suggest to have the built-in Javascript disabled, and so if I enable it back, the problem goes away.

I do however want/need to keep the built-in Javascript disabled so other packages such Vue Syntax Highlighting uses the Babel syntax I like instead of the built-in one. But then my Markdown files will lack the benefits of MarkdownEditing GFM.

Is there any way that MarkdonwEditing GFM uses the syntax highlighting currently active for your normal .js files?

@skipjack
Copy link

Here's a link to the corresponding Naomi ticket:

borela/naomi#117

@zedtux
Copy link

zedtux commented Nov 19, 2020

Thank you @skipjack for pointing to the Noami's issue!

@deathaxe
Copy link
Member

This shouldn't happen anymore due to embed being used to included 3rd-party packages.

@deathaxe deathaxe added bug C: syntax Category: syntax definition labels May 14, 2021
@deathaxe deathaxe mentioned this issue Jul 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: syntax Category: syntax definition
Projects
None yet
Development

Successfully merging a pull request may close this issue.