randy3k / Terminus

Bring a real terminal to Sublime Text
https://packagecontrol.io/packages/Terminus
MIT License
1.39k stars 81 forks source link

Hidden color scheme not found #276

Open d-faure opened 3 years ago

d-faure commented 3 years ago

Once starting a Terminus tab, I got some error spam in the ST console:


DPI mode: per-monitor
startup, version: 4103 windows x64 channel: dev
executable: /C/Tools/ST4/sublime_text.exe
application: /C/Tools/ST4
working dir: /C/Tools/ST4
packages path: /C/Tools/ST4/Data/Packages
state path: /C/Tools/ST4/Data/Local
zip path: /C/Tools/ST4/Packages
zip path: /C/Tools/ST4/Data/Installed Packages
...
Traceback (most recent call last):
  File "C:\Tools\ST4\Data\Installed Packages\Color Highlight.sublime-package\ColorHighlight.py", line 984, in _update_view
  File "C:\Tools\ST4\Data\Installed Packages\Color Highlight.sublime-package\ColorHighlight.py", line 592, in highlight_colors
  File "C:\Tools\ST4\Data\Installed Packages\Color Highlight.sublime-package\colorizer.py", line 259, in setup_color_scheme
  File "C:\Tools\ST4\Data\Installed Packages\Color Highlight.sublime-package\colorizer.py", line 102, in content
  File "C:\Tools\ST4\Data\Installed Packages\Color Highlight.sublime-package\colorizer.py", line 62, in read_package
  File "C:\Tools\ST4\Lib\python33\sublime.py", line 435, in load_resource
    raise IOError('resource "%s" not found' % name)
OSError: resource "Packages/Color Scheme - Default/Terminus.hidden-color-scheme" not found```

I have to extract the relevant file from the package into the "Data\Packages\Color Scheme - Default" folder to stop the error message.
randy3k commented 3 years ago

It is an error caused by Color Highlight, not our problem indeed. It seems that they are not detecting the color scheme correctly in some cases. Nevertheless, they shouldn't enable the package in a widget (and Terminus tabs are set to be widgets).