ceylon/ceylon-ide-eclipse — Issue #181: Invalid SHA1 for artifact error
Author: FroMage
Created: 2012-02-27 10:03:48+00:00
State: open
Labels: bug, high priority

I just added a Java class to a Ceylon project, then removed it and got this error:

```

An exception has occurred in the compiler (ceylonc 0.1 'Newton').
java.lang.IllegalArgumentException: Invalid SHA1 for artifact: default-unversioned
at com.redhat.ceylon.cmr.impl.AbstractNodeRepository.getLeafNode(AbstractNodeRepository.java:175)
at com.redhat.ceylon.cmr.impl.SimpleRepository.getArtifact(SimpleRepository.java:51)
at com.redhat.ceylon.compiler.java.loader.CeylonEnter.addModuleToClassPath(CeylonEnter.java:221)
at com.redhat.ceylon.compiler.java.tools.LanguageCompiler.loadModuleFromSource(LanguageCompiler.java:322)
at com.redhat.ceylon.compiler.java.tools.LanguageCompiler.loadCompiledModules(LanguageCompiler.java:274)
at com.redhat.ceylon.compiler.java.tools.LanguageCompiler.parseFiles(LanguageCompiler.java:261)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:805)
at com.redhat.ceylon.compiler.java.launcher.Main.compile(Main.java:457)
at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:132)
at com.redhat.ceylon.eclipse.imp.builder.CeylonBuilder.compile(CeylonBuilder.java:957)
at com.redhat.ceylon.eclipse.imp.builder.CeylonBuilder.generateBinaries(CeylonBuilder.java:927)
at com.redhat.ceylon.eclipse.imp.builder.CeylonBuilder.build(CeylonBuilder.java:590)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
```

This is weird.