Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [recommenders-dev] [GSOC 2013] SnipEditor weekly report

Hi Andreas,
 
Thanks for the tip 😊
 
>I don't exactly get what the problem is, i.e., what you mean by "solving
>3rd party dependencies from o.e.r.utils.gson".
I needed to add o.e.r.utils.gson as an imported package (I used it to serialize and deserialize the snippets). When running the build, I got errors because it could not resolve the dependencies from the o.e.r.utils project. I googled it and one of the solutions was to add the project repository in the *.target file. The errors looked like this:
[ERROR] Cannot resolve project dependencies:
[ERROR]   Software being installed: org.eclipse.recommenders.snipeditor.ui 1.100.0.qualifier
[ERROR]   Missing requirement: org.eclipse.recommenders.utils 1.100.0.v20130822-2103 requires 'package com.google.common.annotations [14.0.0,15.0.0)' but it could not be found
[ERROR]   Missing requirement: org.eclipse.recommenders.utils.tests 1.100.0.v20130822-2103 requires 'bundle org.mockito 0.0.0' but it could not be found
[ERROR]   Cannot satisfy dependency: org.eclipse.recommenders.snipeditor.ui 1.100.0.qualifier depends on: package org.eclipse.recommenders.utils.gson 0.0.0
[ERROR]
[ERROR] Internal error: java.lang.RuntimeException: "No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from org.eclipse.recommenders.tests 1.100.0.v20130822-2103 to bundle org.objenesis 0.0.0.", "Unable to satisfy dependency from org.eclipse.recommenders.tests 1.100.0.v20130822-2103 to bundle org.apache.commons.lang3 0.0.0.", "Unable to satisfy dependency from org.eclipse.recommenders.tests 1.100.0.v20130822-2103 to bundle org.apache.commons.io 0.0.0.", ...
 
Marcel, I installed the project from the update site on eclipse luna 4.4 M1 as well. I did the following things:
I downloaded the IDE from here [1] and downloaded the update site as .zip file [2]. I unzipped both, created a fresh workspace, installed the SnipEditor from the repository and everything worked. I’ve tried this on two different computers, both running windows (maybe it’s because of the os?) and both worked just fine. The editor opened and there were no exceptions. I don’t know what the cause for your problem might be, but I will try to set up target definitions for both the kepler and luna releases as Andreas said, maybe this will fix it.  
 
 
Best Regards,
Stefan.
 
 
 
From: Andreas Sewe
Sent: â€ŽMonday‎, ‎August‎ ‎26‎, ‎2013 ‎12‎:‎24‎ ‎AM
To: recommenders-dev@xxxxxxxxxxx
 
Hi Stefan,

> I will try and replace the hard-coded versions in the target platform.
> Also, I’d like to ask something regarding this. I had some troubles
> solving 3rd party dependencies from o.e.r.utils.gson, so I added the
> head build from o.e.r [1] to the snipeditor.target. Should this
> dependencies be solved in a different manner(except changing the version)?

I don't exactly get what the problem is, i.e., what you mean by "solving
3rd party dependencies from o.e.r.utils.gson". Anyways, your build
should work against the org.eclipse.recommenders:kepler:1.100.0-SNAPSHOT
and org.eclipse.recommenders:luna:1.100.0-SNAPSHOT target definitions +
whatever extra dependencies you need.

Unfortunately, this requires some copy-and-pasting; although Tycho can
handle more than one target definition active during the build (you
could thus merge your snipeditor.target [1] with our
kepler/luna.target), the Eclipse IDE doesn't support setting more than
one target definition at the same time.

Have a look at how we switch profiles depending on the active profile
(-Pkepler or -Pluna) [2].

Hope this helps.

Andreas

[1]
<https://github.com/stefanprisca/SnipEditor/blob/master/snipeditor/snipeditor.target>
[2]
<https://git.eclipse.org/c/recommenders/org.eclipse.recommenders.git/tree/pom.xml#n408>

--
Codetrails UG (haftungsbeschränkt)
The knowledge transfer company

Robert-Bosch-Str. 7, 64293 Darmstadt
Mobile: +49-170-811-3791
http://www.codetrails.com/

Managing Director: Dr. Marcel Bruch
Handelsregister: Darmstadt HRB 91940
_______________________________________________
recommenders-dev mailing list
recommenders-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/recommenders-dev

Back to the top