Cannot cast org.eclipse.core.internal.resources.Folder to org.eclipse.core.resources.IProject
Created originally on Bitbucket by harmant (Anton Plotkin)
Hello,
After upgrading to mercurialeclipse 2.4.0 I got this error for command "Refresh status"
An internal error occurred during: "Refreshing resource %projectname%...". Cannot cast org.eclipse.core.internal.resources.Folder to org.eclipse.core.resources.IProject
MercurialEclipse: 2.4.0.201710011300
Mercurial: 3.9.1
OS: Ubuntu 17.04 x64
Eclipse: Oxygen 4.7.1
Java: Oracle 1.8.0_131
Eclipse and Java information: eclipse.buildId=4.7.1.M20170906-1700 eclipse.commands=-os linux -ws gtk -arch x86_64 --launcher.library /home/smile/eclipse/javascript-oxygen/eclipse//../../../.p2/pool/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.500.v20170531-1133/eclipse_1624.so -startup /home/smile/eclipse/javascript-oxygen/eclipse//plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar --launcher.appendVmargs -vm /usr/lib/jvm/java-8-oracle/jre/bin/java eclipse.p2.max.threads=10 eclipse.vm=/usr/lib/jvm/java-8-oracle/jre/bin/java eclipse.vmargs=-Dosgi.requiredJavaVersion=1.8 -XX:+UseG1GC -XX:+UseStringDeduplication -Dosgi.requiredJavaVersion=1.8 -Xms256m -Xmx1024m -Declipse.p2.max.threads=10 -Xmx2048m -jar /home/smile/eclipse/javascript-oxygen/eclipse//plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar equinox.init.uuid=true equinox.use.ds=true java.class.version=52.0 java.endorsed.dirs=/usr/lib/jvm/java-8-oracle/jre/lib/endorsed java.ext.dirs=/usr/lib/jvm/java-8-oracle/jre/lib/ext:/usr/java/packages/lib/ext java.home=/usr/lib/jvm/java-8-oracle/jre java.io.tmpdir=/tmp java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib java.runtime.version=1.8.0_131-b11 java.specification.vendor=Oracle Corporation java.specification.version=1.8 java.version=1.8.0_131 java.vm.info=mixed mode java.vm.name=Java HotSpot(TM) 64-Bit Server VM java.vm.specification.version=1.8 java.vm.vendor=Oracle Corporation java.vm.version=25.131-b11