Duplicate entries in workspace file raw content

General questions regarding the usage of CodeLite
ssawgift
CodeLite Enthusiast
Posts: 17
Joined: Mon Apr 11, 2016 5:33 pm
Genuine User: Yes
IDE Question: C++
Contact:

Duplicate entries in workspace file raw content

Post 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.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Duplicate entries in workspace file raw content

Post by eranif »

Did you happen to edit the workspace manually *before* you saw this duplicate entries?

Eran
Make sure you have read the HOW TO POST thread
ssawgift
CodeLite Enthusiast
Posts: 17
Joined: Mon Apr 11, 2016 5:33 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Duplicate entries in workspace file raw content

Post 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.
Post Reply