JetBrains / colorSchemeTool

Apache License 2.0
469 stars 82 forks source link

TypeError: list indices must be integers, not str #24

Open blai30 opened 5 years ago

blai30 commented 5 years ago
$ python colorSchemeTool.py tmThemes/vscode-darkplus.tmTheme vscThemes/
Traceback (most recent call last):
  File "colorSchemeTool.py", line 873, in <module>
    all_settings, used_scopes = load_textmate_scheme(sys.argv[1])
  File "colorSchemeTool.py", line 750, in load_textmate_scheme
    themeDict = plistlib.readPlist(tmtheme)
  File "C:\Python27\lib\plistlib.py", line 78, in readPlist
    rootObject = p.parse(pathOrFile)
  File "C:\Python27\lib\plistlib.py", line 406, in parse
    parser.ParseFile(fileobj)
  File "C:\Python27\lib\plistlib.py", line 413, in handleBeginElement
    handler(attrs)
  File "C:\Python27\lib\plistlib.py", line 446, in begin_dict
    self.addObject(d)
  File "C:\Python27\lib\plistlib.py", line 425, in addObject
    self.stack[-1][self.currentKey] = value
TypeError: list indices must be integers, not str

Getting this error when running ./convert,sh in bash, Linux terminal, and Mac terminal with the respective python path for each