Sublime Forum

ST3 Overriding Files From a Zipped Package issue

#1

Hello,
In documentation for ST3 it says that you can override file from zipped package. I tried to override ‘HTML.tmLanguage’ from HTML package by placing modified version in c:\Users[USERNAME]\AppData\Roaming\Sublime Text 3\Packages\HTML\HTML.tmLanguage with no luck. Can you help with that please? My modified file contains definitions for tag class and href attributes which I highlight with different colors with the help of my theme.

0 Likes

#2

Hmm, have you tried overriding the sublime-completions file, just to make sure it’s the override that’s failing and not some problem with the tmLanguage file specifically?

0 Likes

#3

I’m pretty positive that tmLanguage file is fine, I used it with ST2 (well actually by overwriting HTML.tmLanguage in built in package, but now it says in ST3 I can overwrite any file from package, so I want to clarify if it is possible). HTML.zip (2.92 KB)

0 Likes

#4

Have you checked the console output? If I place the file in HTML/HTML.tmLanguage i get:

reloading plugin HTML.encode_html_entities Traceback (most recent call last): File "C:\Users\schlaich\Sublime Text 3\sublime_plugin.py", line 70, in reload_plugin m = importlib.import_module(modulename) File "X/importlib/__init__.py", line 88, in import_module File "<frozen importlib._bootstrap>", line 1577, in _gcd_import File "<frozen importlib._bootstrap>", line 1558, in _find_and_load File "<frozen importlib._bootstrap>", line 1522, in _find_and_load_unlocked ImportError: No module named 'HTML.encode_html_entities' reloading plugin HTML.html_completions Traceback (most recent call last): File "C:\Users\schlaich\Sublime Text 3\sublime_plugin.py", line 70, in reload_plugin m = importlib.import_module(modulename) File "X/importlib/__init__.py", line 88, in import_module File "<frozen importlib._bootstrap>", line 1577, in _gcd_import File "<frozen importlib._bootstrap>", line 1558, in _find_and_load File "<frozen importlib._bootstrap>", line 1522, in _find_and_load_unlocked ImportError: No module named 'HTML.html_completions'

If I extract the complete HTML.sublime_package and override this file I don’t get an error.

0 Likes