Git Product home page Git Product logo

frepl-gui's People

Contributors

ingo60 avatar netzwerg avatar rahulsom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

frepl-gui's Issues

Build failure with Java JDK 8

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 JDK

$ 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)

OS

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

Wish list / things to consider

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:

  1. I find it disturbing that the text entry is above the output. Could we switch this so that it works more like a terminal, where the input line is always at the bottom? In addtion, echoed user input could be set apart visually, so that in the output window one sees better what is the answer to what.
  2. The :help window is apparently the good old Swing-Window. I am sure FX can do better and display HTML right away. (With links that don't send me to the browser ...)
  3. Despite we have multi line input, the following does not work:
    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.

  1. In the long run, the :browse command should be obsoleted by an "outline view", like we have it in the eclipse plugin, only for all imported modules. So that one can navigate from module to type defined in that module to constructor/or function defined in that type.
  2. I have a keyboard layout, where AltGr+Letter gives me that letter in a ๐•ฑ๐–—๐–†๐–๐–™๐–š๐–— script. This does work so far in all programs, eclipse, web-browser, terminal. It doesn't in the frepl-gui, where some funny asian glyphs are substituted instead. The same happens when I copy such a letter from another window (i.e. the character map). However, when I copy the letter from the output window of the frepl (where they are occasionally correctly printed with the :t command), it suddenly accepts them!

Unable to launch the repl

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?

Build Error

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

Could not resolve all dependencies for configuration ':classpath'.

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

can't run this

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?

FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project 'beanlib'. > Could not resolve all dependencies for configuration ':classpath'. > Could not resolve com.android.tools.build:gradle:1.0.0. Required by: :beanlib:unspecified > Could not GET 'https://repo1.maven.org/maven2/com/android/tools/build/gradle/1.0.0/gradle-1.0.0.pom'. > Connection to https://repo1.maven.org refused * 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: 26.025 secs

any solution for this one

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.