Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Interactive Shell using Gradle 6.3 and JDK 14 #1

Closed
alex-aeiou opened this issue Apr 8, 2020 · 4 comments
Closed

No Interactive Shell using Gradle 6.3 and JDK 14 #1

alex-aeiou opened this issue Apr 8, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@alex-aeiou
Copy link

Added the plugin in the following version:

id "com.github.mrsarm.jshell.plugin" version "1.0.0-RC1"

Running the command:

./gradlew --no-daemon build -x test --console plain jshell

Leads to it successfully building and starting JShell but i doesn't grant me interactive input and stops as "BUILD SUCCESSFUL" immediately after:

To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/6.3/userguide/gradle_daemon.html.
Daemon will be stopped at the end of the build stopping after processing

> Configure project :
:jshell task :classes not found, be sure to compile the project first

> Task :compileJava UP-TO-DATE
> Task :processResources UP-TO-DATE
> Task :classes UP-TO-DATE
> Task :bootJar UP-TO-DATE
> Task :jar SKIPPED
> Task :assemble UP-TO-DATE
> Task :check
> Task :build

> Task :jshell
|  Welcome to JShell -- Version 14
|  For an introduction type: /help intro

BUILD SUCCESSFUL in 11s
4 actionable tasks: 1 executed, 3 up-to-date

Some infos about my system:

➜  service java --version
openjdk 14 2020-03-17
OpenJDK Runtime Environment (build 14+36-1461)
OpenJDK 64-Bit Server VM (build 14+36-1461, mixed mode, sharing)
➜  service ✗ ./gradlew --version

------------------------------------------------------------
Gradle 6.3
------------------------------------------------------------

Build time:   2020-03-24 19:52:07 UTC
Revision:     bacd40b727b0130eeac8855ae3f9fd9a0b207c60

Kotlin:       1.3.70
Groovy:       2.5.10
Ant:          Apache Ant(TM) version 1.10.7 compiled on September 1 2019
JVM:          14 (Oracle Corporation 14+36-1461)
OS:           Mac OS X 10.15.3 x86_64
@mrsarm
Copy link
Owner

mrsarm commented Apr 8, 2020

That is strange, anyway, I did not test the plugin yet with JDK 14, although I don't think is related with that, but I'm going to refactor part of the code this week to put the autocomplete of the jshell console to work again, and that refactor will make strong changes on how the console startups, so after that I'll let you know.

@mrsarm mrsarm added the bug Something isn't working label Apr 8, 2020
@mrsarm
Copy link
Owner

mrsarm commented Jun 5, 2020

@alex-aeiou I have released the 1.0.0 version with some refactors that may solve your issue, could you test it again?

@arcesino
Copy link
Contributor

arcesino commented Jul 3, 2021

This is also happening to me using Gradle 7.1 & JDK 11 (both oracle-jdk & open-jdk)

@mrsarm
Copy link
Owner

mrsarm commented Jul 15, 2021

Patch released today, version 1.1.0.

@mrsarm mrsarm closed this as completed Jul 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants