question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Restrict version in package_control_channel.

See original GitHub issue

Description

ColorHelper uses TextInputHandler.

Maybe restrict installation via package_control_channel, so it can’t be installed on earlier ST versions, which don’t support it?

Traceback (most recent call last):
  File "C:\Apps\Sublime Text 3143\sublime_plugin.py", line 109, in reload_plugin
    m = importlib.import_module(modulename)
  File "./python3.3/importlib/__init__.py", line 90, in import_module
  File "<frozen importlib._bootstrap>", line 1584, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
  File "C:\Apps\Sublime Text 3143\sublime_plugin.py", line 915, in load_module
    exec(compile(source, source_path, 'exec'), mod.__dict__)
  File "ch_tool_edit in C:\Apps\Sublime Text 3143\Data\Installed Packages\ColorHelper.sublime-package", line 9, in <module>
  File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
  File "C:\Apps\Sublime Text 3143\sublime_plugin.py", line 915, in load_module
    exec(compile(source, source_path, 'exec'), mod.__dict__)
  File "ch_tools in C:\Apps\Sublime Text 3143\Data\Installed Packages\ColorHelper.sublime-package", line 50, in <module>
AttributeError: 'module' object has no attribute 'TextInputHandler'
reloading plugin ColorHelper.ch_tools
Traceback (most recent call last):
  File "C:\Apps\Sublime Text 3143\sublime_plugin.py", line 109, in reload_plugin
    m = importlib.import_module(modulename)
  File "./python3.3/importlib/__init__.py", line 90, in import_module
  File "<frozen importlib._bootstrap>", line 1584, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
  File "C:\Apps\Sublime Text 3143\sublime_plugin.py", line 915, in load_module
    exec(compile(source, source_path, 'exec'), mod.__dict__)
  File "ch_tools in C:\Apps\Sublime Text 3143\Data\Installed Packages\ColorHelper.sublime-package", line 50, in <module>
AttributeError: 'module' object has no attribute 'TextInputHandler'

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
facelessusercommented, Aug 29, 2022

Fix for PC https://github.com/wbond/package_control_channel/pull/8608

Closing this issue as the required changes have been requested. Now we wait for PC to accept them.

0reactions
facelessusercommented, Aug 29, 2022

Okay, it is working on ST3 latest, so I can maybe bump the minimum version to 3170. I thought maybe I had added features completely incompatible with ST3, but it looks like I did test them on ST3 before I added them 😅.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ChannelRepositoryTools - Package Control
A Sublime Text package for working with channels and repositories. Functionality includes: Testing the default channel; Testing a local repository JSON file ...
Read more >
Submitting a Package
Do not use a / or other restricted characters in the package name. Package names are used as part of a file or...
Read more >
Channels and Repositories - Package Control
Channels are JSON files hosted on a URL that contains a list of repository URLs ... osx, linux), compatible versions of Sublime Text,...
Read more >
Troubleshooting - Package Control
Many users run into issues with Package Control because they have an old, broken or pre-release version of Package Control that has become...
Read more >
News - Package Control
At 9:56AM EST February 23nd, 2021, Package Control was notified of a package takeover vulnerability in the default channel package crawler workflow.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found