colinta / SublimeStringEncode

Converts characters from one "encoding" to another using a transformation (think HTML entities, not character encodings)
Other
150 stars 22 forks source link

Traceback on update on ST2 #8

Closed jpcirrus closed 11 years ago

jpcirrus commented 11 years ago

On OS X with ST2 and updating with Package Control 1.6.5 (not using 2.0 yet because of all the issues with disabled packages) commit 36d201f is causing a traceback on attempted load on startup:

Traceback (most recent call last):
  File "./sublime_plugin.py", line 62, in reload_plugin
  File "./string_encode.py", line 6, in <module>
    from functools import cmp_to_key
ImportError: cannot import name cmp_to_key

I see in the code that re is also being imported twice.

colinta commented 11 years ago

Ah, easy fix - fetch the st2 branch.

git fetch origin st2:st2
git checkout st2

And you should be all good! Alternatively, you could git checkout v1.5.2 if you have the tags downloaded.

colinta commented 11 years ago

And I fixed the double import re, but that was only on the master branch (ST3)