Skip to content

Could not initialize class com.vectrace.MercurialEclipse.model.HgRoot

Created originally on Bitbucket by emrfrazierm (Mitch Frazier)

Getting this error after restarting eclipse. As far as I can remember the only thing that changed was an update to Java 1.8.0_151, but I've rolled back to 1.8.0_141 and am still getting the error so not sure if that's relevant.

I've attached an eclipse log from startup to shutdown after reinstalling MercurialEclipse.

The likely relevant part is:

#!text

	at org.eclipse.cdt.internal.core.pdom.PDOMSetupJob.run(PDOMSetupJob.java:55)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
Caused by: java.lang.ClassCastException: Cannot cast org.eclipse.core.internal.resources.WorkspaceRoot to org.eclipse.core.resources.IProject
	at java.lang.Class.cast(Unknown Source)
	at com.vectrace.MercurialEclipse.model.HgPath.getAdapter(HgPath.java:123)
	at com.vectrace.MercurialEclipse.model.HgRoot.<init>(HgRoot.java:94)
	at com.vectrace.MercurialEclipse.model.HgRoot.<clinit>(HgRoot.java:60)

Attachments: .log

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information