Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [egit-dev] Code mining annotations for Git

On Wed, May 23, 2018 at 6:36 PM, Matthias Sohn <matthias.sohn@xxxxxxxxx> wrote:
On Wed, May 23, 2018 at 11:09 AM, Lars Vogel <lars.vogel@xxxxxxxxxxx> wrote:
Friends of the Git Eclipse tooling,

Angelo Zerr implemented code mining for Git. See here for the project
side: https://github.com/angelozerr/jdt-codemining

You can install it via the following update side into a recent Eclipse
Photon build: http://oss.opensagres.fr/jdt-codemining/snapshot/


I tried to install this but enabling code mining features in preferences failed with

java.lang.NoSuchMethodError: org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.installCodeMiningProviders()V
at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.affectsJavaCodeMining(JavaEditor.java:4333)
at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.handlePreferenceStoreChanged(JavaEditor.java:2947)
at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.handlePreferenceStoreChanged(CompilationUnitEditor.java:1645)
at org.eclipse.ui.texteditor.AbstractTextEditor$PropertyChangeListener.propertyChange(AbstractTextEditor.java:711)
at org.eclipse.ui.texteditor.ChainedPreferenceStore.firePropertyChangeEvent(ChainedPreferenceStore.java:153)
at org.eclipse.ui.texteditor.ChainedPreferenceStore.handlePropertyChangeEvent(ChainedPreferenceStore.java:365)
at org.eclipse.ui.texteditor.ChainedPreferenceStore.access$0(ChainedPreferenceStore.java:342)
at org.eclipse.ui.texteditor.ChainedPreferenceStore$PropertyChangeListener.propertyChange(ChainedPreferenceStore.java:67)
at org.eclipse.ui.preferences.ScopedPreferenceStore$2.run(ScopedPreferenceStore.java:345)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.preferences.ScopedPreferenceStore.firePropertyChangeEvent(ScopedPreferenceStore.java:342)
at org.eclipse.ui.preferences.ScopedPreferenceStore.lambda$0(ScopedPreferenceStore.java:179)
at org.eclipse.core.internal.preferences.EclipsePreferences$2.run(EclipsePreferences.java:848)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.preferences.EclipsePreferences.firePreferenceEvent(EclipsePreferences.java:851)
at org.eclipse.core.internal.preferences.EclipsePreferences.put(EclipsePreferences.java:863)
...
 

after restarting Eclipse I also hit

org.eclipse.e4.core.di.InjectionException: java.lang.NoSuchMethodError: org.eclipse.jface.text.source.ISourceViewerExtension5.hasCodeMiningProviders()Z
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:422)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:330)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:190)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:105)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:74)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:56)
...

looks like I need to update platform ?
 
I currently have installed
  Eclipse Java Development Tools 3.14.0.v20180516-2000 org.eclipse.jdt.feature.group Eclipse.org
and
  Git integration for Eclipse 5.0.0.201805222130 org.eclipse.egit.feature.group Eclipse EGit
  Java implementation of Git 5.0.0.201805221745-rc1 org.eclipse.jgit.feature.group Eclipse JGit
  Egit CodeMining                   1.0.0.201805231602
  JDT CodeMining                   1.0.0.201805231602


After installation you have to enable it, see screenshot.

Please have a look at report issues you see in the Github issue tracker.

For example, I suggest showing the latest change for a method mining info.

https://github.com/angelozerr/jdt-codemining/issues/33

Best regards, Lars

--
Eclipse Platform project co-lead
CEO vogella GmbH

Haindaalwisch 17a, 22395 Hamburg
Amtsgericht Hamburg: HRB 127058
Geschäftsführer: Lars Vogel, Jennifer Nerlich de Vogel
USt-IdNr.: DE284122352
Fax (040) 5247 6322, Email: lars.vogel@xxxxxxxxxxx, Web: http://www.vogella.com

_______________________________________________
egit-dev mailing list
egit-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/egit-dev



Back to the top