sligodave / sublime_remote_edit

Open a file from a remote server locally, edit and save back remotely again.
MIT License
16 stars 10 forks source link

It fails when the 'current project' has not the appropriate settings #4

Open juanfal opened 9 years ago

juanfal commented 9 years ago

The menú lasts longer than the rest of ST3 to load (you must wait near a minute before trying to call "Open Remote File prompt" as it doesn't appear in the ⌘+⇧+P list of commands) but then, it seems that it fails (again) because the front most 'project', I usually do not have projects.

The traceback:

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 526, in run_
    return self.run()
  File "/Users/juanfc/Library/Application Support/Sublime Text 3/Packages/RemoteEdit/remote_edit.py", line 136, in run
    self.settings = get_settings(self.window)
  File "/Users/juanfc/Library/Application Support/Sublime Text 3/Packages/RemoteEdit/remote_edit.py", line 34, in get_settings
    all_settings.append(window.project_data().get('remote_edit'))
AttributeError: 'NoneType' object has no attribute 'get'