Hello,

I installed MercurialEclipse, but I have a circular problem: opening
the preference page for MercurialEclipse results in an error. Checking
the Error Log showed me that it couldn't load the preference page
because the hg command line client couldn't be found. However, I can't
update the location to hg since the preference page isn't successfully
displayed.

The preference only shows the red string:

"An error has occurred when creating this preference page."

The event from the Error Log shows this:

--- START ---
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter
$TerminatingClassNotFoundException: An error occurred while
automatically activating bundle com.vectrace.MercurialEclipse (267).
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass
(EclipseLazyStarter.java:125)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass
(ClasspathManager.java:427)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass
(DefaultClassLoader.java:193)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass
(BundleLoader.java:370)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal
(BundleLoader.java:446)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass
(BundleLoader.java:399)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass
(BundleLoader.java:387)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass
(DefaultClassLoader.java:87)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass
(BundleLoader.java:315)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass
(BundleHost.java:227)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass
(AbstractBundle.java:1274)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension
(RegistryStrategyOSGI.java:160)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension
(ExtensionRegistry.java:867)
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.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:
267)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:
52)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension
(WorkbenchPlugin.java:263)
at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition
$1.run(LightweightDecoratorDefinition.java:124)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:880)
at
org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.internalGetDecorator
(LightweightDecoratorDefinition.java:120)
at
org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.decorate
(LightweightDecoratorDefinition.java:251)
at org.eclipse.ui.internal.decorators.LightweightDecoratorManager
$LightweightRunnable.run(LightweightDecoratorManager.java:72)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at
org.eclipse.ui.internal.decorators.LightweightDecoratorManager.decorate
(LightweightDecoratorManager.java:356)
at
org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations
(LightweightDecoratorManager.java:338)
at org.eclipse.ui.internal.decorators.DecorationScheduler
$1.ensureResultCached(DecorationScheduler.java:374)
at org.eclipse.ui.internal.decorators.DecorationScheduler$1.run
(DecorationScheduler.java:334)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.osgi.framework.BundleException: Exception in
com.vectrace.MercurialEclipse.MercurialEclipsePlugin.start() of bundle
com.vectrace.MercurialEclipse.
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator
(BundleContextImpl.java:1028)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start
(BundleContextImpl.java:984)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker
(BundleHost.java:346)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start
(AbstractBundle.java:265)
at org.eclipse.osgi.framework.util.SecureAction.start
(SecureAction.java:400)
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass
(EclipseLazyStarter.java:111)
... 30 more
Caused by: com.vectrace.MercurialEclipse.exception.HgException: hg:
not found
at
com.vectrace.MercurialEclipse.commands.AbstractShellCommand.executeToStream
(AbstractShellCommand.java:233)
at
com.vectrace.MercurialEclipse.commands.AbstractShellCommand.executeToBytes
(AbstractShellCommand.java:138)
at
com.vectrace.MercurialEclipse.commands.AbstractShellCommand.executeToBytes
(AbstractShellCommand.java:124)
at
com.vectrace.MercurialEclipse.commands.AbstractShellCommand.executeToBytes
(AbstractShellCommand.java:120)
at
com.vectrace.MercurialEclipse.commands.AbstractShellCommand.executeToString
(AbstractShellCommand.java:258)
at com.vectrace.MercurialEclipse.commands.HgPathsClient.getPaths
(HgPathsClient.java:25)
at com.vectrace.MercurialEclipse.commands.HgPathsClient.getPaths
(HgPathsClient.java:20)
at
com.vectrace.MercurialEclipse.storage.HgRepositoryLocationManager.loadProjectRepos
(HgRepositoryLocationManager.java:246)
at
com.vectrace.MercurialEclipse.storage.HgRepositoryLocationManager.start
(HgRepositoryLocationManager.java:103)
at com.vectrace.MercurialEclipse.MercurialEclipsePlugin.start
(MercurialEclipsePlugin.java:102)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run
(BundleContextImpl.java:1009)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator
(BundleContextImpl.java:1003)
... 35 more
Caused by: java.io.IOException: hg: not found
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:52)
at java.lang.ProcessImpl.start(ProcessImpl.java:91)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
at
com.vectrace.MercurialEclipse.commands.AbstractShellCommand.executeToStream
(AbstractShellCommand.java:165)
... 47 more
--- END ---

Here are the details regarding my system:
eclipse.buildId=M20090211-1700
java.version=1.5.0_19
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=carbon, NL=en_US
Framework arguments:  -keyring /Users/ringods/.eclipse_keyring -
showlocation
Command-line arguments:  -os macosx -ws carbon -arch x86 -keyring /
Users/ringods/.eclipse_keyring -consoleLog -showlocation

MercurialEclipse plugin version: 1.3.1019 (stable)
My hg client is installed via MacPorts and is installed in /opt/local/
bin/hg.

Ringo

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MercurialEclipse" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/mercurialeclipse?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to