Unexpected change of active project

CodeLite installation/troubleshooting forum
marfi
CodeLite Expert
Posts: 159
Joined: Mon Nov 03, 2008 9:17 pm
Contact:

Unexpected change of active project

Post by marfi »

Hi Eran, I've noticed that the CL behaves strange during importing of source code to an existing project. The problem is as follows:
1) I have 2 projects in a workspace - the first one is an active one.
2) I remove all files and virtual folders from the active project and invoke "Import Files From Directory" operation from the project's context menu
3) After this, files from selected directory are imported to the project (they are located in new virtual folder) - it is OK - but the first project loses its active state and the second one project in the workspace becomes active one, so I must manually re-set the first project as the active to build it.

I think, that the first project should stay active all the time...

Regards
Michal
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Unexpected change of active project

Post by eranif »

Indeed, this is a bug which is caused due to the fact that the in order to load the new virtual folders that were just imported into codelite,
I am removing the project and then reloading it from the disk.

When removing an active project, codelite selects the next available project to be the active - and this is why you see that codelite sets another project as an active one.

I will fix this
Eran
Make sure you have read the HOW TO POST thread
Post Reply