drewda / cucumber-sublime-bundle

Sublime bundle for Cucumber
65 stars 26 forks source link

Errors on startup #11

Closed erbridge closed 9 years ago

erbridge commented 10 years ago

ST3 on Linux.

reloading plugin Cucumber.table_cleaner
Traceback (most recent call last):
  File "/opt/sublime_text/sublime_plugin.py", line 73, in reload_plugin
    m = importlib.import_module(modulename)
  File "X/importlib/__init__.py", line 88, in import_module
  File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1525, in _find_and_load_unlocked
  File "/opt/sublime_text/sublime_plugin.py", line 671, in load_module
    exec(compile(source, source_path, 'exec'), mod.__dict__)
  File "table_cleaner in /home/felix/.config/sublime-text-3/Installed Packages/Cucumber.sublime-package", line 3, in <module>
ImportError: No module named 'table_commons'
reloading plugin Cucumber.table_commons
reloading plugin Cucumber.table_import
Traceback (most recent call last):
  File "/opt/sublime_text/sublime_plugin.py", line 73, in reload_plugin
    m = importlib.import_module(modulename)
  File "X/importlib/__init__.py", line 88, in import_module
  File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1525, in _find_and_load_unlocked
  File "/opt/sublime_text/sublime_plugin.py", line 671, in load_module
    exec(compile(source, source_path, 'exec'), mod.__dict__)
  File "table_import in /home/felix/.config/sublime-text-3/Installed Packages/Cucumber.sublime-package", line 3, in <module>
ImportError: No module named 'table_commons'
drewda commented 10 years ago

I don't have that problem with ST3 on Mac.

I haven't yet had a chance to test on Linux. I'll leave this ticket open for now. Perhaps another regular user will be able to make some time to test before I'm free.

On Thu, Dec 5, 2013 at 5:35 PM, Felix Laurie von Massenbach < notifications@github.com> wrote:

ST3 on Linux.

reloading plugin Cucumber.table_cleaner Traceback (most recent call last): File "/opt/sublime_text/sublime_plugin.py", line 73, in reload_plugin m = importlib.import_module(modulename) File "X/importlib/init.py", line 88, in import_module File "", line 1577, in _gcd_import File "", line 1558, in _find_and_load File "", line 1525, in _find_and_load_unlocked File "/opt/sublime_text/sublime_plugin.py", line 671, in load_module exec(compile(source, source_path, 'exec'), mod.dict) File "table_cleaner in /home/felix/.config/sublime-text-3/Installed Packages/Cucumber.sublime-package", line 3, in ImportError: No module named 'table_commons' reloading plugin Cucumber.table_commons reloading plugin Cucumber.table_import Traceback (most recent call last): File "/opt/sublime_text/sublime_plugin.py", line 73, in reload_plugin m = importlib.import_module(modulename) File "X/importlib/init.py", line 88, in import_module File "", line 1577, in _gcd_import File "", line 1558, in _find_and_load File "", line 1525, in _find_and_load_unlocked File "/opt/sublime_text/sublime_plugin.py", line 671, in load_module exec(compile(source, source_path, 'exec'), mod.dict) File "table_import in /home/felix/.config/sublime-text-3/Installed Packages/Cucumber.sublime-package", line 3, in ImportError: No module named 'table_commons'

— Reply to this email directly or view it on GitHubhttps://github.com/drewda/cucumber-sublime2-bundle/issues/11 .

erbridge commented 10 years ago

So it looks like the issue is that the Installed Packages directory isn't in sys.path. I've submitted a pull request which fixes this for me.

erbridge commented 10 years ago

A nicer fix might be to add a .no-sublime-package file to force sublime to unpack the zipped package.