Git Product home page Git Product logo

subclim's People

Contributors

cryptictemple avatar eugen avatar julianeberius avatar shirosaki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

subclim's Issues

Subclim linux compatibility?

I use eclim with vim on my linux box on a daily basis but have started using Sublime. I have installed Subclim and set the eclim executable path to my executable in my eclipse $HOME folder but I nothing happens. Am I missing something?

If it helps this is the console output:-

startup, version: 2177 linux x64 channel: dev
executable: /usr/lib/sublime-text-2/sublime_text
working dir: /home/ben
packages path: /home/ben/.config/sublime-text-2/Packages
settings path: /home/ben/.config/sublime-text-2/Settings
error parsing session: No data at: 0:0
PackageSetup not required
Py_GetProgramName(): sublime_text
Py_GetExecPrefix(): .
Py_GetProgramFullPath():
Py_GetPath(): ./lib/python26.zip:./lib/python2.6/:./lib/python2.6/plat-linux2:./lib/python2.6/lib-tk:./lib/python2.6/lib-old:./lib/python2.6/lib-dynload
Py_GetPythonHome(): .
catalogue loaded
found 8 files for base name Default.sublime-keymap
found 1 files for base name Default.sublime-mousemap
found 2 files for base name Main.sublime-menu
Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/comment.py
Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/copy_path.py
Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/delete_word.py
Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/detect_indentation.py
Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/duplicate_line.py
Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/echo.py
Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/exec.py
Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/fold.py
Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/font.py
Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/goto_line.py
Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/indentation.py
Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/kill_ring.py
Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/mark.py
Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/new_templates.py
Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/open_file_settings.py
Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/paragraph.py
Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/save_on_focus_lost.py
Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/scroll.py
Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/set_unsaved_view_name.py
Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/side_bar.py
Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/sort.py
Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/swap_line.py
Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/switch_file.py
Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/transform.py
Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/transpose.py
Reloading plugin /home/ben/.config/sublime-text-2/Packages/Default/trim_trailing_white_space.py
Reloading plugin /home/ben/.config/sublime-text-2/Packages/Diff/diff.py
Reloading plugin /home/ben/.config/sublime-text-2/Packages/Display Functions (Java)/displayfunctions.py
Reloading plugin /home/ben/.config/sublime-text-2/Packages/HTML/encode_html_entities.py
Reloading plugin /home/ben/.config/sublime-text-2/Packages/HTML/html_completions.py
Reloading plugin /home/ben/.config/sublime-text-2/Packages/Package Control/Package Control.py
Reloading plugin /home/ben/.config/sublime-text-2/Packages/Subclim/eclim.py
Reloading plugin /home/ben/.config/sublime-text-2/Packages/Subclim/subclim_plugin.py
Reloading plugin /home/ben/.config/sublime-text-2/Packages/Vintage/vintage.py
Reloading plugin /home/ben/.config/sublime-text-2/Packages/Vintage/vintage_commands.py
Reloading plugin /home/ben/.config/sublime-text-2/Packages/Vintage/vintage_motions.py
plugin init time: 0.053234
loading bindings
loading pointer bindings
found 1 files for base name Default.sublime-theme
theme loaded
app ready
pre session restore time: 0.116176
using gamma: 1 (err: 0)
wrote startup cache, added files: 2 orphaned files: 0 total files: 96 cache hits: 94
startup time: 0.239671 (package setup was not run)
Traceback (most recent call last):
File "./sublime_plugin.py", line 175, in on_load
File "./sublime_plugin.py", line 154, in run_timed_function
File "./sublime_plugin.py", line 174, in
File "./subclim_plugin.py", line 233, in on_load
File "./subclim_plugin.py", line 249, in validate
File "./eclim.py", line 59, in get_context
File ".\xml\etree\ElementTree.py", line 962, in XML
File ".\xml\etree\ElementTree.py", line 1118, in init
ImportError: No module named expat; use SimpleXMLTreeBuilder instead
Traceback (most recent call last):
File "./sublime_plugin.py", line 175, in on_load
File "./sublime_plugin.py", line 154, in run_timed_function
File "./sublime_plugin.py", line 174, in
File "./subclim_plugin.py", line 233, in on_load
File "./subclim_plugin.py", line 249, in validate
File "./eclim.py", line 59, in get_context
File ".\xml\etree\ElementTree.py", line 962, in XML
File ".\xml\etree\ElementTree.py", line 1118, in init
ImportError: No module named expat; use SimpleXMLTreeBuilder instead
Traceback (most recent call last):
File "./sublime_plugin.py", line 175, in on_load
File "./sublime_plugin.py", line 154, in run_timed_function
File "./sublime_plugin.py", line 174, in
File "./subclim_plugin.py", line 233, in on_load
File "./subclim_plugin.py", line 249, in validate
File "./eclim.py", line 59, in get_context
File ".\xml\etree\ElementTree.py", line 962, in XML
File ".\xml\etree\ElementTree.py", line 1118, in init
ImportError: No module named expat; use SimpleXMLTreeBuilder instead
Traceback (most recent call last):
File "./sublime_plugin.py", line 175, in on_load
File "./sublime_plugin.py", line 154, in run_timed_function
File "./sublime_plugin.py", line 174, in
File "./subclim_plugin.py", line 233, in on_load
File "./subclim_plugin.py", line 249, in validate
File "./eclim.py", line 59, in get_context
File ".\xml\etree\ElementTree.py", line 962, in XML
File ".\xml\etree\ElementTree.py", line 1118, in init
ImportError: No module named expat; use SimpleXMLTreeBuilder instead
loaded 939 snippets
reloading /home/ben/.config/sublime-text-2/Packages/User/Package Control.sublime-settings
Package Control: No updated packages
reloading /home/ben/.config/sublime-text-2/Packages/User/Subclim.sublime-settings
Traceback (most recent call last):
File "./sublime_plugin.py", line 175, in on_load
File "./sublime_plugin.py", line 154, in run_timed_function
File "./sublime_plugin.py", line 174, in
File "./subclim_plugin.py", line 233, in on_load
File "./subclim_plugin.py", line 249, in validate
File "./eclim.py", line 59, in get_context
File ".\xml\etree\ElementTree.py", line 962, in XML
File ".\xml\etree\ElementTree.py", line 1118, in init
ImportError: No module named expat; use SimpleXMLTreeBuilder instead
Traceback (most recent call last):
File "./sublime_plugin.py", line 175, in on_load
File "./sublime_plugin.py", line 154, in run_timed_function
File "./sublime_plugin.py", line 174, in
File "./subclim_plugin.py", line 233, in on_load
File "./subclim_plugin.py", line 249, in validate
File "./eclim.py", line 59, in get_context
File ".\xml\etree\ElementTree.py", line 962, in XML
File ".\xml\etree\ElementTree.py", line 1118, in init
ImportError: No module named expat; use SimpleXMLTreeBuilder instead
Traceback (most recent call last):
File "./sublime_plugin.py", line 175, in on_load
File "./sublime_plugin.py", line 154, in run_timed_function
File "./sublime_plugin.py", line 174, in
File "./subclim_plugin.py", line 233, in on_load
File "./subclim_plugin.py", line 249, in validate
File "./eclim.py", line 59, in get_context
File ".\xml\etree\ElementTree.py", line 962, in XML
File ".\xml\etree\ElementTree.py", line 1118, in init
ImportError: No module named expat; use SimpleXMLTreeBuilder instead
Traceback (most recent call last):
File "./sublime_plugin.py", line 350, in run_
File "./subclim_plugin.py", line 113, in run
File "./eclim.py", line 59, in get_context
File ".\xml\etree\ElementTree.py", line 962, in XML
File ".\xml\etree\ElementTree.py", line 1118, in init
ImportError: No module named expat; use SimpleXMLTreeBuilder instead

Auto Import Not Working

Auto completion and linting are both working for me. However I can't get Auto Complete to work. When I hit ctr+alt+i a space is inserted. Whenever I hit alt-super+i nothing happens but the ST2 status bar says that it saved the project.

NullPointerException when Requesting Completions

Not sure if anyone is still looking at these, but with one of my projects I am getting this error when requesting completions in Sublime. Haven't been able to figure out why this is happening. Only happening with one project, another project in a different workspace works perfectly.

Ubuntu 14.04
SublimeText 3
Eclipse Neon

2017-02-03 10:14:36,248 ERROR [org.eclim.command.Main] Command failed
java.lang.NullPointerException
at org.eclim.plugin.core.util.ProjectUtils.getFilePath(ProjectUtils.java:201)
at org.eclim.plugin.core.util.ProjectUtils.getFilePath(ProjectUtils.java:163)
at org.eclim.plugin.core.command.AbstractCommand.getOffset(AbstractCommand.java:97)
at org.eclim.plugin.core.command.AbstractCommand.getOffset(AbstractCommand.java:71)
at org.eclim.plugin.core.command.complete.AbstractCodeCompleteCommand.execute(AbstractCodeCompleteCommand.java:60)
at org.eclim.command.Main$1.run(Main.java:100)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:182)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4536)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4154)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:693)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:610)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
at org.eclipse.equinox.launcher.Main.main(Main.java:1492)

Unrecognized option: -command

When trying to run sublim text in a java project, I have this error:

- ERROR    - Error connecting to Eclim server: java -d64 -command project_list [email protected]/workspace/workspace -Xms40m -Xmx512m -XX:MaxPermSize=256m -jar /usr/share/eclipse/plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar -debug -clean -refresh -application org.eclim.application
Unrecognized option: -command
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Subclim throws out ERROR when triggering autocomplete

Hello there, I'm using latest Subclim with Eclipse Standard 4.3 64 Bit, Eclim 2.3.2 and Sublime Text 2 build 2221 on my OS X 10.8.5.

I run Eclipse and open the Eclim View, and edit files inside the open Eclipse project.

Generally, the Subclim works with my ST2. It displays my errors and I can trigger the autocomplete. But the Sublime Text 2 drags me to the subclim logs to display the errors as I trigger the autocomplete with high probability.

The following is the logs

2013-09-22 23:12:30,775 - ERROR    - No JSON object could be decoded
2013-09-22 23:12:30,781 - ERROR    - Error connecting to Eclim server: org.eclipse.core.runtime.AssertionFailedException: null argument:
    at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
    at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
    at org.eclipse.core.runtime.Path.initialize(Path.java:577)
    at org.eclipse.core.runtime.Path.<init>(Path.java:185)
    at org.eclipse.core.internal.resources.WorkspaceRoot.getProject(WorkspaceRoot.java:182)
    at org.eclim.plugin.core.util.ProjectUtils.getProject(ProjectUtils.java:121)
    at org.eclim.plugin.core.util.ProjectUtils.getProject(ProjectUtils.java:107)
    at org.eclim.plugin.jdt.command.src.SrcUpdateCommand.execute(SrcUpdateCommand.java:71)
    at org.eclim.command.Main$1.run(Main.java:100)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3976)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3653)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:826)
    at org.eclipse.jface.window.Window.open(Window.java:802)
    at org.eclipse.ui.internal.dialogs.AboutDialog$1.run(AboutDialog.java:127)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
    at org.eclipse.ui.internal.dialogs.AboutDialog.buttonPressed(AboutDialog.java:122)
    at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:628)
    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.Display.sendEvent(Display.java:4166)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1466)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1489)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1474)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4012)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3651)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:826)
    at org.eclipse.jface.window.Window.open(Window.java:802)
    at org.eclipse.ui.internal.about.AboutHandler.execute(AboutHandler.java:32)
    at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:290)
    at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
    at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:243)
    at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:224)
    at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
    at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:167)
    at org.eclipse.core.commands.Command.executeWithChecks(Command.java:499)
    at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
    at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
    at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:200)
    at org.eclipse.e4.ui.workbench.renderers.swt.cocoa.CocoaUIHandler.runCommand(CocoaUIHandler.java:716)
    at org.eclipse.e4.ui.workbench.renderers.swt.cocoa.CocoaUIHandler.access$6(CocoaUIHandler.java:704)
    at org.eclipse.e4.ui.workbench.renderers.swt.cocoa.CocoaUIHandler$8.widgetSelected(CocoaUIHandler.java:569)
    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.Display.sendEvent(Display.java:4166)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1466)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1489)
    at org.eclipse.swt.widgets.Widget.sendSelectionEvent(Widget.java:1539)
    at org.eclipse.swt.widgets.MenuItem.sendSelection(MenuItem.java:566)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:5398)
    at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
    at org.eclipse.swt.widgets.Display.applicationNextEventMatchingMask(Display.java:4918)
    at org.eclipse.swt.widgets.Display.applicationProc(Display.java:5296)
    at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
    at org.eclipse.swt.internal.cocoa.NSApplication.nextEventMatchingMask(NSApplication.java:94)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3645)
    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:138)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)
    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:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    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)

Thank you in advance.

Can't get it to install

I have eclim installed and running within in Eclipse or I can run eclimd in a terminal. Getting this error when I try to use auto complete in sublme,

2012-11-14 13:56:45,888 - ERROR - Error connecting to Eclim server: java.lang.NullPointerException
at org.eclim.plugin.core.util.ProjectUtils.getFilePath(ProjectUtils.java:179)
at org.eclim.plugin.core.util.ProjectUtils.getFilePath(ProjectUtils.java:141)
at org.eclim.plugin.core.command.AbstractCommand.getOffset(AbstractCommand.java:96)
at org.eclim.plugin.core.command.AbstractCommand.getOffset(AbstractCommand.java:70)
at org.eclim.plugin.jdt.command.complete.CodeCompleteCommand.execute(CodeCompleteCommand.java:72)
at org.eclim.command.Main$1.run(Main.java:98)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3944)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3621)
at org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor.runEventLoop(EventLoopProgressMonitor.java:123)
at org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor.isCanceled(EventLoopProgressMonitor.java:97)
at org.eclipse.core.internal.jobs.ThreadJob.isCanceled(ThreadJob.java:144)
at org.eclipse.core.internal.jobs.ThreadJob.waitForRun(ThreadJob.java:233)
at org.eclipse.core.internal.jobs.ThreadJob.joinRun(ThreadJob.java:197)
at org.eclipse.core.internal.jobs.ImplicitJobs.begin(ImplicitJobs.java:92)
at org.eclipse.core.internal.jobs.JobManager.beginRule(JobManager.java:286)
at org.eclipse.core.internal.resources.WorkManager.checkIn(WorkManager.java:118)
at org.eclipse.core.internal.resources.Workspace.prepareOperation(Workspace.java:2282)
at org.eclipse.core.internal.resources.Resource.refreshLocal(Resource.java:1691)
at org.eclipse.core.internal.resources.File.refreshLocal(File.java:333)
at org.eclim.plugin.core.util.ProjectUtils.getFile(ProjectUtils.java:219)
at org.eclim.plugin.core.command.AbstractCommand.cleanup(AbstractCommand.java:157)
at org.eclim.command.Main$1.run(Main.java:102)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3944)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3621)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1029)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclim.eclipse.EclimApplication.start(EclimApplication.java:84)
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:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

Any ideas?

Classpath/external jars not included on build

I created an eclipse java project and added some external jars, but subclim doesn't seem to use the .classpath file when it's building or somehow the jars aren't included when it builds. Is there a way to set the classpath manually for subclim?

On a Mac, having trouble identifying the executable path...

Hi,

A noob here. I'm on a Mac, and I can't figure out which file/folder to enter for
"Set Eclim Executable Path"

Currently have
/Users//.p2/pool/plugins/org.eclim_2.6.0/bin/eclimd

...but that doesn't seem to be doing anything. Can anyone share their wisdom and point me in a better direction?

Thanks much!

-Tim

Auto-complete not working

When I click Ctrl-Alt-Space to do auto-complete, the status bar in ST2 says "Saved full path to file (UTF-8)" but shows no auto completions. I have setup the path correctly to the eclim executable, and also everything works fine in vim. I am getting no errors in the Subclim log.

I've looked through the plugin code some and all I can tell is that it is running the "save" command but not the "auto_complete" command but I don't know exactly what is causing that command to not run or to fail while executing.

I am using an existing Eclipse project, Eclipse Juno, the latest eclim and this plugin on Ubuntu 12.04, Python version 2.7.3.

Causes major editor lag.

This plugin doesn't seem to do background processing. It generates significant lag the Sublime Text UI for me.

I really liked the idea but it's not as usable as I'd like. I now have the linting part of eclim implemented in sublimelint (which does do background processing, so no lag). I'd probably still have use for auto import functions.

Subclim commands not working

Subclim commands not working for me. When I hit ctr+alt+i or ctr+alt+space an error is printed in console. I'm using ST3 and dclim 2.3.2

Writing file /Users/anderson/Desktop/Hello.java with encoding UTF-8 (atomic)
Traceback (most recent call last):
File "subclim_plugin in /Users/anderson/Library/Application Support/Sublime Text 3/Installed Packages/Subclim.sublime-package", line 46, in worker
File "subclim_plugin in /Users/anderson/Library/Application Support/Sublime Text 3/Installed Packages/Subclim.sublime-package", line 653, in async_validate_task
File "eclim in /Users/anderson/Library/Application Support/Sublime Text 3/Installed Packages/Subclim.sublime-package", line 137, in update_java_src
File "eclim in /Users/anderson/Library/Application Support/Sublime Text 3/Installed Packages/Subclim.sublime-package", line 70, in call_eclim
File "X/subprocess.py", line 818, in init
File "X/subprocess.py", line 1363, in _execute_child
TypeError: Can't convert 'NoneType' object to str implicitly
Traceback (most recent call last):
File "subclim_plugin in /Users/anderson/Library/Application Support/Sublime Text 3/Installed Packages/Subclim.sublime-package", line 46, in worker
File "subclim_plugin in /Users/anderson/Library/Application Support/Sublime Text 3/Installed Packages/Subclim.sublime-package", line 719, in async_find_imports_task
File "subclim_plugin in /Users/anderson/Library/Application Support/Sublime Text 3/Installed Packages/Subclim.sublime-package", line 739, in call_eclim
File "eclim in /Users/anderson/Library/Application Support/Sublime Text 3/Installed Packages/Subclim.sublime-package", line 137, in update_java_src
File "eclim in /Users/anderson/Library/Application Support/Sublime Text 3/Installed Packages/Subclim.sublime-package", line 70, in call_eclim
File "X/subprocess.py", line 818, in init
File "X/subprocess.py", line 1363, in _execute_child
TypeError: Can't convert 'NoneType' object to str implicitly
Traceback (most recent call last):
File "subclim_plugin in /Users/anderson/Library/Application Support/Sublime Text 3/Installed Packages/Subclim.sublime-package", line 46, in worker
File "subclim_plugin in /Users/anderson/Library/Application Support/Sublime Text 3/Installed Packages/Subclim.sublime-package", line 653, in async_validate_task
File "eclim in /Users/anderson/Library/Application Support/Sublime Text 3/Installed Packages/Subclim.sublime-package", line 137, in update_java_src
File "eclim in /Users/anderson/Library/Application Support/Sublime Text 3/Installed Packages/Subclim.sublime-package", line 70, in call_eclim
File "X/subprocess.py", line 818, in init
File "X/subprocess.py", line 1363, in _execute_child

Must contain only strings.

Hey! Thanks for the package, I'd love to get it working, but when I try to get a completion, ST2 gives me this:

Traceback (most recent call last): File "./subclim_plugin.py", line 29, in worker File "./subclim_plugin.py", line 538, in async_validate_task File "./eclim.py", line 120, in update_java_src File "./eclim.py", line 56, in call_eclim File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 623, in __init__ errread, errwrite) File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 1141, in _execute_child raise child_exception TypeError: execv() arg 2 must contain only strings

I'm on Mountain Lion. I just installed the latest Eclim, and I'm running the latest ST2. Thanks!

Error on Initiating autocomplete

Hi,
This is what appears in the console on initiating manual auto complete:

Writing file /%PATH%/Decode.java with encoding UTF-8
Traceback (most recent call last):
File ".\subclim_plugin.py", line 29, in worker
Traceback (most recent call last):
File ".\sublime_plugin.py", line 236, in on_query_completions
File ".\subclim_plugin.py", line 413, in on_query_completions
File ".\subclim_plugin.py", line 434, in call_eclim_java
File ".\eclim.py", line 120, in update_java_src
File ".\eclim.py", line 56, in call_eclim
File ".\subprocess.py", line 633, in init
File ".\subprocess.py", line 842, in _execute_child
WindowsError: [Error 5] Access is denied
File ".\subclim_plugin.py", line 538, in async_validate_task
File ".\eclim.py", line 120, in update_java_src
File ".\eclim.py", line 56, in call_eclim
File ".\subprocess.py", line 633, in init
File ".\subprocess.py", line 842, in _execute_child
WindowsError: [Error 5] Access is denied
Traceback (most recent call last):
File ".\subclim_plugin.py", line 29, in worker
File ".\subclim_plugin.py", line 538, in async_validate_task
File ".\eclim.py", line 120, in update_java_src
File ".\eclim.py", line 56, in call_eclim
File ".\subprocess.py", line 633, in init
File ".\subprocess.py", line 842, in _execute_child
WindowsError: [Error 5] Access is denied

Any pointers?

P.S: Im running windows 8

Subclim won't run any commands

Hello! I setup Subclim/Eclim, and am getting errors when trying to run anything. For example, when running "Subclim: Request Completions", Sublime pops up with the following stack trace. Eclipse (Juno) has an eclimd window running, which pops up with an error, also below. Any idea how I might look at fixing?

Sublime Stack Trace

2013-04-23 12:49:15,948 - ERROR - Error connecting to Eclim server: java.lang.NullPointerException at org.eclim.plugin.core.util.ProjectUtils.getFilePath(ProjectUtils.java:179) at org.eclim.plugin.core.util.ProjectUtils.getFilePath(ProjectUtils.java:141) at org.eclim.plugin.core.command.AbstractCommand.getOffset(AbstractCommand.java:96) at org.eclim.plugin.core.command.AbstractCommand.getOffset(AbstractCommand.java:70) at org.eclim.plugin.jdt.command.complete.CodeCompleteCommand.execute(CodeCompleteCommand.java:72) at org.eclim.command.Main$1.run(Main.java:100) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3946) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3623) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) 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:353) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584) at org.eclipse.equinox.launcher.Main.run(Main.java:1438)

eclimd logs

2013-04-23 12:47:02,816 INFO [org.eclim.eclipse.EclimDaemon] Workspace: /Users/Matthew/Documents/workspace-tmp
2013-04-23 12:47:02,817 INFO [org.eclim.eclipse.EclimDaemon] Starting eclim...
2013-04-23 12:47:02,825 INFO [org.eclim.eclipse.EclimDaemon] Loading plugin org.eclim
2013-04-23 12:47:02,828 INFO [org.eclim.eclipse.EclimDaemon] Loading plugin org.eclim.core
2013-04-23 12:47:02,916 INFO [org.eclim.plugin.core.CorePlugin] Loading eclim plugins...
2013-04-23 12:47:02,921 INFO [org.eclim.plugin.core.CorePlugin] Loading plugin org.eclim.jdt
2013-04-23 12:47:02,924 INFO [org.eclim.plugin.core.CorePlugin] Plugins loaded.
2013-04-23 12:47:02,924 INFO [org.eclim.eclipse.EclimDaemon] Loaded plugin org.eclim.core
2013-04-23 12:47:02,924 INFO [org.eclim.eclipse.EclimDaemon] Eclim Server Started on: 127.0.0.1:9091
2013-04-23 12:48:09,166 ERROR [org.eclim.plugin.core.command.AbstractCommand] Exception during cleanup of command: [-command, java_complete, -p, Hacker, Olympics, -f, src/Solution.java, -o, 754, -e, utf-8, -l, compact]
org.eclipse.core.runtime.AssertionFailedException: null argument:
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
at org.eclipse.core.runtime.Path.initialize(Path.java:577)
at org.eclipse.core.runtime.Path.(Path.java:185)
at org.eclipse.core.internal.resources.WorkspaceRoot.getProject(WorkspaceRoot.java:182)
at org.eclim.plugin.core.util.ProjectUtils.getProject(ProjectUtils.java:121)
at org.eclim.plugin.core.util.ProjectUtils.getProject(ProjectUtils.java:107)
at org.eclim.plugin.core.command.AbstractCommand.cleanup(AbstractCommand.java:142)
at org.eclim.command.Main$1.run(Main.java:104)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3946)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3623)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
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:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)

Extending Subclim

Hi Julian,

I want to have a go at extending Subclim functionality but haven't used Python or Git before.
As I haven't used either I thought that I could start by extending Subclim locally on my computer and then when it's a little more mature could collaborate in your project.

If this turns out to be ok with you. Do you have any tips for testing and debugging Sublime Text 2 and Python?

Thanks,

Ben

1.7.5+ and a command windows

Hey, This is a fantastic project!

I really like the idea of combining eclipse's powerful autocompletion with the great text editor that is Sublime.

That being said, I have a few questions/comments:

The first observation I have is that starting with version 1.7.5 and beyond of Eclim, the syntax of the responses seems to have changed and autocompletion is no longer working. I am thinking of taking a stab at fixing this, but I thought I would just call it out as it may be something you want to note in the README.

Anyway, the crux of my posting is in regards to a strange behavior I am having while using Subclim. Anytime I request for auto complete (ctrl-shift-space) multiple command prompt windows quickly pop up and then close. I assume these are the calls to the eclim executable, but I was wondering if you or anyone has experienced this and knows how to get them not to pop up?

I will have to try in linux/OSX and see if I experience something similar (doubtful) but I am currently running windows 7.

Other than that, this is working great. Great project and great work!

Thanks,

~Matthew

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.