Closed jonahgraham closed 3 years ago
I reproduced the error using Eclipse Platform to make sure that there was the minimum number of other things that could be interfering. The same (or at least very similar?) thing happens if Embedded C/C++ EPP package is used and check for updates is run.
If I install only the Embedded C/C++ Core feature then the Check for Updates says there is nothing to install. But if I go to Install new software I can selected Embedded C/C++ Core feature and it is converted to an upgrade.
@ilg-ul I found the problem. The issue is a bug in the p2.inf to handle the name change
The org.eclipse.embedcdt feature when it was created I assume was copied from the codered feature in #426 . That meant the p2.inf instruction in it is incorrect as it says it can update codered:
Since this feature didn't exist before 6.0.0, the p2.inf's update line quoted above can just be removed.
I fixed this in 7ff8bf1260b0bdcbbf7c3e535ee64779fd07d27c - with this patch the updates work as expected. However if you also have the published 6.1.0 update site available it will initially update fine, but then you get this error on check for updates:
Now we have to decide how to resolve the problem going forward for users. I recommend doing a 6.1.1 or 6.2.0 release and remove the 6.1 from the composite site.
Thank you Jonah, I'll make a new 6.1.1 and remove 6.1.0 from the composite site.
Fixed on 2021-01-20.
Try installing Embed CDT 6.0.0 from SimRel into Eclipse Platform and then after restart do a check for updates and instead of a clean update to 6.1.0 (whose p2 site is automatically added by installing 6.0.0)
This is what user is presented with
This is the underlying error that leads to the above bad p2 solution