| Summary: | Autocomplete does not work on LDT | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] LDT | Reporter: | Milind Gupta <milind.gupta> | ||||
| Component: | LuaDevelopmentTools | Assignee: | Benjamin Cabé <contact> | ||||
| Status: | RESOLVED WORKSFORME | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | contact, sbernard | ||||
| Version: | unspecified | ||||||
| Target Milestone: | 0.8 M1 | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Hi Milind, and thanks for the detailed report. According to the log file you have attached, it seems that you have installed LuaEclipse together with LDT, and I don't think that is a good idea! It is very likely that autocomplete is not working because you are opening Lua files using the editor of LuaEclipse instead of the one from LDT. Can you confirm that you are indeed running both the tools at the same time? If so, what happens if you de-install LuaEclipse and/or install LDT in a clean Eclipse? Hi Benjamin,
Thanks for looking into this. I had actually removed the Lua Eclipse plugins from Eclipse before I installed LDT. So they were not running simultaneously at all. I tried again by downloading Eclipse into another directory and then installing LDT on that. It showed the same problem but it seems eclipse puts some configuration files somewhere which are shared among different eclipse installations on the same system. So I am not sure if installation of lua eclipse left some traces somewhere even after uninstallation that is causing this issue.
Let me know if I can do something to refresh all eclipse files somehow.
Thanks,
Milind
Hi Milind, It is not clear to me where the error could come from. Maybe you could try the standalone distribution just to be sure there's nothing cluttering your Eclipse environment. See http://eclipse.org/koneki/ldt/#installation Anyway, since the autocomplete engine is currently being heavily reworked, I'll invite you to test the same use case again, when this work will have been integrated. Thanks! Hi Benjamin,
I downloaded the standalone Eclipse LDT from the LDT home page on windows (64-bit) and tried it out. I typed 'for' to see if I can get the options like it shows in the video. It did not work. This is a different system that my other linux system and this one doesn't have any eclipse installation.
Is there any special package that needs to be added to eclipse for any autocomplete to work?
Thanks.
I tried it on linux 32 bit but the executable does not launch it says it cannot find its associated launcher jar file. Milind (In reply to comment #5) > I tried it on linux 32 bit but the executable does not launch it says it cannot > find its associated launcher jar file. It looks like I messed up the Linux packaging :( I've uploaded the fixed packages to the Eclipse servers, but you can quickly fix the problem without having to redownload everything: simply remove the leading slash on the second line of LuaDevelopmentTools.ini . It should read: --------------- -startup plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar [........] --------------- That fixed the linux download but autocomplete still did not work :( Milind Hi, For your autocompletion problem, you talk about a "for" completion. I suppose you want to use template. Currently we have a little problem on this. If you ask for autocompletion before typing the begin of a word. Templates will not be proposed. Try to type "f", then call the autocompletion : you should see it. Futhermore like benjamin says, we are not really satisfy by the current autocompletion, so we work on it. (see Bug 370583) Stay tuned we will soon deliver a new beta version. Hi Simon,
Thank you for the response. I didn't understand how did you want me to try it? I type f and then how do I call the auto completion?
(In reply to comment #9) > Hi Simon, > Thank you for the response. I didn't understand how did you want me to > try it? I type f and then how do I call the auto completion? Just hit CTRL+SPACE! This is the Eclipse way to trigger autocompletion, it's not automatic, contrarily to some other IDEs (In reply to comment #10) > (In reply to comment #9) > > Hi Simon, > > Thank you for the response. I didn't understand how did you want me to > > try it? I type f and then how do I call the auto completion? > > Just hit CTRL+SPACE! This is the Eclipse way to trigger autocompletion, it's > not automatic, contrarily to some other IDEs Hi Milind, did you get any luck calling the autocompletion? Hi Benjamin,
Yes I was able to get it to work with Ctrl-Space.
Thanks.
Cool! I am going to mark this bug as RESOLVED then. I am unsure about what caused the errors in your log though, but they are certainly not related to autocompletion. |
Created attachment 209297 [details] 1st log file containing many past entries Hi, I installed LDT. After some help in the forums I was able to get it running and debug a program but the autocomplete feature doesn't work for me. As suggested in the forum I exported the error log. The 1st one is a big log file containing many past log entries so it might be confusing, the latest one is for 1/10/2012. To make it more simple I cleared the log and then tried the autocomplete again did a debug session and tried an autocomplete again. I don't think any log entry comes up as a result of the autocomplete trying. I have pasted that log file here: !SESSION 2012-01-10 22:13:11.800 ----------------------------------------------- eclipse.buildId=I20110613-1736 java.version=1.6.0_23 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US Command-line arguments: -os linux -ws gtk -arch x86 !ENTRY org.eclipse.ui 4 4 2012-01-10 22:18:31.961 !MESSAGE The proxied handler for 'org.eclipse.core.commands.IHandler2' could not be loaded !ENTRY org.eclipse.ui 4 0 2012-01-10 22:18:31.975 !MESSAGE The proxied handler for 'org.eclipse.core.commands.IHandler2' could not be loaded !STACK 1 org.eclipse.core.runtime.CoreException: Plug-in "org.eclipse.koneki.ldt.debug.ui" was unable to instantiate class "org.eclipse.core.commands.IHandler2". at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194) at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:186) at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905) at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243) at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55) at org.eclipse.ui.internal.handlers.HandlerProxy.loadHandler(HandlerProxy.java:350) at org.eclipse.ui.internal.handlers.HandlerProxy.setEnabled(HandlerProxy.java:230) at org.eclipse.core.commands.Command.setEnabled(Command.java:857) at org.eclipse.ui.menus.CommandContributionItem.isEnabled(CommandContributionItem.java:977) at org.eclipse.ui.menus.CommandContributionItem.updateMenuItem(CommandContributionItem.java:628) at org.eclipse.ui.menus.CommandContributionItem.update(CommandContributionItem.java:580) at org.eclipse.ui.menus.CommandContributionItem.fill(CommandContributionItem.java:490) at org.eclipse.jface.action.MenuManager.doItemFill(MenuManager.java:741) at org.eclipse.jface.action.MenuManager.update(MenuManager.java:822) at org.eclipse.jface.action.MenuManager.update(MenuManager.java:682) at org.eclipse.ui.internal.menus.WorkbenchMenuService.updateManagers(WorkbenchMenuService.java:330) at org.eclipse.ui.internal.menus.WorkbenchMenuService$4.propertyChange(WorkbenchMenuService.java:316) at org.eclipse.ui.internal.services.EvaluationAuthority$1.run(EvaluationAuthority.java:252) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.ui.internal.services.EvaluationAuthority.fireServiceChange(EvaluationAuthority.java:246) at org.eclipse.ui.internal.services.EvaluationAuthority.endSourceChange(EvaluationAuthority.java:197) at org.eclipse.ui.internal.services.EvaluationAuthority.sourceChanged(EvaluationAuthority.java:135) at org.eclipse.ui.internal.services.ExpressionAuthority.sourceChanged(ExpressionAuthority.java:311) at org.eclipse.ui.internal.services.ExpressionAuthority.sourceChanged(ExpressionAuthority.java:302) at org.eclipse.ui.AbstractSourceProvider.fireSourceChanged(AbstractSourceProvider.java:80) at org.eclipse.ui.internal.services.WorkbenchSourceProvider.selectionChanged(WorkbenchSourceProvider.java:177) at org.eclipse.ui.internal.AbstractSelectionService.fireSelection(AbstractSelectionService.java:156) at org.eclipse.ui.internal.AbstractSelectionService$1.selectionChanged(AbstractSelectionService.java:62) at org.eclipse.debug.internal.ui.views.variables.VariablesView$SelectionProviderWrapper.fireSelectionChanged(VariablesView.java:187) at org.eclipse.debug.internal.ui.views.variables.VariablesView$SelectionProviderWrapper.access$0(VariablesView.java:183) at org.eclipse.debug.internal.ui.views.variables.VariablesView$3.selectionChanged(VariablesView.java:155) 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.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2188) at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1211) at org.eclipse.debug.internal.ui.viewers.model.InternalTreeModelViewer.handleSelect(InternalTreeModelViewer.java:2465) at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1241) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:239) at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:233) at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:403) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123) 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:344) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) 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:616) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.java:1410) Caused by: java.lang.InstantiationException: org.eclipse.core.commands.IHandler2 at java.lang.Class.newInstance0(Class.java:357) at java.lang.Class.newInstance(Class.java:325) at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:184) ... 65 more !SUBENTRY 1 org.eclipse.equinox.registry 4 1 2012-01-10 22:18:31.976 !MESSAGE Plug-in "org.eclipse.koneki.ldt.debug.ui" was unable to instantiate class "org.eclipse.core.commands.IHandler2". !STACK 0 java.lang.InstantiationException: org.eclipse.core.commands.IHandler2 at java.lang.Class.newInstance0(Class.java:357) at java.lang.Class.newInstance(Class.java:325) at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:184) at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905) at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243) at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55) at org.eclipse.ui.internal.handlers.HandlerProxy.loadHandler(HandlerProxy.java:350) at org.eclipse.ui.internal.handlers.HandlerProxy.setEnabled(HandlerProxy.java:230) at org.eclipse.core.commands.Command.setEnabled(Command.java:857) at org.eclipse.ui.menus.CommandContributionItem.isEnabled(CommandContributionItem.java:977) at org.eclipse.ui.menus.CommandContributionItem.updateMenuItem(CommandContributionItem.java:628) at org.eclipse.ui.menus.CommandContributionItem.update(CommandContributionItem.java:580) at org.eclipse.ui.menus.CommandContributionItem.fill(CommandContributionItem.java:490) at org.eclipse.jface.action.MenuManager.doItemFill(MenuManager.java:741) at org.eclipse.jface.action.MenuManager.update(MenuManager.java:822) at org.eclipse.jface.action.MenuManager.update(MenuManager.java:682) at org.eclipse.ui.internal.menus.WorkbenchMenuService.updateManagers(WorkbenchMenuService.java:330) at org.eclipse.ui.internal.menus.WorkbenchMenuService$4.propertyChange(WorkbenchMenuService.java:316) at org.eclipse.ui.internal.services.EvaluationAuthority$1.run(EvaluationAuthority.java:252) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.ui.internal.services.EvaluationAuthority.fireServiceChange(EvaluationAuthority.java:246) at org.eclipse.ui.internal.services.EvaluationAuthority.endSourceChange(EvaluationAuthority.java:197) at org.eclipse.ui.internal.services.EvaluationAuthority.sourceChanged(EvaluationAuthority.java:135) at org.eclipse.ui.internal.services.ExpressionAuthority.sourceChanged(ExpressionAuthority.java:311) at org.eclipse.ui.internal.services.ExpressionAuthority.sourceChanged(ExpressionAuthority.java:302) at org.eclipse.ui.AbstractSourceProvider.fireSourceChanged(AbstractSourceProvider.java:80) at org.eclipse.ui.internal.services.WorkbenchSourceProvider.selectionChanged(WorkbenchSourceProvider.java:177) at org.eclipse.ui.internal.AbstractSelectionService.fireSelection(AbstractSelectionService.java:156) at org.eclipse.ui.internal.AbstractSelectionService$1.selectionChanged(AbstractSelectionService.java:62) at org.eclipse.debug.internal.ui.views.variables.VariablesView$SelectionProviderWrapper.fireSelectionChanged(VariablesView.java:187) at org.eclipse.debug.internal.ui.views.variables.VariablesView$SelectionProviderWrapper.access$0(VariablesView.java:183) at org.eclipse.debug.internal.ui.views.variables.VariablesView$3.selectionChanged(VariablesView.java:155) 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.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2188) at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1211) at org.eclipse.debug.internal.ui.viewers.model.InternalTreeModelViewer.handleSelect(InternalTreeModelViewer.java:2465) at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1241) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:239) at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:233) at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:403) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123) 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:344) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) 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:616) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.java:1410)