redView + p2 + helios == sleepless nights

lets start with the good news:

this weekend redView 0.7.4 will be available together with detailed instructions how to install :) please wait for another blog entry this weekend before installing from updatesite or cloning the source repository. btw: our sources (Mercurial) will be available from Sourceforge, bitbucket and also EclipseLabs !

if you follow my blogs then you know about the pain from last weeks to make redView run under Helios. it starts friday before EclipseCon and was a blocker to have a successfull redView workshop at EclipseCon. Three weeks ago I thought the story ends as I reported “P2 is my friend again“.

Remember the movie “Groundhog Day” ? (“und täglich grüßt das Murmeltier” in Germany) – that’s how I’m feeling: after each Helios Milestone +3 it happens again: P2 installs unwanted optional dependencies into the IDE (Bugzilla 312547): in this case RAP plug-ins causing trouble to IDE and Target Platform Definitions where the active Eclipse is used as starting point.

BTW: P2 still is my friend ;-) there’s no one to blame about the problems, they happen only if you’re using some projects / tools / update sites together and thanks to Eclipse release plan and thanks to the Eclipse release train (around 40 projects this year) there’s a chance to find it before Helios (Ecipse 3.6) will be released.

Thanks to Pascal, Christian and uncount others spending so much time to find solutions. As a result of their hard work it becomes better from Milestone to Milestone: in M6 it happens each time that RAP was installed into the IDE, now using M7 / RC1 it happens only randomly: I did many time-consuming tests always installing some plug-ins into fresh Helios SDK under OSX, Windows 7 and Ubuntu and 4 of 10 installations failed.

At the moment it isn’t clear why it fails randomly (see Bugzilla 312547) – all needed informations for P2 are provided by Riena (… greedy=false in p2.inf …) so there should be no reason to fetch and install optional RAP bundles too.

The current solution, that all plug-ins with optional dependencies to RAP tell p2 not to be so greedy, seems not to work in all cases and there’s a small back door where RAP bundles come in again.

There’s also some work on bugzilla 306709 to go the opposite way: let RAP and SWT define P2 metadata that they conflict with each other. Then it should be easy for P2 to do the right work while installing Plug-ins into IDE: SWT is always there, so no RWT etc will be installed.

Hopefully this could be done for Helios, because more and more projects will support RAP (and perhaps more runtime technologies in the future).

If you run into those scenarios where your IDE doesn’t work anymore (Views couldn’t be opened etc) then perhaps you got RAP bundles in.

My workarounds at the moment:

  • after installing new software, don’t restart
  • at first look into “Plug-ins” View if there are org.eclipse.rap.* plug-ins.
  • If you found some: quit Eclipse and remove them from /eclipse/plugins folder.
  • then restart Eclipse.

If you define or use a Target Platform definition based on active running Eclipse, then you’ll get some errors:

simply ignore them – the Target Platform will still work.

As already mentioned above: redView 0.7.4 will be available this weekend and you can try it out if you’re not afraid to deal with such problems.

2 responses

  1. I’m sorry to hear that these issues still exist. Unfortunately, the RAP team cannot do so much about it. After all, it’s the very nature of RAP to replace parts of the Eclipse platform and therefore to conflict with the platform. Thus I think that declaring those conflicts is the right approach.

    I will apply the workaround from bug 306709 to our RC1 build tomorrow and hope that you can test it!

    • ralf,
      I’m really wondering why P2 still (sometimes !) grabs such unwanted dependencies and installs them into the IDE.
      thanks for applying the workaround – of course I’ll test this as soon as possible.
      I’m watching the bugzillas, so its best to le me know there when its available.
      thx again to you and all others, because
      * its not RAP
      * its not Riena
      * its not P2
      but all together mystic behaviour happens ;-)
      over all: if we get it run for Helios I’ll be more then happy
      ekke

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 1,067 other followers

%d bloggers like this: