alek-sys / sublimetext_indentxml

Plugin for Sublime Text editor for reindenting XML and JSON files
MIT License
534 stars 135 forks source link

Port to Sublime Text 3 #21

Closed ronjouch closed 11 years ago

ronjouch commented 11 years ago

Currently, under Windows 7 x64 / Sublime Text 3 build 3008, IndentXML returns the following error:

Traceback (most recent call last):
  File "C:\sublimetext3\sublime_plugin.py", line 382, in run_
    return self.run(edit)
  File "C:\sublimetext3\Data\Packages\Indent XML\indentxml.py", line 37, in run
    s = self.indentxml(s)
  File "C:\sublimetext3\Data\Packages\Indent XML\indentxml.py", line 43, in indentxml
    xmlheader = re.compile("<\?.*\?>").match(s)
TypeError: can't use a string pattern on a bytes-like object

Also, it looks like Will Bond's PackageControl will require a new package.json to support the 2 vs. 3 difference

alek-sys commented 11 years ago

It seems it's more question about porting to python 3.3 which is default in ST3. Anyway, that is one of priorities for me, will try to resolve asap

ronjouch commented 11 years ago

Yup, Python3 is the main thing indeed, plus preparing for the updated PackageControl would be nice :) . Thanks for the fast answer!