carymrobbins/intellij-haskforce

Fails to build any project with NoClassDefFoundError

Opened this issue · 3 comments

I have a new install of IntelliJ Idea 2021.1 (updated) running fine. Then I opened a .hs file and it asked for a haskell plugin - I had HaskForce (disabled) and said yes - enable and update.
Then restarting the IDE it gives this error: and the IDE cannot even start.
I had to remove the Haskforce plugin to get it to work.
Thanks for any hints.

Internal error. Please refer to https://jb.gg/ide/critical-startup-errors

java.util.concurrent.CompletionException: java.lang.AssertionError
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
at java.base/java.util.concurrent.CompletableFuture.uniApplyNow(CompletableFuture.java:683)
at java.base/java.util.concurrent.CompletableFuture.uniApplyStage(CompletableFuture.java:658)
at java.base/java.util.concurrent.CompletableFuture.thenApply(CompletableFuture.java:2094)
at com.intellij.ide.plugins.PluginManagerCore.initPlugins(PluginManagerCore.java:802)
at com.intellij.idea.ApplicationLoader.initApplication(ApplicationLoader.kt:383)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.intellij.idea.a.a(a.java:103)
at com.intellij.ide.b.m.ag.a(ag.java:93)
at com.intellij.ide.b.m.e.b(e.java:279)
at com.intellij.ide.b.m.f.b(f.java:276)
at com.intellij.ide.b.m.f.c(f.java:169)
at com.intellij.ide.b.m.f.a(f.java:81)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.intellij.idea.MainImpl.start(MainImpl.java:95)
at com.intellij.idea.StartupUtil.startApp(StartupUtil.java:310)
at com.intellij.idea.StartupUtil.prepareApp(StartupUtil.java:250)
at com.intellij.ide.plugins.MainRunner.lambda$start$1(MainRunner.java:41)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.AssertionError
at com.intellij.ide.plugins.ClassLoaderConfigurator.configure(ClassLoaderConfigurator.java:169)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
at com.intellij.ide.plugins.PluginManagerCore.initializePlugins(PluginManagerCore.java:1093)
at com.intellij.ide.plugins.PluginManagerCore.loadAndInitializePlugins(PluginManagerCore.java:1364)
at com.intellij.ide.plugins.PluginManagerCore.lambda$initPlugins$20(PluginManagerCore.java:803)
at java.base/java.util.concurrent.CompletableFuture.uniApplyNow(CompletableFuture.java:680)
... 23 more


Your JRE: 11.0.10+9-b1341.35 amd64 (JetBrains s.r.o.)
E:\Developer\JetBrains\IntelliJ IDEA 2021.1\jbr

I have a maybe similar issue with Pycharm 2020.3 : when installing haskforce, after restarting the IDE, it show in the plugin list as not installed.

The installation fails without a message for me.

EDIT: Nevermind, the logs tells that Haskforce is not compatible with pycharm :(

This should be fixed in the latest release - https://github.com/carymrobbins/intellij-haskforce/releases/tag/v0.3.46

Please reopen or submit a new issue if you encounter any other problems!