Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Haskforce Plugin interferes with Java Builds

See original GitHub issue

First of all thanks for the great work on the Haskforce plugin. It is very useful while taking my first steps in the Haskell world.

However I ran into an issue with a Java project today, that uses 1.6 as target JVM. The default JVM installed on my system is 1.8. Got Intellij2016 with Haskforce 0.3-beta.32 plugin installed. When when I tried to rebuild my Java project today, I got the following error:

Error:Internal error: (java.lang.UnsupportedClassVersionError) com/intellij/execution/ExecutionException : Unsupported major.minor version 52.0
java.lang.UnsupportedClassVersionError: com/intellij/execution/ExecutionException : Unsupported major.minor version 52.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(
    at java.lang.ClassLoader.defineClass(
    at Method)
    at java.lang.ClassLoader.loadClass(
    at java.lang.ClassLoader.loadClass(
    at com.haskforce.jps.HaskForceBuilder.createModuleLevelBuilders(
    at org.jetbrains.jps.incremental.BuilderRegistry.<init>(
    at org.jetbrains.jps.incremental.BuilderRegistry.<init>(
    at org.jetbrains.jps.incremental.BuilderRegistry$Holder.<clinit>(
    at org.jetbrains.jps.incremental.BuilderRegistry.getInstance(
    at org.jetbrains.jps.cmdline.BuildRunner.runBuild(
    at org.jetbrains.jps.cmdline.BuildSession.runBuild(
    at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler$
    at org.jetbrains.jps.service.impl.SharedThreadPoolImpl$
    at java.util.concurrent.Executors$
    at java.util.concurrent.FutureTask$Sync.innerRun(
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
    at java.util.concurrent.ThreadPoolExecutor$

Since the stacktrace shows some Haskforce methods, I decided to disable the Haskforce plugin. After that rebuilding Java projects worked fine again.

Note that things are also working fine if I configure 1.8 as target JVM also. Myself and a colleague were able to reproduce the issue with a minimal Java project also.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:14 (11 by maintainers)

github_iconTop GitHub Comments

carymrobbinscommented, Apr 5, 2017

Note that the resolution to this was to simply not run the module builders if the running Java version was < 8. So using Java 8 features should generally be ok.

carymrobbinscommented, Aug 3, 2016

@LeanderK - No, actually HaskForce is built with Java 8. However, the external builder modules (jps-shared and jps-plugin) target Java 6. So only those modules are restricted to Java 6 features.

Read more comments on GitHub >

github_iconTop Results From Across the Web

haskell - IntelliJ Haskforce plugin - run error - Stack Overflow
Doing a build is successful, and creates a Pgm.exe in the ./dist/build/Pgm directory. Is there some additional setup or configuration needed?
Read more >
carymrobbins/intellij-haskforce - Gitter
When I tried to use your plugin all toolbars (project view, terminal, todo etc.) vanished and were no longer activateable under View->Tool\ Windows....
Read more >
Tweets with replies by HaskForce (@haskforce) / Twitter
An Intellij Plugin for the Eta programming language - GitHub ... Haskforce Plugin interferes with Java Builds · Issue #278 · carymrobbins/intellij-haskforce.
Read more >
HaskForce - IntelliJ IDEs Plugin - JetBrains Marketplace
If you encounter any issues, please submit them on our bug tracker. v0.3.46. IDEA 2021.1 Support (requires Java 11). v0.3.45. IDEA 2020.3 Support;...
Read more >
How to set up IntelliJ to build Haskell projects with Stack – iTecNote
I have the HaskForce plugin installed on IntelliJ. The Build, Execution, Deployment -> Compiler -> Haskell Compiler tab gives you a choice between...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found