-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
Error loading Syntax File when running GitSavvy: Help #1028
Comments
I had the same issue and I followed this thread jonschlinkert/sublime-markdown-extended#141 to find the solution that worked for me: disable the package "JavaScriptNext - ES6 Syntax". Your case might be different... |
I guess the JSON code snippet in the first help page fools sublime to believe JS syntax should be set. Perhaps we could "force set" a markdown syntax (if available) falling back to plain text? |
I can see this happening in ST4 now. The help file opens as Plain Text and the navigation functionality does not work. Since the opened view has a name |
Hi! We actually assign a syntax, or try to. I know your savvy so could you run
On my machine this returns |
That actually gives a key error so there is no I do have default Markdown syntax and I can set it manually. Then the syntax setting is |
I've looked at how you set up the map at Lines 28 to 40 in 4aaed3c
sublime.find_resources("*.sublime-syntax") not returning all files if called early at load since the database of files is still loading. Could be that it triggers only when there are many files (I have many since I have a lot of .git directories in symlinked packages).
|
We have a broad |
It doesn't fail. It's just that the |
You patched GitSavvy to confirm that nothing fails here? |
Oh, I see what you mean now. It can fail for each syntax separately. I'll check it out. |
It fails for a lot of syntaxes but when it comes to Markdown the exception is:
More context for that line: tag-attr-equals:
- match: =
scope: punctuation.separator.key-value.markdown
set: tag-attr-value
- include: else-pop |
Okay, for ST4 we can use new API endpoints mentioned here: sublimehq/sublime_text#2186 (comment) |
For ST3, we could naive parse e.g. extract full match from |
Fixes #1028 For a lot of files `yaml.safe_load` fails if the lib does not support the used yaml format. It is also very slow to parse all syntax files. Since we only use relatively simple information here, t.i. a single key, we just run a regex and extract the useful information.
Sublime Text: Version 3.1.1 Build 3176
Git version 2.17.1 (Apple Git-112)
Mac OS Mojave (10.14)
Error:
Error loading syntax file "Packages/Markdown/Markdown.sublime-syntax": Apparent recursion within a with_prototype action: 25000 context sanity limit hit
Description: When I run, GitSavvy: Help in sublime text, the text shows, but the markdown does not.
Steps:
Log: [] (it had nothing, not sure why) (The error message pop-up is all I get)
The text was updated successfully, but these errors were encountered: