Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [recommenders-dev] Snipmatch

Hi Andreas,

We contacted you regarding snipmatch. We are considering your idea of not re-writing the code and are just going ahead with making the changes as enlisted in the project proposal. We have been trying to build the code recommenders project. We were able to compile the code through terminal and import it on eclipse.

But while importing snipmatch we encountered the following error :

Description    Resource    Path    Location    Type
Plugin execution not covered by lifecycle configuration: org.fornax.toolsupport:fornax-oaw-m2-plugin:3.4.0:run-workflow (execution: default, phase: generate-sources)    pom.xml    /org.eclipse.recommenders.templates    line 20    Maven Project Build Lifecycle Mapping Problem

Also on one of the comps while compiling the code recommenders code the tests are failing. The exact error that we are getting is the following :

WARNING] The following locally built units have been used to resolve project dependencies:
[WARNING]   org.eclipse.recommenders.models.rcp/2.1.0.v20140313-1655
[WARNING]   org.eclipse.recommenders.apidocs.rcp/2.1.0.v20140310-1543
[WARNING]   org.eclipse.recommenders.jayes/2.1.0.v20140310-1543
[WARNING]   org.eclipse.recommenders.jayes.io/2.1.0.v20140310-1543
[WARNING]   org.eclipse.recommenders.apidocs/2.1.0.v20140310-1543
[WARNING]   org.eclipse.recommenders.rcp/2.1.0.v20140317-0932
[WARNING]   org.eclipse.recommenders.utils/2.1.0.v20140310-1543
[WARNING]   org.eclipse.recommenders.calls/2.1.0.v20140310-1543
[WARNING]   org.eclipse.recommenders.models/2.1.0.v20140310-1543
[WARNING]   org.eclipse.recommenders.injection/2.1.0.v20140310-1543
[INFO] Expected eclipse log file: /home/hp/Documents/POSE Lab/GitRepo/org.eclipse.recommenders/tests/org.eclipse.recommenders.apidocs.rcp.tests/target/work/data/.metadata/.log
[INFO] Command line:
[/usr/lib/jvm/java-8-oracle/jre/bin/java, -Dosgi.noShutdown=false, -Dosgi.os=linux, -Dosgi.ws=gtk, -Dosgi.arch=x86_64, -javaagent:/home/hp/.m2/repository/org/jacoco/org.jacoco.agent/0.6.5.201403032054/org.jacoco.agent-0.6.5.201403032054-runtime.jar=destfile=/home/hp/Documents/POSE Lab/GitRepo/org.eclipse.recommenders/target/jacoco.exec,append=true,includes=org.eclipse.recommenders.*, -Dosgi.clean=true, -jar, /home/hp/.m2/repository/p2/osgi/bundle/org.eclipse.equinox.launcher/1.3.0.v20130327-1440/org.eclipse.equinox.launcher-1.3.0.v20130327-1440.jar, -data, /home/hp/Documents/POSE Lab/GitRepo/org.eclipse.recommenders/tests/org.eclipse.recommenders.apidocs.rcp.tests/target/work/data, -install, /home/hp/Documents/POSE Lab/GitRepo/org.eclipse.recommenders/tests/org.eclipse.recommenders.apidocs.rcp.tests/target/work, -configuration, /home/hp/Documents/POSE Lab/GitRepo/org.eclipse.recommenders/tests/org.eclipse.recommenders.apidocs.rcp.tests/target/work/configuration, -application, org.eclipse.tycho.surefire.osgibooter.uitest, -testproperties, /home/hp/Documents/POSE Lab/GitRepo/org.eclipse.recommenders/tests/org.eclipse.recommenders.apidocs.rcp.tests/target/surefire.properties, -nouithread]
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:474)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:382)
at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:397)
Caused by: java.lang.RuntimeException: Class java/util/UUID could not be instrumented.
at org.jacoco.agent.rt.internal_6474ae9.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:139)
at org.jacoco.agent.rt.internal_6474ae9.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:100)
at org.jacoco.agent.rt.internal_6474ae9.PreMain.createRuntime(PreMain.java:55)
at org.jacoco.agent.rt.internal_6474ae9.PreMain.premain(PreMain.java:47)
... 6 more
Caused by: java.lang.NoSuchFieldException: $jacocoAccess
at java.lang.Class.getField(Class.java:1536)
at org.jacoco.agent.rt.internal_6474ae9.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:137)
... 9 more
FATAL ERROR in native method: processing of -javaagent failed
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] org.eclipse.recommenders .......................... SUCCESS [0.554s]
[INFO] Release Engineering ............................... SUCCESS [0.021s]
[INFO] coding-conventions ................................ SUCCESS [0.770s]
[INFO] licenses .......................................... SUCCESS [0.104s]
[INFO] repository-resources .............................. SUCCESS [0.191s]
[INFO] Targets Definitions ............................... SUCCESS [0.015s]
[INFO] Target Definition for Eclipse Kepler .............. SUCCESS [0.138s]
[INFO] Target Definition for Eclipse Luna ................ SUCCESS [0.016s]
[INFO] Plugins ........................................... SUCCESS [2.727s]
[INFO] org.eclipse.recommenders.utils .................... SUCCESS [6.869s]
[INFO] org.eclipse.recommenders.models ................... SUCCESS [6.287s]
[INFO] org.eclipse.recommenders.apidocs .................. SUCCESS [3.102s]
[INFO] org.eclipse.recommenders.injection ................ SUCCESS [1.469s]
[INFO] org.eclipse.recommenders.rcp ...................... SUCCESS [10.140s]
[INFO] org.eclipse.recommenders.jayes .................... SUCCESS [1.637s]
[INFO] org.eclipse.recommenders.jayes.io ................. SUCCESS [1.797s]
[INFO] org.eclipse.recommenders.calls .................... SUCCESS [2.147s]
[INFO] org.eclipse.recommenders.models.rcp ............... SUCCESS [7.194s]
[INFO] org.eclipse.recommenders.apidocs.rcp .............. SUCCESS [7.278s]
[INFO] org.eclipse.recommenders.completion.rcp ........... SUCCESS [9.941s]
[INFO] org.eclipse.recommenders.calls.rcp ................ SUCCESS [9.584s]
[INFO] org.eclipse.recommenders.chain.rcp ................ SUCCESS [8.306s]
[INFO] org.eclipse.recommenders.jayes.transformation ..... SUCCESS [1.746s]
[INFO] org.eclipse.recommenders.mylyn.rcp ................ SUCCESS [6.877s]
[INFO] org.eclipse.recommenders.overrides ................ SUCCESS [2.247s]
[INFO] org.eclipse.recommenders.overrides.rcp ............ SUCCESS [7.701s]
[INFO] org.eclipse.recommenders.subwords.rcp ............. SUCCESS [7.336s]
[INFO] Tests ............................................. SUCCESS [0.913s]
[INFO] org.eclipse.recommenders.apidocs.rcp.tests ........ FAILURE [6.068s]
[INFO] org.eclipse.recommenders.calls.tests .............. SKIPPED
[INFO] org.eclipse.recommenders.tests .................... SKIPPED
[INFO] org.eclipse.recommenders.completion.rcp.tests ..... SKIPPED
[INFO] org.eclipse.recommenders.calls.rcp.tests .......... SKIPPED
[INFO] org.eclipse.recommenders.jayes.tests .............. SKIPPED
[INFO] org.eclipse.recommenders.jayes.io.tests ........... SKIPPED
[INFO] org.eclipse.recommenders.jayes.transformation.tests  SKIPPED
[INFO] org.eclipse.recommenders.models.tests ............. SKIPPED
[INFO] org.eclipse.recommenders.models.rcp.tests ......... SKIPPED
[INFO] org.eclipse.recommenders.overrides.tests .......... SKIPPED
[INFO] org.eclipse.recommenders.rcp.tests ................ SKIPPED
[INFO] org.eclipse.recommenders.utils.tests .............. SKIPPED
[INFO] Features .......................................... SKIPPED
[INFO] org.eclipse.recommenders.jayes.feature ............ SKIPPED
[INFO] org.eclipse.recommenders.rcp.feature .............. SKIPPED
[INFO] org.eclipse.recommenders.mylyn.rcp.feature ........ SKIPPED
[INFO] org.eclipse.recommenders.rcp.tests.feature ........ SKIPPED
[INFO] org.eclipse.recommenders.simrel.feature ........... SKIPPED
[INFO] org.eclipse.recommenders.feature.rcp .............. SKIPPED
[INFO] Update Sites ...................................... SKIPPED
[INFO] Code Recommenders Head Update Site ................ SKIPPED
[INFO] Code Recommenders Milestones Update Site .......... SKIPPED
[INFO] Code Recommenders Stable Update Site .............. SKIPPED
[INFO] Code Recommenders Simultaneous-Release Update Site  SKIPPED
[INFO] Code Recommenders Incubators Update Site .......... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5:15.342s
[INFO] Finished at: Thu Mar 27 00:22:22 IST 2014
[INFO] Final Memory: 200M/965M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:0.20.0:test (default-test) on project org.eclipse.recommenders.apidocs.rcp.tests: An unexpected error occured (return code 134). See log for details. -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :org.eclipse.recommenders.apidocs.rcp.tests

Can you please help us with these errors?

Thanks,
Kartik


On Mon, Mar 17, 2014 at 7:47 PM, Andreas Sewe <andreas.sewe@xxxxxxxxxxxxxx> wrote:
Hi Kartik,

> Thanks for your reply. We actually do not wish to participate in GSoC
> and we do not need an evaluation letter either. But we would certainly
> be glad to have a mentor to work under.

we committers can certainly provide you with feedback on your work. Olav
Lenz, Johannes Dorn, and myself would probably be the ones who are most
involved in Snipmatch and who can help you further.

> What we are planning to do is re-design the tool (Snipmatch) so as to
> make it more extensible. We were looking into the code a few days back
> and realized that the code is not easily extensible and lack of
> documentation is going to make it more difficult to add features to it.
> So we thought instead of making changes to the current code we would
> like to come up with a new design that is easily extensible and provides
> many more features. As the existing code base is not so huge we think
> re-implementing the tool is going to be as time consuming as
> understanding the code and extending it.

Honestly, re-implementing something is a huge amount of work, not only
in terms of lines of code, but also in terms of secondary things like
tests, documentation, and changes to third-party plugins (we at
Codetrails have one, for example). Also, any single, large change is
less likely to be merged in a timely fashion and requires lots of legal
paperwork with the Eclipse Foundation.

So I would rather work within the current framework, identify the points
where an extension mechanism is needed, and then contribute small,
well-tested changes.

The two main areas where an extension mechanism is needed is 1) the
support for diverse implementations of ISnippetRepisitory and 2) the
ability to use different text editors for the snippets (which are
written in JFace Template language). A student is working on a
Xtext-based editor, but until that is feature-complete it would be nice
to have a simple plain-text editor as fallback.

> We will be doing this as a part of our Software Engineering Lab. But we
> would like to contribute the outcome to the Code Recommender's
> Community. We have already proposed the project (I am attaching the
> project proposal with the mail) and got it approved. What we wanted to
> know is if this is going to be helpful to the Code Recommender's Community.

Yes, certainly. But as I said, working with the existing process is much
more likely to get your code merged into the master branch.

> We are aware of the fact that this has been put up as a GSoC project and
> hence you may be concerned about the fact that if we and some other
> student (through GSoC) takes it up simultaneously then we may end up
> doing the same thing twice. But as we would be done with our work by the
> end of April and GSoC starts only at the start of May the other student
> can continue with the code that we would have written by then.

Well, that risk exists. At least Olav is already working on Snipmatch
right now, to get himself acquainted with the codebase. He's currently
re-thinking the way queries are handled by the ISnippetRepository, as
not every ISnippetRepository implementation may use a Lucene-based
index, so passing Lucence-syntax query strings around is a bit more
coupling than necessary.

Maybe you can discuss things with Olav.

> This is
> our first experience in a professional environment but we are very
> enthusiastic about the project and will definitely try our best.

I certainly encourage you to do your contributions through Gerrit; that
way, you will get code reviews from us.

Hope that helps.

Andreas

--
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