Headless importAll fails with error#388
Conversation
|
Thanks @umairsair - LGTM. I'll try to remember to come back and merge this once CI completes. (I tried enabling auto-merge but it doesn't seem to have done what I expect) |
|
BTW |
If you have time and energy to fix that case too, please go ahead and I will review/merge it.
+1 |
any suggestions? I can think of ignoring .metadata folder.. to be on a safe side, we can additionally check that its a .metadata folder with version.ini or .log or .plugins folder inside it.. |
|
Turns out I didn't understand the original problem. Can you just ignore |
|
Do you want me to hold off submitting this PR until you look at this more? |
yes please! hold it |
jonahgraham
left a comment
There was a problem hiding this comment.
I am happy with this change, two minor suggestions for you to have a look at.
...dt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/HeadlessBuilder.java
Show resolved
Hide resolved
...dt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/HeadlessBuilder.java
Outdated
Show resolved
Hide resolved
importAll fails with error 'Project: .org.eclipse.egit.core.cmp already exists in the workspace!' and no further projects are imported. The fix is to not go into special directories .metadata and .org.eclipse.egit.core.cmp. Moreover, importAll and removeAll do not fail immediately if operation on a project fails, instead it keeps on performing operation on all projects and at the end, headless builder returns with error code if operation of any project failed
|
Thanks @umairsair - LGTM and I hope this covers all your use cases. I'll try to remember to come back and merge this once CI completes - feel free to ping me once the build completes. |
|
Can you please merge it |
|
Thanks @umairsair! |
importAll fails with error 'Project: .org.eclipse.egit.core.cmp already exists in the workspace!' and no further projects are imported.
The fix is to not go into special directories .metadata and .org.eclipse.egit.core.cmp. Moreover, importAll and removeAll do not fail immediately if operation on a project fails, instead it keeps on performing operation on all projects and at the end, headless builder returns with error code if operation of any project failed