Error Loading Syntax File Packages/rails/ruby On Rails.tmlanguage
Sign in Pricing Blog Support Search GitHub This repository Watch 132 Star 2,533 Fork 273 sublimehq/Packages Code Issues 67 Pull requests 19 Projects 0 Wiki Pulse Graphs New issue Errors loading syntax files #402 Closed xaun opened this Issue May 16, 2016 · 8 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 4 participants 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 commented May 16, 2016 • edited If there is a "HTML/HTML.sublime-syntax" file in your packages folder, delete it. 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 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 closed this May 17, 2016 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 commented Sep 26, 2016 @tisba, it could have b
xml: Failed to open file In file "Packages/CoffeeScript/Syntaxes/CoffeeScript.tmLanguage" each time when I open my SB2. I use Mac version, build 2217.Nothing changes if I disable/remove CoffeeScript package. Maybe this behavior appeared after the last update. jprichardson 2012-07-17 15:10:11 UTC #2 I have the same problem. Really bummed. =( jprichardson 2012-07-17 15:29:33 UTC #3 Here's what I did to fix it. It's a big pain, but I wanted CoffeeScript highlighting back bad enough. Move your Sublime Text 2 Preferences folder: ~/Library/Application Support/Sublime Text2 to another location. Delete and redownload a fresh ST2. Open it up. The old directory will be recreated. Restore your license file from your old Sublime Text 2 preferences folder. Reinstall Package Control and https://github.com/sublimehq/Packages/issues/402 then install CoffeeScript. Did that help you? danja 2012-07-17 22:07:20 UTC #4 Same issue here after upgrading. Managed to fix it without getting too drastic and deleting all my preferences etc. Here's what worked for me: Close any open tabs/windows in ST2 Delete ~/Application Support/Sublime Text 2/Packages/CoffeeScript Delete any folders in ~/Application Support/Sublime Text 2/Backup/ which contain the CoffeeScript plugin Remove CoffeeScript via Package Manager Quit and re-open ST2 (hopefully by now the http://forum.sublimetext.com/t/error-loading-syntax-file-each-time-after-opening-st2/6474 errors have stopped) Re-install CoffeeScript via Package Manager Quit and re-open ST2 I suspect not all of these steps are strictly necessary, but shouldn't hurt. I also found that simply moving folders (including into the Trash) didn't seem to help, and that I had to actually empty the trash to get it to "stick", but I also have a suspicion that it might have been because I didn't figure out step 1 until later in the game. Anyway, I'm happily Coffee-ing again, hope this helps someone. Devon_Weller 2012-07-17 23:33:32 UTC #5 I just did: Remove CoffeeScript via Package Control Re-install CoffeeScript via Package Control and that fixed it for me. Xavura 2012-07-18 05:39:15 UTC #6 I don't understand how simply removing and reinstalling the package fixes this but if it works then great. mrjf 2012-07-18 23:24:51 UTC #7 danja's steps 1-7 worked for me, thank you. Deleting and re-installing alone didn't work. Maybe it would have worked if I hadn't had CS files open at the time? wesf90 2012-07-21 21:53:33 UTC #8 I had the same problem just now. Close out all tabs in sublime text (probably would work if you only closed out the Cofeescript tabs) Remove the Coffeescript plugin with Package Control Close ST2 and Re-Open Re-install the Coffeescript plugin with Package Control. Open a coffe
mind, so I decided to create one. I am not an expert. In fact, I'm the exact opposite. I write http://someguyonrails.tumblr.com/post/29591173576/fix-sublime-text-2-syntax-highlighting-error from a beginner's perspective because I am one. Please don't be afraid to ask me stupid questions. But be prepared to receive some stupid answers. Email me at someguyonrails@gmail.com or follow https://vinta.ws/code/must-have-sublime-text-packages.html me on Twitter: @SomeGuyOnRails Ask me anything Search Blog Tools Archive RSS 1 note August 16, 2012 Fixed Sublime Text 2 Syntax Highlighting Error A few days ago, I posted that error loading I had lost all Ruby on Rails Syntax Highlighting in Sublime 2 and that I had the following error pop up when launching the program: Error loading syntax file “Packages/User/RSpec.tmLanguage”: Error parsing plist xml: Failed to open file In file “Packages/User/RSpec.tmLanguage” While therespondenton Stackoverflow did not post a solution that worked for me, his response ultimately did lead me in the right error loading syntax direction. In checking my Packages/User folder, I realized that I did not have the “RSpec.tmLanguage” file in there to begin with. I did however, find that file in my Packages/rails_tutorial_sublime_text folder. Moving it (along with the RSpec.tmLanguage.cache file) into my Packages/User folder eliminated the above error. (By the way, if you’re having trouble locating these packages folders, open Sublime Text 2, click on ‘Preferences’, then 'Browse Packages’, and the main folders should pop open.) But, I still had no syntax highlighting! I was totally stumped at this point. It wasn’t until I had a mentor/friend of mine take a look at my development environment, that I was able to fix the problem. Sometimes those problems that seem the most difficult can be the simplest to solve. It turns out that the error above caused my Sublime Text 2 color schemes to reset. All that was left to be done was turn them back on, and that was that. Problem solved. A few things that I learned from all of this: Google your error messages. Most likely someone else before you has had the same prob
Sublime autocompletion to find matches in all open files of the current window Anaconda (X) link: https://github.com/DamnWidget/anaconda Turning your Sublime Text 3 into a full featured Python IDE Control + Option + G (or CONTROL + 左鍵) Go to definition 建議改成 Control + G Control + Option + F (or OPTION + 左鍵) Find usages 建議改成 Control + F Preferences > Key Bindings - User [ {"command": "anaconda_doc", "keys": ["ctrl+h"]}, {"command": "anaconda_goto", "keys": ["ctrl+g"]}, {"command": "anaconda_find_usages", "keys": ["ctrl+f"]}, ... ] [ {"modifiers": ["ctrl"], "button": "button1", "command": "anaconda_goto", "press_command": "drag_select"}, {"modifiers": ["alt"], "button": "button1", "command": "anaconda_find_usages", "press_command": "drag_select"} ] in YOUR_PROJECT.sublime-project { "folders": [ { "follow_symlinks": true, "path": "/Users/vinta/Projects/streetvoice" } ], "settings": { "extra_paths": [ "/Users/vinta/Dropbox/Developments/virtualenv_streetvoice" ] } } AngularJS link: https://github.com/angular-ui/AngularJS-sublime-package AngularJS code completion, snippets, go to definition, quick panel search Preferences > Package Settings > SublimeLinter > Settings - User { "auto_complete_triggers": [ { "characters": "<", "selector": "text.html" }, { "characters": "ng-controller=\"*", "selector": "punctuation.definition.string" } ] } Ansible link: https://github.com/clifford-github/sublime-ansible Syntax highlighting for Ansible ApplySyntax link: https://github.com/facelessuser/ApplySyntax Applying syntax by custom rules Preferences > Package Settings > ApplySyntax > Settings - User { "reraise_exceptions": false, "new_file_syntax": false, "syntaxes": [ { "name": "Djaneiro/Syntaxes/HTML (Django)", "match": "all", "rules": [ {"file_name": ".*\\.(html|htm)$"}, {"first_line": "{%"} ] }, { "name": "Djaneiro/Syntaxes/Python Django", "match": "all", "rules": [ {"file_name": ".*\\.py$"}, {"contains": "from django"} ] }, { "name": "Djaneiro/Syntaxes/Python Django", "rules": [ {"file_name": ".*(\\\\|/)local_settings.py$"}, {"file_name": ".*(\\\\|/)settings.py$"} ] }, { "name": "Python/Python", "rules": [ {"file_name": ".*\\.py$"} ] } ] } AutoFileName (X) link: https://github.com/BoundInCode/AutoFileName 改用 FuzzyFilePath AutoPEP8 link: https://github.com/wistful/SublimeAutoPEP8 Automatically formats Pyth