Skip to content

GitLab

    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    • Menu
    Projects Groups Snippets
  • Sign up now
  • Login
  • Sign in / Register
  • Lazarus Lazarus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 2,081
    • Issues 2,081
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 10
    • Merge requests 10
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

GitLab 15.0 is launching on May 22! This version brings many exciting improvements, but also removes deprecated features and introduces breaking changes that may impact your workflow. To see what is being deprecated and removed, please visit Breaking changes in 15.0 and Deprecations.

  • FPC
  • Lazarus
  • LazarusLazarus
  • Issues
  • #39489
Closed
Open
Created Nov 26, 2021 by Martin@martin_frbOwner

EditorOptions fails to load some older versions of color settings

  • Lazarus/FPC Version: 2.2RC2 / maybe others

See https://forum.lazarus.freepascal.org/index.php/topic,57021.msg426047

Gutter background color is not applied, when the IDE is restarted / not loaded from XML


From the forum:

If I use the old xml file the error reappears, so I looked at the Color section.

There are a number of differences, Working

    <Color Version="13">
      <LangObjectPascal Version="13">
        <ColorScheme Value="Twilight"/>
        <SchemeTwilight>
          <ahaGutter Background="clGray"/>
        </SchemeTwilight>
      </LangObjectPascal>
      <Globals Version="13">
        <SchemeTwilight>
          <ahaGutter Background="clGray"/>
        </SchemeTwilight>
      </Globals>
    </Color>

Non-working

    <Color Version="13">
      <LangObjectPascal>
        <ColorScheme Value="Twilight"/>
      </LangObjectPascal>
      <Globals Version="13">
        <SchemeTwilight>
          <ahaGutter Background="clGray"/>
        </SchemeTwilight>
      </Globals>
    </Color>

so I manually edited the file to see if any were significant. In short, if i delete the [quote]Version="13"[/quote] from the "LangObjectPascal" section then the fault shows ( i.e. the gutter is black ); put it back in and it works correctly.

Deleting the "Globals" section in the working xml also puts the gutter to black, even though clGrey is also specified in the "ColorScheme" section.

editoroptions.xml

Assignee
Assign to
Time tracking