Skip to content

Startup Issue #98

Description

@ihdavids

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

Activity

  1. ihdavids commented on Mar 14, 2021

    @ihdavids
    Author

    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

  2. ihdavids commented on Mar 14, 2021

    @ihdavids
    Author

    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"
    
  3. ihdavids commented on Mar 14, 2021

    @ihdavids
    Author

    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.

  4. ihdavids commented on Mar 14, 2021

    @ihdavids
    Author

    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
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions