Skip to content
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

Plugin error and settings problem #1

Closed
gecbla opened this issue Nov 16, 2013 · 2 comments
Closed

Plugin error and settings problem #1

gecbla opened this issue Nov 16, 2013 · 2 comments

Comments

@gecbla
Copy link

gecbla commented Nov 16, 2013

On ST2 b2221 portable for Win7 I get these errors

Traceback (most recent call last):
  File ".\sublime_plugin.py", line 205, in on_activated
    callback.__module__, "on_activated", EVENT_TIMEOUT)
  File ".\sublime_plugin.py", line 154, in run_timed_function
    ret = f()
  File ".\sublime_plugin.py", line 204, in <lambda>
    run_timed_function(lambda: callback.on_activated(v),
  File ".\ThemeAutomator.py", line 54, in on_activated
  File ".\ntpath.py", line 190, in splitext
  File ".\genericpath.py", line 91, in _splitext
AttributeError: 'NoneType' object has no attribute 'rfind'

and plugins always (automaticly) adds new schema for every extension even if I set "automate_selection": false

@vitto
Copy link
Owner

vitto commented Nov 16, 2013

Thanks for the issue, i've just fixed NoneType error, now I'll take a look why it still adds the current theme to the file type, I'll let you know when I've fixed it.

@vitto
Copy link
Owner

vitto commented Nov 16, 2013

Ok, I've fixed also the automate_selection logic, I would like to clear how I thought it should work:

With automate_selection set to false no file extension is added to .sublime-settings and ThemeAutomator will use it's default color_scheme.

With automate_selection set to true file extensions will be added to .sublime-settings and ThemeAutomator will use it's default color_scheme for the new file type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants