anjlab / eclipse-tapestry5-plugin

Eclipse Plugin for Tapestry5
Apache License 2.0
21 stars 9 forks source link

Completion does not work #16

Closed charlouze closed 10 years ago

charlouze commented 10 years ago

Component completion only offers me to choose between included libraries components. It does not display my components nor core components.

I use an up to date eclipse kepler.

dmitrygusev commented 10 years ago

It's hard to tell what could go wrong. Do you have any errors in Error Log? Window -> Show View -> Error Log

charlouze commented 10 years ago

there is nothing ... maybe there is something i can do to refresh those index ?

charlouze commented 10 years ago

I close and re-open my project and i had some old errors :D

!ENTRY org.eclipse.e4.ui.workbench 4 0 2014-05-23 02:58:46.469 !MESSAGE !STACK 0 java.lang.NullPointerException at com.anjlab.eclipse.tapestry5.AssetReference.(AssetReference.java:13) at com.anjlab.eclipse.tapestry5.TapestryContext.processImportedFile(TapestryContext.java:226) at com.anjlab.eclipse.tapestry5.TapestryContext.processImport(TapestryContext.java:187) at com.anjlab.eclipse.tapestry5.TapestryContext.addImports(TapestryContext.java:154) at com.anjlab.eclipse.tapestry5.TapestryContext.initFromJavaOrTemplateFile(TapestryContext.java:347) at com.anjlab.eclipse.tapestry5.TapestryContext.initFromFile(TapestryContext.java:100) at com.anjlab.eclipse.tapestry5.LocalTapestryContext.(LocalTapestryContext.java:30) at com.anjlab.eclipse.tapestry5.TapestryUtils.createTapestryContext(TapestryUtils.java:222) at com.anjlab.eclipse.tapestry5.TapestryUtils.getTapestryFileFromPage(TapestryUtils.java:384) at com.anjlab.eclipse.tapestry5.watchdog.TapestryContextWatchdog$3.selectionChanged(TapestryContextWatchdog.java:139) at org.eclipse.ui.internal.e4.compatibility.SelectionService.notifyListeners(SelectionService.java:154) at org.eclipse.ui.internal.e4.compatibility.SelectionService.access$3(SelectionService.java:151) at org.eclipse.ui.internal.e4.compatibility.SelectionService$1.selectionChanged(SelectionService.java:74) at org.eclipse.e4.ui.internal.workbench.SelectionAggregator$2.run(SelectionAggregator.java:119) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.e4.ui.internal.workbench.SelectionAggregator.notifyListeners(SelectionAggregator.java:117) at org.eclipse.e4.ui.internal.workbench.SelectionAggregator.access$5(SelectionAggregator.java:114) at org.eclipse.e4.ui.internal.workbench.SelectionAggregator$7$1.run(SelectionAggregator.java:216) at org.eclipse.e4.core.contexts.RunAndTrack.runExternalCode(RunAndTrack.java:56) at org.eclipse.e4.ui.internal.workbench.SelectionAggregator$7.changed(SelectionAggregator.java:214) at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.update(TrackableComputationExt.java:110) at org.eclipse.e4.core.internal.contexts.EclipseContext.processScheduled(EclipseContext.java:334) at org.eclipse.e4.core.internal.contexts.EclipseContext.set(EclipseContext.java:348) at org.eclipse.e4.ui.internal.workbench.SelectionServiceImpl.setSelection(SelectionServiceImpl.java:30) at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.selectionChanged(CompatibilityPart.java:437) at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:164) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:162) at org.eclipse.jface.text.TextViewer.fireSelectionChanged(TextViewer.java:2738) at org.eclipse.jface.text.TextViewer.selectionChanged(TextViewer.java:2717) at org.eclipse.jface.text.TextViewer$4.widgetSelected(TextViewer.java:1836) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1392) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1416) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1401) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1187) at org.eclipse.swt.custom.StyledText.sendSelectionEvent(StyledText.java:8071) at org.eclipse.swt.custom.StyledText.clearSelection(StyledText.java:1702) at org.eclipse.swt.custom.StyledText.setSelection(StyledText.java:9534) at org.eclipse.swt.custom.StyledText.updateSelection(StyledText.java:10242) at org.eclipse.swt.custom.StyledText.handleTextChanged(StyledText.java:6226) at org.eclipse.swt.custom.StyledText$6.textChanged(StyledText.java:5616) at org.eclipse.jface.text.DefaultDocumentAdapter.fireTextChanged(DefaultDocumentAdapter.java:347) at org.eclipse.jface.text.DefaultDocumentAdapter.documentChanged(DefaultDocumentAdapter.java:291) at org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged2(AbstractDocument.java:760) at org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged(AbstractDocument.java:736) at org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged(AbstractDocument.java:721) at org.eclipse.jface.text.AbstractDocument.fireDocumentChanged(AbstractDocument.java:796) at org.eclipse.jface.text.projection.ProjectionDocument.fireDocumentChanged(ProjectionDocument.java:777) at org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1191) at org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1210) at org.eclipse.jface.text.projection.ProjectionDocument.replace(ProjectionDocument.java:629) at org.eclipse.jface.text.DefaultDocumentAdapter.replaceTextRange(DefaultDocumentAdapter.java:248) at org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:7198) at org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:8030) at org.eclipse.swt.custom.StyledText.doBackspace(StyledText.java:2254) at org.eclipse.swt.custom.StyledText.invokeAction(StyledText.java:7008) at org.eclipse.swt.custom.StyledText.handleKey(StyledText.java:5932) at org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText.java:5959) at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:5636) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1392) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1416) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1401) at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1428) at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.java:829) at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:3236) at org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:758) at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:2096) at org.eclipse.swt.widgets.Control.windowProc(Control.java:5467) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4569) at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method) at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:8756) at org.eclipse.swt.widgets.Display.eventProc(Display.java:1243) at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method) at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2302) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3361) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:140) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:611) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181) 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:606) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591) at org.eclipse.equinox.launcher.Main.run(Main.java:1450) at org.eclipse.equinox.launcher.Main.main(Main.java:1426)

dmitrygusev commented 10 years ago

maybe there is something i can do to refresh those index ?

Project "Clean" should refresh the plugin's state.

But you can try to debug plugin's code to see what's wrong in there -- completion proposals are all in one java class, so should be easy to find the cause in your case.

Just load the plugin source code to your workspace and "Run as..." Eclipse application. You can find me on #tapestry IRC channel (irc.freenode.net) if you need help on this.

Meanwhile completion proposals are still work in progress, so hopefully they'll be fixed for you in next builds.

charlouze commented 10 years ago

The problem was that TapestryModule class has been moved in 5.4. Commit d0c77630bf838e4914f9b4fe56d65f6cd188e272 fixes the problem. It's working in v2.4.5