tonsky / sublime-profiles

Profile Switcher for Sublime Text
MIT License
82 stars 3 forks source link

Failed to create the very first profile #3

Closed pavel-alay closed 3 years ago

pavel-alay commented 3 years ago

The plugin does not respond on creation the very first profile.

From the console:

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/Lib/python33/sublime_plugin.py", line 1201, in preview_
    ret = self.preview(v)
  File "/Users/pavel/Library/Application Support/Sublime Text 3/Installed Packages/Profile Switcher.sublime-package/profiles.py", line 42, in preview
  File "/Users/pavel/Library/Application Support/Sublime Text 3/Installed Packages/Profile Switcher.sublime-package/profiles.py", line 28, in profiles
FileNotFoundError: [Errno 2] No such file or directory: '/Users/pavel/Library/Application Support/Sublime Text 3/Packages/sublime-profiles/Data'

It works as expected after manual creation of the Data directory.

Sublime Text 4, macOS 10.15.7.

tonsky commented 3 years ago

Thank you! Hopefully fixed