dierk / frepl-gui Goto Github PK
View Code? Open in Web Editor NEWGUI for the frege repl
License: Apache License 2.0
GUI for the frege repl
License: Apache License 2.0
When I attempt to compile the project (commit 964cd77) it fails to build as shown below:
$ ./gradlew clean run [66/1995]:clean
:compileJava UP-TO-DATE
:compileFregeE /home/emmanuel/projects/frepl-gui/src/main/frege/org/frege/Applic
ation.fr:64: unexpected
token "default" while trying to parse a qualified variable
name
E /home/emmanuel/projects/frepl-gui/src/main/frege/org/frege/Application.fr:64:
last
statement in a monadic do block must not be pat
<- ex
E /home/emmanuel/projects/frepl-gui/src/main/frege/org/frege/Application.fr:65:
syntax
error on '<-'
/home/emmanuel/projects/frepl-gui/src/main/frege/org/frege/Application.fr: build
failed because of syntax errors.
E /home/emmanuel/projects/frepl-gui/src/main/frege/org/frege/SketchBook.fr:1: ca
nnot import frege.Prelude
compiled for target 1.7 (without lambda support)
when the current target 1.8 has lambda support
Try to use compiler option -target 1.7
E /home/emmanuel/projects/frepl-gui/src/main/frege/org/frege/SketchBook.fr:1: ca
nnot import frege.prelude.PreludeBase
compiled for target 1.7 (without lambda support)
when the current target 1.8 has lambda support
Try to use compiler option -target 1.7
E /home/emmanuel/projects/frepl-gui/src/main/frege/org/frege/SketchBook.fr:1: ca
nnot import frege.prelude.PreludeList
compiled for target 1.7 (without lambda support)
when the current target 1.8 has lambda support
Try to use compiler option -target 1.7
E /home/emmanuel/projects/frepl-gui/src/main/frege/org/frege/SketchBook.fr:1: ca
nnot import frege.prelude.PreludeText
compiled for target 1.7 (without lambda support)
when the current target 1.8 has lambda support
Try to use compiler option -target 1.7
E /home/emmanuel/projects/frepl-gui/src/main/frege/org/frege/SketchBook.fr:1: ca
nnot import frege.prelude.PreludeMonad
compiled for target 1.7 (without lambda support)
when the current target 1.8 has lambda support
Try to use compiler option -target 1.7
E /home/emmanuel/projects/frepl-gui/src/main/frege/org/frege/SketchBook.fr:1: ca
nnot import frege.prelude.PreludeIO
compiled for target 1.7 (without lambda support)
when the current target 1.8 has lambda support
Try to use compiler option -target 1.7
E /home/emmanuel/projects/frepl-gui/src/main/frege/org/frege/SketchBook[20/1995]
nnot import frege.prelude.PreludeArrays
compiled for target 1.7 (without lambda support)
when the current target 1.8 has lambda support
Try to use compiler option -target 1.7
E /home/emmanuel/projects/frepl-gui/src/main/frege/org/frege/SketchBook.fr:1: ca
nnot import frege.java.util.Regex
compiled for target 1.7 (without lambda support)
when the current target 1.8 has lambda support
Try to use compiler option -target 1.7
E /home/emmanuel/projects/frepl-gui/src/main/frege/org/frege/SketchBook.fr:14: c
annot import fregefx.JavaFxAll
compiled for target 1.7 (without lambda support)
when the current target 1.8 has lambda support
Try to use compiler option -target 1.7
E /home/emmanuel/projects/frepl-gui/src/main/frege/org/frege/SketchBook.fr:16: c
annot import fregefx.JavaFxUtils
compiled for target 1.7 (without lambda support)
when the current target 1.8 has lambda support
Try to use compiler option -target 1.7
E /home/emmanuel/projects/frepl-gui/src/main/frege/org/frege/SketchBook.fr:18: c
annot import frege.control.Concurrent
compiled for target 1.7 (without lambda support)
when the current target 1.8 has lambda support
Try to use compiler option -target 1.7
org.frege.SketchBook: build failed because of compilation errors.
Build failed.
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileFrege'.
> Process 'command '/opt/oracle-jdk-bin-1.8.0.121/bin/java'' finished with non-z
ero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
BUILD FAILED
Total time: 6.029 secs
According to the instructions, it should compile with Java 8, but it seems to want Java 7. The Frege Gradle plugin was compiled to target Java 7 perhaps?
$ java -version
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
The OS is a Gentoo Linux (systemd-nspawn) container running on NixOS. That's why the uname info looks odd. NixOS doesn't have a JavaFX package yet, so I'm using Gentoo as a workaround; since it has the option of installing Oracle's JDK, which includes JavaFX.
uname -a
Linux gentoo 4.9.22 #1-NixOS SMP Wed Apr 12 10:41:42 UTC 2017 x86_64 Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz GenuineIntel GNU/Linux
I am aware of the fact that this is in a very early stage, nevertheless I think a can contribute something from the user perspective, so to speak:
foo a b = both even a b
where both f a b = f a && f b
It appears as if spaces before the where have been removed?
Though
:{
foo a b = both even a b
where both f a b = f a && f b
:}
still does.
Hi Dierk)
I've been trying to get Frege repl up and running but I get the following error
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.NoClassDefFoundError: javafx/scene/control/TextInputControl
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
at java.lang.Class.getMethod0(Class.java:3018)
at java.lang.Class.getMethod(Class.java:1784)
at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: javafx.scene.control.TextInputControl
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
I've pretty much tried all combinations of the ./frepl
command with java
but still, no progress.
309 java frepl
314 ./bin/frepl
316 java ./bin/frepl
317 javac ./bin/frepl
318 sudo ./bin/frepl
Am I doing something silly here?
I am getting an error while trying to build it with JDK8u31 on Windows. See the full log on gist. Is it something wrong with my installation? I'm trying to invoke the following simple commands:
git clone [email protected]:Dierk/frepl-gui.git
cd frepl-gui
./gradlew clean :client:run
I get the following error when trying to build:
$ gradle clean :client:run
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'frepl'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not find frege:frege-repl-core:1.1.1-SNAPSHOT.
Searched in the following locations:
file:/home/tomas/.m2/repository/frege/frege-repl-core/1.1.1-SNAPSHOT/maven-metadata.xml
file:/home/tomas/.m2/repository/frege/frege-repl-core/1.1.1-SNAPSHOT/frege-repl-core-1.1.1-SNAPSHOT.pom
file:/home/tomas/.m2/repository/frege/frege-repl-core/1.1.1-SNAPSHOT/frege-repl-core-1.1.1-SNAPSHOT.jar
https://oss.sonatype.org/content/groups/public/frege/frege-repl-core/1.1.1-SNAPSHOT/maven-metadata.xml
https://oss.sonatype.org/content/groups/public/frege/frege-repl-core/1.1.1-SNAPSHOT/frege-repl-core-1.1.1-SNAPSHOT.pom
https://oss.sonatype.org/content/groups/public/frege/frege-repl-core/1.1.1-SNAPSHOT/frege-repl-core-1.1.1-SNAPSHOT.jar
Required by:
org.frege:frepl:0.1.0-SNAPSHOT > org.frege-lang:frege-gradle-plugin:0.1-SNAPSHOT
> Could not find com.theoryinpractise.frege:frege:3.22.367-g2737683-g2737683.
Searched in the following locations:
file:/home/tomas/.m2/repository/com/theoryinpractise/frege/frege/3.22.367-g2737683-g2737683/frege-3.22.367-g2737683-g2737683.pom
file:/home/tomas/.m2/repository/com/theoryinpractise/frege/frege/3.22.367-g2737683-g2737683/frege-3.22.367-g2737683-g2737683.jar
https://oss.sonatype.org/content/groups/public/com/theoryinpractise/frege/frege/3.22.367-g2737683-g2737683/frege-3.22.367-g2737683-g2737683.pom
https://oss.sonatype.org/content/groups/public/com/theoryinpractise/frege/frege/3.22.367-g2737683-g2737683/frege-3.22.367-g2737683-g2737683.jar
Required by:
org.frege:frepl:0.1.0-SNAPSHOT > org.frege-lang:frege-gradle-plugin:0.1-SNAPSHOT
> Could not find com.theoryinpractise.frege:frege:3.22.367-g2737683-g2737683.
Searched in the following locations:
file:/home/tomas/.m2/repository/com/theoryinpractise/frege/frege/3.22.367-g2737683-g2737683/frege-3.22.367-g2737683-g2737683.pom
file:/home/tomas/.m2/repository/com/theoryinpractise/frege/frege/3.22.367-g2737683-g2737683/frege-3.22.367-g2737683-g2737683.jar
https://oss.sonatype.org/content/groups/public/com/theoryinpractise/frege/frege/3.22.367-g2737683-g2737683/frege-3.22.367-g2737683-g2737683.pom
https://oss.sonatype.org/content/groups/public/com/theoryinpractise/frege/frege/3.22.367-g2737683-g2737683/frege-3.22.367-g2737683-g2737683.jar
Required by:
org.frege:frepl:0.1.0-SNAPSHOT > org.frege-lang:frege-gradle-plugin:0.1-SNAPSHOT > com.github.mperry.frege:native-gen:0.1-SNAPSHOT
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
After having resolved all of the dependency and version number problems, it still does not run.
I guess I give up for today, I spent 4 hours to get that running, and the weekend is short.
ingo@obonto:~/dev/frepl-gui$ ./gradlew clean :client :run
FAILURE: Build failed with an exception.
* What went wrong:
Task 'client' not found in root project 'frepl'.
* Try:
Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Why, ohh why? Before it told me the build was ok, when I just did ./gradlew?
any solution for this one
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.