I have found that path.encode('utf-8') causes this problem in the file D:...\Sublime Text\Data\Packages\SublimeGtags\gtags.py, it will convert the "F:/project" to b"F:/project":
class TagFile(object):
def _expand_path(self, path):
path = os.path.expandvars(os.path.expanduser(path))
if IS_WINDOWS:
path = path.encode('utf-8')
return path
So, I added this If statement if int(sublime.version()) < 3000::
class TagFile(object):
def _expand_path(self, path):
path = os.path.expandvars(os.path.expanduser(path))
if IS_WINDOWS:
if int(sublime.version()) < 3000:
path = path.encode('utf-8')
return path
The ERROR information is:
I have found that
path.encode('utf-8')
causes this problem in the file D:...\Sublime Text\Data\Packages\SublimeGtags\gtags.py, it will convert the "F:/project" to b"F:/project":So, I added this If statement
if int(sublime.version()) < 3000:
:NOW, it works fine~!