Closed evandrocoan closed 7 years ago
Interesting. In theory, this exception shouldn't be possible because self.known_settings
is only set in the class's __init__
:
And if view.file_name()
is None
there, self.known_settings
is also None, in which case the conditional in line 171 should exit before reaching self.view.file_name()
:
To my knowledge, it's not possible to have a view that previously had a file name return None
later.
It would be nice if you could reproduce this with a debug log.
I just enabled debug mode, when I notice it again I will post it here.
I got these when I open/close a settings file:
reloading /D/User/Dropbox/Applications/SoftwareVersioning/SublimeText/Data/Packages/SyntaxManager/Main.sublime-menu
[PackageDev.plugins_.settings] DEBUG: initializing SettingsListener for 'D:\\SublimeText\\Data\\Packages\\AlignTab\\AlignTab.sublime-settings'
DEBUG:PackageDev.plugins_.settings:initializing SettingsListener for 'D:\\SublimeText\\Data\\Packages\\AlignTab\\AlignTab.sublime-settings'
[PackageDev.plugins_.settings] DEBUG: initializing SettingsListener for 'D:\\SublimeText\\Data\\Packages\\User\\AlignTab.sublime-settings'
DEBUG:PackageDev.plugins_.settings:initializing SettingsListener for 'D:\\SublimeText\\Data\\Packages\\User\\AlignTab.sublime-settings'
[PackageDev.plugins_.settings.known_settings] DEBUG: cache hit 'AlignTab.sublime-settings'
DEBUG:PackageDev.plugins_.settings.known_settings:cache hit 'AlignTab.sublime-settings'
Unable to open /D/User/Dropbox/Applications/SoftwareVersioning/SublimeText/Data/Packages/User/AlignTab.sublime-settings
[PackageDev.plugins_.settings.known_settings] DEBUG: loading defaults and comments for 'AlignTab.sublime-settings'
DEBUG:PackageDev.plugins_.settings.known_settings:loading defaults and comments for 'AlignTab.sublime-settings'
[PackageDev.plugins_.settings.known_settings] DEBUG: found 1 'AlignTab.sublime-settings' files
DEBUG:PackageDev.plugins_.settings.known_settings:found 1 'AlignTab.sublime-settings' files
[PackageDev.plugins_.settings.known_settings] DEBUG: parsing 'Packages/AlignTab/AlignTab.sublime-settings'
DEBUG:PackageDev.plugins_.settings.known_settings:parsing 'Packages/AlignTab/AlignTab.sublime-settings'
[PackageDev.plugins_.settings.known_settings] DEBUG: loading took 0.166s
DEBUG:PackageDev.plugins_.settings.known_settings:loading took 0.166s
[PackageDev.plugins_.settings] DEBUG: deleting SettingsListener instance for 'D:\\SublimeText\\Data\\Packages\\AlignTab\\AlignTab.sublime-settings'
DEBUG:PackageDev.plugins_.settings:deleting SettingsListener instance for 'D:\\SublimeText\\Data\\Packages\\AlignTab\\AlignTab.sublime-settings'
[PackageDev.plugins_.settings] DEBUG: initializing SettingsListener for 'D:\\SublimeText\\Data\\Packages\\AlignTab\\AlignTab.sublime-settings'
DEBUG:PackageDev.plugins_.settings:initializing SettingsListener for 'D:\\SublimeText\\Data\\Packages\\AlignTab\\AlignTab.sublime-settings'
[PackageDev.plugins_.settings.known_settings] DEBUG: cache hit 'AlignTab.sublime-settings'
DEBUG:PackageDev.plugins_.settings.known_settings:cache hit 'AlignTab.sublime-settings'
[PackageDev.plugins_.settings] DEBUG: deleting SettingsListener instance for 'D:\\SublimeText\\Data\\Packages\\User\\AlignTab.sublime-settings'
DEBUG:PackageDev.plugins_.settings:deleting SettingsListener instance for 'D:\\SublimeText\\Data\\Packages\\User\\AlignTab.sublime-settings'
[PackageDev.plugins_.settings] DEBUG: initializing SettingsListener for 'D:\\SublimeText\\Data\\Packages\\User\\AlignTab.sublime-settings'
DEBUG:PackageDev.plugins_.settings:initializing SettingsListener for 'D:\\SublimeText\\Data\\Packages\\User\\AlignTab.sublime-settings'
[PackageDev.plugins_.settings.known_settings] DEBUG: cache hit 'AlignTab.sublime-settings'
DEBUG:PackageDev.plugins_.settings.known_settings:cache hit 'AlignTab.sublime-settings'
Traceback (most recent call last):
File "D:\SublimeText\Data\Packages\PackageDev\plugins_\settings\__init__.py", line 174, in do_linting
command, argument = href.split(":")
TypeError: argument of type 'NoneType' is not iterable
Traceback (most recent call last):
File "D:\SublimeText\Data\Packages\PackageDev\plugins_\settings\__init__.py", line 174, in do_linting
command, argument = href.split(":")
TypeError: argument of type 'NoneType' is not iterable
This seems to be fixed with the latest updates on the master branch. https://github.com/evandrocoan/PackageDev/pull/3
This showed up when I opened a project:
Environment
dpi_scale
used in ST 1.0