Community
Participate
Working Groups
Build Identifier: Plugin1 depends on Plugin2. A prebind action is defined in the cspex of Plugin1. This Action has a Prerequisite to the bundle.jar Action of Plugin2. When i resolve my Query using an empty Workspace (only Plugin1 resides in the Workspace) all plugins are correctly resolved and my prebind action is called. When the same query is resolved again, the following error occurs: ERROR [0001] : CSpec org.eclipse.datatools.connectivity.db.generic:osgi.bundle$1.0.1.v200908130547 has no action, group, or local artifact named bundle.jar the attached zip-file contains plugin1 and it's artifacts. Reproducible: Always Steps to Reproduce: 1. import plugin1 into an empty workspace 2. resolve the query My.query -> prebind action is called as expected 3. resolve the query My.query again -> ERROR
Created attachment 191678 [details] Example Plugin
changed to major because restarting eclipse after running a query is very annoying
A prebind action is called just prior to when a project is bound to the workspace. That's not the case the second time the query runs. If you don't want to restart your IDE, you can simply remove the project for which the prebind should execute. You don't need to remove the actual files, just the project. As a result, the project will be re-bound to the workspace the next time you run a cquery and that will trigger the prebind action.
(In reply to comment #3) > A prebind action is called just prior to when a project is bound to the > workspace. That's not the case the second time the query runs. If you don't > want to restart your IDE, you can simply remove the project for which the > prebind should execute. You don't need to remove the actual files, just the > project. As a result, the project will be re-bound to the workspace the next > time you run a cquery and that will trigger the prebind action. This sounds reasonable. But i do not understand why it works after a restart of the IDE. The project is already in the workspace and the action works as expected.
as thomas said, i removed the project with the prebind action and rexecuted the query and the error popped up again. the only thing i can do in this case is restart the workspace. buckminster does not complain about the project with the prebind action itself, the problem comes from a prerequisite that seems to loose it's bundle.jar action when running the query again.