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?

Thanks
Jonah


~~~
Jonah Graham
Kichwa Coders
www.kichwacoders.com


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

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,
true,null);

         cCorePlugin.createCProject(description, newProjectHandle, new
NullProgressMonitor(),
                 ManagedBuilderCorePlugin.MANAGED_MAKE_PROJECT_ID);

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.

Jatje


_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/cdt-dev

Back to the top