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

Errors loading syntax files #402

Closed
xaun opened this issue May 16, 2016 · 8 comments
Closed

Errors loading syntax files #402

xaun opened this issue May 16, 2016 · 8 comments

Comments

@xaun
Copy link

xaun commented May 16, 2016

Since updating to build 3114, a lot of my syntax files are not loading.

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

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

Any ideas?

Thanks!

@FichteFoll
Copy link
Collaborator

FichteFoll commented May 16, 2016

If there is a "HTML/HTML.sublime-syntax" file in your packages folder, delete it.

@xaun
Copy link
Author

xaun commented May 17, 2016

Thanks for your reply @FichteFoll, these all the HTML. files in my sublime packages and installed packeges files with no HTML.sublime-syntax file.

10:48:31 ~/Dropbox/App/Settings/Sublime Text 3 $ find . -name HTML*
./Installed Packages/HTML Page Snippets.sublime-package
./Installed Packages/HTML Snippets.sublime-package
./Installed Packages/HTML5.sublime-package
./Packages/HTML
./Packages/HTML/HTML (Angular.js).tmLanguage
./Packages/Rails/HTML (Rails).tmLanguage
./Packages/User/HTML.sublime-settings

@xaun
Copy link
Author

xaun commented May 17, 2016

Ok fixed this with a nuke that seems to not have done much damage xD

find Installed\ Packages/ Packages/ -name HTML* | xargs rm -rf

@xaun xaun closed this as completed May 17, 2016
@tisba
Copy link

tisba commented Sep 26, 2016

Seeing this with Sublime 3126 too. Removing HTML/HTML.sublime-syntax does not seem to help much. Can you elaborate, on why to delete that specific file, @FichteFoll?

In /Users/basti/Library/Application Support/Sublime Text 3 I see somewhat similar files:

➜ find . -name HTML\* | grep sublime-syntax
./Cache/ASP/HTML-ASP.sublime-syntax.cache
./Cache/Erlang/HTML (Erlang).sublime-syntax.cache
./Cache/Rails/HTML (Rails).sublime-syntax.cache
./Cache/Rails/HTML (Rails).sublime-syntax.rcache
./Cache/TCL/HTML (Tcl).sublime-syntax.cache

@FichteFoll
Copy link
Collaborator

@tisba, it could have been created either by a package or the user themselves when trying to edit the syntax definition at some point. Since it has been updated upstream, this would cause changes to be ignored since an override file exists.
Either way, this didn't appear to be the issue for @xaun. Instead, it is likely that some other HTML flavor provided by a different package included the original HTML syntax in a way that was incompatible and created an infinite loop upon compilation of said file.

Cached files don't really matter in this case.

@tisba
Copy link

tisba commented Sep 26, 2016

Is there any chance to debug this further? I'm still having this issue.

@michaelblyons
Copy link
Collaborator

@tisba Is either this or this relevant?

@tisba
Copy link

tisba commented Sep 26, 2016

Yes, that helped, thanks, @michaelblyons!

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

4 participants