ehuss / Sublime-Wrap-Plus

Enhanced "wrap lines" command for Sublime Text 2 or 3.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Loading of the plugin crashes in Sublime Text 3

madis opened this issue · comments

I installed it through package control. When sublime loads it (I'm assuming that's what it does) there's error shown in console:

reloading plugin Wrap Plus.wrap_plus
Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 72, 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 "/Users/madis/Library/Application Support/Sublime Text 3/Installed Packages/Wrap Plus.sublime-package/wrap_plus.py", line 4, in <module>
ImportError: No module named 'comment'
found 5 files for base name Default.sublime-keymap

I've found this plugin really useful. Would be great if someone fixed it. I'm not familiar with sublime text plugin development. If someone would point me to a direction of where to find the 'comment' package it's looking for, maybe I could fix it myself.

The fixed version is available on the s3 branch. Because Package Control does not yet support distinguishing the different versions, you will need to manually check it out from github. Clone this repository and do "git checkout s3" to switch the branch.

It actually might be compatible with sublime 2. I will check things out, and if it looks OK, I will merge to master so that it works with Package Control.

I just pushed the changes to master so that master should work with both sublime 2 and 3.