sublimator / EditPreferences

Helper commands for working with sublime package assets/preferences. ST3 only.
MIT License
32 stars 4 forks source link

Unable to open commands from files in packed packages #8

Open FichteFoll opened 10 years ago

FichteFoll commented 10 years ago

For example trying to open Window/Default/Default.exec/exec:

ListCommands error <class 'sublime_plugin.WindowCommand'> need more than 1 value to unpack
ListCommands error <class 'sublime_plugin.TextCommand'> need more than 1 value to unpack
Traceback (most recent call last):
  File "list_commands in C:\Program Files\Sublime Text 3 Portable Beta\Data\Installed Packages\Edit Preferences.sublime-package", line 71, in on_select
  File "./inspect.py", line 715, in getsourcelines
    whose entry immediately precedes the list.  Each entry is a 2-tuple
  File "./inspect.py", line 563, in findsource
    object = object.__func__
OSError: could not get source code
sublimator commented 10 years ago

lol, that's gonna be tricky

sublimator commented 10 years ago

Sorry, can't help much beyond saying "pull request welcome"

FichteFoll commented 10 years ago

Well, that was quick. I didn't even have time to scan the source to determine if fixing would be easy or hard.

I'll add it to my todo, but it's pretty lengthy so don't get your hopes high.

sublimator commented 10 years ago

You could probably monkey patch the inspect lib ...