carymrobbins/intellij-haskforce

Unable to build: /packages cannot be represented as URI

Opened this issue · 1 comments

Trying to build the plugin on Windows using OpenJDK 17.0.1 and sbt 1.6.2.

Using Java 12 does not work due to the following error. What version is supported?

Caused by: com.intellij.diagnostic.PluginException: Cannot load class com.haskforce.HaskellFileTypeFactory (
error: com/haskforce/HaskellFileTypeFactory has been compiled by a more recent version of the Java Runtime (class file version 56.0), this version of the Java Runtime only recognizes class file versions up to 55.0,
classLoader=PluginClassLoader(plugin=PluginDescriptor(name=HaskForce, id=com.haskforce, descriptorPath=plugin.xml, path=~\Repos\intellij-haskforce\build\idea-sandbox\plugins\HaskForce, version=0.3.47-SNAPSHOT-873f26c5-dirty, package=null), packagePrefix=null, instanceId=40, state=active)


Additionally I had to comment JFlex:

//clean.dependsOn cleanJFlex

//compileJava.dependsOn runJFlex

However I was able to run the tool directly from the git bash/msys commandline.

Execution failed for task ':runJFlex'.
A problem occurred starting process 'command './tools/run-jflex''

CreateProcess error=193, %1 is not a valid Win32 application

I guess we may need to dispatch on the OS and handle it differently for Windows. I assume each of these would need to be updated -

task validateDic(type: Exec) {
    commandLine './tools/validate-dic'
}

task runJFlex(type: Exec) {
    commandLine './tools/run-jflex'
}

task cleanJFlex(type: Exec) {
    commandLine './tools/run-jflex', 'clean'
}