SublimePythonIDE icon indicating copy to clipboard operation
SublimePythonIDE copied to clipboard

Startup Issue

Open ihdavids opened this issue 4 years ago • 4 comments

I get the following when I start using the plugin:

Traceback (most recent call last): File "C:\Users\ihdav\AppData\Roaming\Sublime Text\Packages\SublimePythonIDE\sublime_python_colors.py", line 82, in generate_color_scheme_async plist = ElementTree.XML(scheme_text) File "./python3.3/xml/etree/ElementTree.py", line 1356, in XML xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 1, column 0

ihdavids avatar Mar 14 '21 16:03 ihdavids

It looks like you are expecting the color scheme to be one of the older textmate schemes?

The scheme I am loading is: Packages/Guna/themes/Guna.sublime-color-scheme

ihdavids avatar Mar 14 '21 16:03 ihdavids

Looks like you are trying to auto-revamp the users color scheme with the following items:

"sublimepythonide.gutter-mark": "gutter",
"sublimepythonide.mark.warning": "warning",
"sublimepythonide.mark.error": "error"

ihdavids avatar Mar 14 '21 16:03 ihdavids

My silly little OrgExtended plugin has some code in the orginternalhelpers.py file that can handle parsing a sublime-color-scheme and might help with this.

I have a menu option to generate a custom scheme from your current scheme, much like you are doing.

ihdavids avatar Mar 14 '21 16:03 ihdavids

For now I would suggest:

def generate_color_scheme_async():
    # find and parse current theme
    prefs = sublime.load_settings("Preferences.sublime-settings")
    scheme = prefs.get('color_scheme')

    if scheme is None:
        return

    if(".sublime-color-scheme" in scheme):
        return

ihdavids avatar Mar 14 '21 16:03 ihdavids