A couple things you can try to narrow down the issue:
1. run :EcimValidate from within macvim. This will print "Result: OK,
required settings are valid." if your vim version and configured
options meet the minimum requirements, or it will notify you where
it didn't. If you get a "not an editor command: EclimValidate",
then see #2 below.
2. make sure that your vim runtime path includes the eclim vim files.
Run :echo &rtp and you should see two paths at the end that look
like: <home_dir>/.vim/eclim,<home_dir>/.vim/eclim/after
Let me know if those help you narrow down the issue or not. If not,
then please send me the output and we'll dig a little further to find
the issue.
--
eric
Can you ping eclim from the command line?
$ /Applications/Eclipse/eclim -command ping
When you run :PingEclim from macvim, what is the exact error? Is it
error "E492" or some other error?
--
eric
Ah, I see. That rules out any issue on the macvim side. It's
definitely an issue running eclimd. It would seem that although the
process starts up, the bundles are not properly loading.
Can you please do the following:
1. shutdown and eclipse or eclimd process running
2. delete the file ~/workspace/.metadata/.log
3. start the eclimd headless process.
4. post the contents of ~/workspace/.metadata/.log
--
eric
Perhaps your eclipse workspace is located somewhere else? By default
it should be in your home directory.
--
eric
Well, then I suppose the next step is to add a bunch of logging to the
eclim loading process, give you the updated code, and then have you
run that. Unfortunately I can't do that until later today. When I
get home tonight, I'll send you a couple updated jar files and we can
proceed from there.
Thank you for your patience so far in debugging this problem.
--
eric
Attached is an updated eclim.jar file. Download the file and put it
in your $ECLIPSE_HOME/plugins/org.eclim_1.5.1/ directory, replacing
the old one.
Then open up $ECLIPSE_HOME/plugins/org.eclim_1.5.1/log4j.xml and
change the org.eclim logger level from "info" to "debug" (line 70):
<logger name="org.eclim">
<level value="debug"/>
</logger>
After you've done that, try starting the headless eclimd again and
post the output.
--
eric
i get an error
here's the output and log file contents
"/Applications/eclipse/Eclipse.app/Contents/MacOS/eclipse"
-debug -nosplash -clean -refresh
-application org.eclim.application_headless
-vmargs
Start VM: -XX:MaxPermSize=256m
-Djava.class.path=/Applications/Eclipse/Eclipse.app/Contents/MacOS/../../../plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
-os macosx
-ws cocoa
-arch x86
-launcher /Applications/Eclipse/Eclipse.app/Contents/MacOS/eclipse
-name Eclipse
--launcher.library /Applications/Eclipse/Eclipse.app/Contents/MacOS//../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx_1.0.0.v20090519/eclipse_1206.so
-startup /Applications/Eclipse/Eclipse.app/Contents/MacOS/../../../plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
-product org.eclipse.epp.package.java.product
-debug
-clean
-refresh
-application org.eclim.application_headless
-vm /System/Library/Frameworks/JavaVM.framework
-vmargs
-XX:MaxPermSize=256m
-Djava.class.path=/Applications/Eclipse/Eclipse.app/Contents/MacOS/../../../plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
Install location:
file:/Applications/Eclipse/
Configuration file:
file:/Applications/Eclipse/configuration/config.ini loaded
Configuration location:
file:/Applications/Eclipse/configuration/
Framework located:
file:/Applications/Eclipse/plugins/org.eclipse.osgi_3.5.0.v20090520.jar
Framework classpath:
file:/Applications/Eclipse/plugins/org.eclipse.osgi_3.5.0.v20090520.jar
Debug options:
file:/Applications/Eclipse/Eclipse.app/Contents/MacOS/.options not found
Time to load bundles: 73
Starting application: 339
See the log file
/Applications/Eclipse/configuration/1248145178569.log.
!SESSION 2009-07-21 10:54:01.214 -----------------------------------------------
eclipse.buildId=I20090611-1540
java.version=1.5.0_19
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
Framework arguments: -product org.eclipse.epp.package.java.product -refresh -application org.eclim.application_headless
Command-line arguments: -os macosx -ws cocoa -arch x86 -product org.eclipse.epp.package.java.product -debug -clean -refresh -application org.eclim.application_headless
!ENTRY org.eclipse.osgi 2 0 2009-07-21 10:54:07.225
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-07-21 10:54:07.225
!MESSAGE Bundle org.eclipse.jdt.apt.pluggable.core_1.0.200.v20090526-2130 [125] was not resolved.
!SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2009-07-21 10:54:07.225
!MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.tool_0.0.0.
!SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2009-07-21 10:54:07.225
!MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.apt.dispatch_0.0.0.
!SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2009-07-21 10:54:07.225
!MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.apt.model_0.0.0.
!SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2009-07-21 10:54:07.225
!MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.apt.util_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-07-21 10:54:07.225
!MESSAGE Bundle org.eclipse.jdt.compiler.apt_1.0.200.v20090528-1135 [127] was not resolved.
!SUBENTRY 2 org.eclipse.jdt.compiler.apt 2 0 2009-07-21 10:54:07.225
!MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.tool_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-07-21 10:54:07.225
!MESSAGE Bundle org.eclipse.jdt.compiler.tool_1.0.100.v_963 [128] was not resolved.
!SUBENTRY 2 org.eclipse.jdt.compiler.tool 2 0 2009-07-21 10:54:07.225
!MESSAGE Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-1.6
!ENTRY org.eclipse.osgi 2 0 2009-07-21 10:54:07.297
!MESSAGE The activator org.eclim.eclipse.EclimPlugin for bundle org.eclim is invalid
!STACK 0
org.osgi.framework.BundleException: The activator org.eclim.eclipse.EclimPlugin for bundle org.eclim is invalid
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:157)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:750)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:408)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:238)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1193)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:160)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:874)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:189)
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:368)
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:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
Caused by: java.lang.ClassNotFoundException: org.eclim.eclipse.EclimPlugin
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:489)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:405)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:393)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:321)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:150)
... 22 more
Root exception:
java.lang.ClassNotFoundException: org.eclim.eclipse.EclimPlugin
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:489)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:405)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:393)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:321)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:150)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:750)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:408)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:238)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1193)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:160)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:874)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:189)
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:368)
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:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
!ENTRY org.eclipse.osgi 4 0 2009-07-21 10:54:07.300
!MESSAGE Application error
!STACK 1
org.eclipse.core.runtime.CoreException: Plug-in org.eclim was unable to load class org.eclim.eclipse.EclimApplicationHeadless.
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:180)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:162)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:874)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:189)
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:368)
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:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
Caused by: java.lang.ClassNotFoundException: org.eclim.eclipse.EclimApplicationHeadless
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:489)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:405)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:393)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:321)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1193)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:160)
... 15 more
!ENTRY org.eclipse.osgi 2 0 2009-07-21 10:54:07.321
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-07-21 10:54:07.321
!MESSAGE Bundle org.eclipse.jdt.apt.pluggable.core_1.0.200.v20090526-2130 [125] was not resolved.
!SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2009-07-21 10:54:07.321
!MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.tool_0.0.0.
!SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2009-07-21 10:54:07.321
!MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.apt.dispatch_0.0.0.
!SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2009-07-21 10:54:07.321
!MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.apt.model_0.0.0.
!SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2009-07-21 10:54:07.321
!MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.apt.util_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-07-21 10:54:07.321
!MESSAGE Bundle org.eclipse.jdt.compiler.apt_1.0.200.v20090528-1135 [127] was not resolved.
!SUBENTRY 2 org.eclipse.jdt.compiler.apt 2 0 2009-07-21 10:54:07.321
!MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.tool_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-07-21 10:54:07.321
!MESSAGE Bundle org.eclipse.jdt.compiler.tool_1.0.100.v_963 [128] was not resolved.
!SUBENTRY 2 org.eclipse.jdt.compiler.tool 2 0 2009-07-21 10:54:07.321
!MESSAGE Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-1.6
--
eric
--
失落の神
What is the output of:
$ ls -l /Applications/Eclipse/plugins/org.eclim_1.5.1/
--
eric
Ah, very nice. It looks like eclimd is starting and running fine now.
Hmm, I do still wonder why eclimd wasn't working before I sent you the
jar. If the issue re-occurs, please let me know.
Thank you for your patience and for sticking with it.
--
eric