Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] How to use the isCdtProjectCreating

Hi folks,

Does anyone have any further details on this that can help Jantje? I know that others have run across timing issues of creating projects and indexer kicking in too early in the past. What solutions have you come up with?


Jonah Graham
Kichwa Coders

On Wed, 27 May 2020 at 20:16, Jan Baeyens <jan@xxxxxxxxxx> wrote:

I'm trying to rewrite my CDT project creation code without using
restricted code.
However I hit CDT indexer kicking in before the code finished the
configuration resulting in errors in the log.
Looking for a way out I found isCdtProjectCreating which seems to be
created for this problem, but I fail to use it correctly.

I would assume I could do

         ICProjectDescription prjCDesc =
cCorePlugin.createProjectDescription(newProjectHandle, true,true);
         cCorePlugin.setProjectDescription(newProjectHandle, prjCDesc,

         cCorePlugin.createCProject(description, newProjectHandle, new

But whatever I tried the cCorePlugin.createCProject mothod always fails.
Basically mapCProjectOwner fails ending in
CConfigBasedDescriptorManager.configure which does findDescriptor
without create and if that fails with create.
However the findDescriptor using the create option also returns null.

Any help is appreciated.


cdt-dev mailing list
To unsubscribe from this list, visit

Back to the top