I’ve run across a bug in Servoy Eclipse v4.1.0 RC2 (the issue may exist in previous versions as well – I haven’t checked) where I’m unable to activate a Solution. I’m using the Subversive plugin for Team Sharing using Subversion (not sure if this really matters but it might).
Steps to reproduce:
Start from an empty workspace (use File|Switch Workspace to create a new workspace).
Switch to the SVN perspective, choose an existing solution and check it out along with its associated resource dependency.
Switch back to the normal Servoy Form Design perspective. At this point the new Solution is checked out but not activated.
Attempt to activate the new Solution. Although the Solution shows up under All Solutions when I right-click on it there is no option to Activate solution.
Workaround:
Create a temporary solution and then right-click on the original solution under the All Solutions list and magically the “Activate solution” menu option now appears.
Hopefully this can be resolved before the final v4.1.0 release.
Thanks for responding but how would creating another solution in the workspace resolve an issues with my original solution? Maybe my post wasn’t clear: As soon as I create another (empty) solution in the workspace I’m able to activate my original solution – it’s just that the “Activate solution” menu item doesn’t appear until I create another solution.
Also, shouldn’t any problems with the solution show up in the Eclipse Problems view?
but how would creating another solution in the workspace resolve an issues with my original solution?
This makes me wonder if there was an issue connecting to the resources project.
When you created the new solution, did you specify a NEW resources project or use the EXISTING one?..or was there not an option?
Perhaps once a resources project was recognized, the original solution was able to be activated.
Perhaps you could check the project natures in the resources perspective (or in the resources’ .project file)
I’ve seen something like this before and I fixed it by adding a ‘servoy resources project’ nature (by right clicking in the resource persp.)
Looks like you’re onto something. If I check out the associated resource project prior to checking out the main solution (I was doing it in the reverse order) then it activates automatically.
When I was attempting to activate the solution before, I had already checked out the resource project so there is still a bug lurking in Servoy where it’s not detecting the fact that the resource project has been checked out (Servoy is only happy if the resource project is checked out first – ideally this shouldn’t matter). Also, it should provide feedback as to what (it thinks) the issue is that is preventing it from activating the solution rather than just removing the “Activate solution” menu item and leaving it at that – probably by putting an error in the Problems view or by popping up an explanatory dialog when attempting to activate the solution manually.
You are right. That is a bug. It is corrected in 4.1
Now after you check-out the solution project it will automatically be activated and an error marker complaining about the resources project will appear. After the resources project is checked out, the missing resources project marker will disappear.