Page 1 of 1

Duplicate entries in workspace file raw content

Posted: Mon Aug 15, 2016 11:17 am
by ssawgift
After adding/removing several projects to a workspace, I observe duplicate entries when I try to commit changes using git:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<CodeLite_Workspace Name="sqlite" Database="">
  <Project Name="shell" Path="shell/shell.project" Active="Yes"/>
  <Project Name="sqlite_so" Path="sqlite.so/sqlite_so.project" Active="No"/>
  <Project Name="libsqlite" Path="libsqlite/libsqlite.project"/>
  <BuildMatrix>
    <WorkspaceConfiguration Name="Debug" Selected="no">
      <Environment/>
      <Project Name="sqlite" ConfigName="Debug"/>
      <Project Name="shell" ConfigName="Debug"/>
      <Project Name="sqlite_so" ConfigName="Debug"/>
      <Project Name="sqlite_so" ConfigName="Debug"/>
      <Project Name="libsqlite" ConfigName="Debug"/>
    </WorkspaceConfiguration>
    <WorkspaceConfiguration Name="Release" Selected="yes">
      <Environment/>
      <Project Name="sqlite" ConfigName="Release"/>
      <Project Name="shell" ConfigName="Release"/>
      <Project Name="sqlite_so" ConfigName="Release"/>
      <Project Name="sqlite_so" ConfigName="Release"/>
      <Project Name="libsqlite" ConfigName="Release"/>
    </WorkspaceConfiguration>
  </BuildMatrix>
</CodeLite_Workspace>
Among them, sqlite is not a valid project name; sqlite_so and libsqlite are valid project, but sqlite_so have duplicate entries.

EDIT:
After I manually edited the workspace file and removed the duplicate entries, it seems the workspace file load correctly.

Re: Duplicate entries in workspace file raw content

Posted: Wed Aug 17, 2016 10:11 am
by eranif
Did you happen to edit the workspace manually *before* you saw this duplicate entries?

Eran

Re: Duplicate entries in workspace file raw content

Posted: Wed Aug 17, 2016 9:21 pm
by ssawgift
eranif wrote:Did you happen to edit the workspace manually *before* you saw this duplicate entries?

Eran
I'm not sure, most probably I did manual editing before I saw the duplicates.