Closed ForNeVeR closed 9 years ago
@ForNeVeR I tried this last night and got the same problem. I will have another look tonight and see what I can do.
@mperry, I'm sorry but how is it going? Maybe I can help somehow?
@ForNeVeR I could only get it working on a Linux VM, not a Windows machine. I suspect the non ASCII characters in the class names generated mean Windows can't find the right file as it includes these in the class names.
Aha, that's interesting. Will investigate.
(I'm sorry, I've really forgotten to mention that I'm trying Frege on Windows too)
I've succeed with executing the project manually as
java -classpath '.\frege-java\build\classes\main;.\java-frege\build\classes\main;c:\Users\ForNeVeR\.gradle\caches\modules-2\files-2.1\com.theoryinpractise.frege\frege\3.22.367-g2737683\9cf61284838ff9def8384d63a0a844f1a6c78d56\frege-3.22.367-g2737683.jar' com.github.mperry.frege.Facade
Now all we need is to understand what it does wrong when executing from gradle.
Aha! I got it. gradlew run
executes java with classpath including JAR frege-java.jar
, not raw class directory. And that JAR have class file names such as com\github\mperry\frege\External$_.class
or External$_$_main_92257c7e.class
(and there should be various unicode characters instead of _
). That's frege-gradle-plugin
issue, I'll escalate it there.
I've tried the following:
./gradlew clean install
.gradle-frege-example
from this repository.build.gradle
so that it usesclasspath 'org.frege-lang:frege-gradle-plugin:0.2-SNAPSHOT'
instead of0.1
../gradlew clean run
.As far as I can see the project was built succesfully but it cannot execute:
What is the problem? What can I do to fix that? I have no previous experience with Frege but it's interesting project and I decided to try it with gradle plugin at first.