tricktron / frege-gradle-plugin

Gradle plugin for compiling Frege projects
2 stars 1 forks source link

Arrow Functions do not work on macOS/Linux in `replFrege` Task #11

Closed tricktron closed 2 years ago

tricktron commented 2 years ago

Problem

Arrow Functions do not work on macOS/Linux in replFrege task. See https://github.com/gradle/gradle/issues/4982.

Unfortunately Gradle has only little support for feeding inputs to a task through a terminal. This is a known problem:

Update: It seems that in my case the problem may not be a combination of gradle and jline2: According to this issue https://github.com/com-lihaoyi/Ammonite/issues/276#issuecomment-272768398:

The problem stems from /dev/tty pointing to the current TTY, but JLine2 uses the real TTY rather than creating a pseudo-terminal. If you execute from a terminal, you're fine, but a background process will cause problems.

Since the replFrege task starts a new background process, I have the following options: