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

QuarkusDev terminal mode (:) is not working with gradle #35495

Open
JanWiemer opened this issue Aug 23, 2023 · 5 comments
Open

QuarkusDev terminal mode (:) is not working with gradle #35495

JanWiemer opened this issue Aug 23, 2023 · 5 comments
Labels
area/gradle Gradle env/windows Impacts Windows machines kind/bug Something isn't working

Comments

@JanWiemer
Copy link
Contributor

Describe the bug

Working with Quarkus 3.2.4 using gradle 8.2.1 the devMode seems not to support the terminal mode (started pressing ":").
I experienced this under windows but it also seems the case under Linux.
See: https://quarkusio.zulipchat.com/#narrow/stream/187030-users/topic/QuarkusDev.20terminal.20mode.20.28.3A.29.20with.20gradle

(I specially want to use the terminal mode to define (one character) aliasses to run certain test suites)

I created an example project by:

mvn io.quarkus.platform:quarkus-maven-plugin:3.2.4.Final:create     -DprojectGroupId=test     -DprojectArtifactId=test     -Dextensions="resteasy-reactive,resteasy-reactive-jackson"     -DbuildTool=gradle

Then I started the DevMode using gradle:

./gradlew quarkusDev

Pressing "h" (followed by Enter) lists the available commands
and the ":" even does not appear in the output.

Press ":" (followed by Enter) does not work either.

Expected behavior

Terminal mode should also be available using gradle.

Actual behavior

Terminal is not available using gradle.

How to Reproduce?

I created an example project by:

mvn io.quarkus.platform:quarkus-maven-plugin:3.2.4.Final:create     -DprojectGroupId=test     -DprojectArtifactId=test     -Dextensions="resteasy-reactive,resteasy-reactive-jackson"     -DbuildTool=gradle

Then I started the DevMode using gradle:

./gradlew quarkusDev

Output of uname -a or ver

No response

Output of java -version

openjdk version "17.0.6" 2023-01-17 OpenJDK Runtime Environment Temurin-17.0.6+10 (build 17.0.6+10) OpenJDK 64-Bit Server VM Temurin-17.0.6+10 (build 17.0.6+10, mixed mode, sharing)

GraalVM version (if different from Java)

No response

Quarkus version or git rev

2.3.4

Build tool (ie. output of mvnw --version or gradlew --version)

Gradle 8.2.1

Additional information

See Zulip-Chat: https://quarkusio.zulipchat.com/#narrow/stream/187030-users/topic/QuarkusDev.20terminal.20mode.20.28.3A.29.20with.20gradle

@JanWiemer JanWiemer added the kind/bug Something isn't working label Aug 23, 2023
@quarkus-bot quarkus-bot bot added area/gradle Gradle env/windows Impacts Windows machines labels Aug 23, 2023
@quarkus-bot
Copy link

quarkus-bot bot commented Aug 23, 2023

/cc @glefloch, @quarkusio/devtools

@quarkus-bot
Copy link

quarkus-bot bot commented Aug 23, 2023

You added a link to a Zulip discussion, please make sure the description of the issue is comprehensive and doesn't require accessing Zulip

This message is automatically generated by a bot.

@JanWiemer
Copy link
Contributor Author

Still not working with Quarkus 3.7.4

@codespearhead
Copy link

codespearhead commented Jun 4, 2024

I confirm that's reproducible in the latest Quarkus version (terminal just ignores the : command):

# quarkus --version
# 3.11.0
# gradle --version
# ------------------------------------------------------------
# Gradle 8.8
# ------------------------------------------------------------

# Build time:   2024-05-31 21:46:56 UTC
# Revision:     4bd1b3d3fc3f31db5a26eecb416a165b8cc36082

# Kotlin:       1.9.22
# Groovy:       3.0.21
# Ant:          Apache Ant(TM) version 1.10.13 compiled on January 4 2023
# JVM:          21.0.3 (Homebrew 21.0.3)
# OS:           Linux 5.15.146.1-microsoft-standard-WSL2 amd64
quarkus create --gradle
cd code-with-quarkus
./gradlew quarkusDev
# `quarkus dev` and `./gradlew quarkusDev --console=plain` yield the same result.

However, that might be expected behavior:

Note that if you run it this way the continuous testing experience will not be as nice, as gradle runs as a daemon
Quarkus can't draw the 'pretty' test output so falls back to just logging the output.

This is what I get when running the above command with flag --debug. No exceptions seem to have be thrown:

LOGS

2024-06-04T12:46:22.253-0400 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientInputForwarder] Forwarding input to daemon: ':\n'
2024-06-04T12:46:22.253-0400 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection] thread 26: dispatching class org.gradle.launcher.daemon.protocol.ForwardInput
2024-06-04T12:46:22.254-0400 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 718: received class org.gradle.launcher.daemon.protocol.ForwardInput
2024-06-04T12:46:22.254-0400 [DEBUG] [org.gradle.launcher.daemon.server.DefaultDaemonConnection] thread 718: Received IO message from client: org.gradle.launcher.daemon.protocol.ForwardInput@7f7635ed
2024-06-04T12:46:22.254-0400 [DEBUG] [org.gradle.launcher.daemon.server.exec.ForwardClientInput] Writing forwarded input on daemon's stdin.
2024-06-04T12:46:15.169-0400 [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger] 
2024-06-04T12:46:15.169-0400 [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger] > Task :quarkusDev
2024-06-04T12:46:23.038-0400 [QUIET] [system.out] 
2024-06-04T12:46:26.597-0400 [LIFECYCLE] [org.gradle.cache.internal.DefaultFileLockManager] 
2024-06-04T12:46:26.597-0400 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
2024-06-04T12:46:26.598-0400 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
2024-06-04T12:46:26.598-0400 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
2024-06-04T12:46:26.598-0400 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
2024-06-04T12:46:26.598-0400 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
2024-06-04T12:46:26.598-0400 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
2024-06-04T12:46:36.597-0400 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
2024-06-04T12:46:36.598-0400 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
2024-06-04T12:46:36.598-0400 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
2024-06-04T12:46:36.598-0400 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
2024-06-04T12:46:36.598-0400 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
2024-06-04T12:46:36.598-0400 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
2024-06-04T12:46:42.012-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker Thread 5: acquired lock on worker lease
2024-06-04T12:46:42.012-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker Thread 5: released lock on worker lease
2024-06-04T12:46:42.018-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 2: acquired lock on worker lease
2024-06-04T12:46:42.018-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 2: released lock on worker lease
2024-06-04T12:46:42.018-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 3: acquired lock on worker lease
2024-06-04T12:46:42.018-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 3: released lock on worker lease
2024-06-04T12:46:42.018-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] included builds: acquired lock on worker lease
2024-06-04T12:46:42.018-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] included builds: released lock on worker lease
2024-06-04T12:46:42.018-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 7: acquired lock on worker lease
2024-06-04T12:46:42.018-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 7: released lock on worker lease
2024-06-04T12:46:42.018-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 6: acquired lock on worker lease
2024-06-04T12:46:42.018-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 6: released lock on worker lease
2024-06-04T12:46:42.018-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 11: acquired lock on worker lease
2024-06-04T12:46:42.018-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 11: released lock on worker lease
2024-06-04T12:46:42.018-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 9: acquired lock on worker lease
2024-06-04T12:46:42.018-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 9: released lock on worker lease
2024-06-04T12:46:42.018-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 10: acquired lock on worker lease
2024-06-04T12:46:42.018-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 10: released lock on worker lease
2024-06-04T12:46:42.018-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 8: acquired lock on worker lease
2024-06-04T12:46:42.018-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 8: released lock on worker lease
2024-06-04T12:46:42.018-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 4: acquired lock on worker lease
2024-06-04T12:46:42.018-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 4: released lock on worker lease
2024-06-04T12:46:42.018-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 5: acquired lock on worker lease
2024-06-04T12:46:42.018-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 5: released lock on worker lease
2024-06-04T12:46:46.597-0400 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
2024-06-04T12:46:46.597-0400 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
2024-06-04T12:46:46.598-0400 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
2024-06-04T12:46:46.598-0400 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
2024-06-04T12:46:46.598-0400 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
2024-06-04T12:46:46.598-0400 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
2024-06-04T12:46:56.598-0400 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
2024-06-04T12:46:56.598-0400 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
2024-06-04T12:46:56.598-0400 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
2024-06-04T12:46:56.598-0400 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
2024-06-04T12:46:56.598-0400 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
2024-06-04T12:46:56.598-0400 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
2024-06-04T12:47:06.597-0400 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
2024-06-04T12:47:06.598-0400 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
2024-06-04T12:47:06.598-0400 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
2024-06-04T12:47:06.598-0400 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
2024-06-04T12:47:06.598-0400 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
2024-06-04T12:47:06.598-0400 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
2024-06-04T12:47:12.018-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker Thread 5: acquired lock on worker lease
2024-06-04T12:47:12.018-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker Thread 5: released lock on worker lease
2024-06-04T12:47:12.024-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 2: acquired lock on worker lease
2024-06-04T12:47:12.024-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 2: released lock on worker lease
2024-06-04T12:47:12.024-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 5: acquired lock on worker lease
2024-06-04T12:47:12.024-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 5: released lock on worker lease
2024-06-04T12:47:12.024-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 4: acquired lock on worker lease
2024-06-04T12:47:12.024-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 4: released lock on worker lease
2024-06-04T12:47:12.024-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 8: acquired lock on worker lease
2024-06-04T12:47:12.024-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 8: released lock on worker lease
2024-06-04T12:47:12.024-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 10: acquired lock on worker lease
2024-06-04T12:47:12.024-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 10: released lock on worker lease
2024-06-04T12:47:12.024-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 9: acquired lock on worker lease
2024-06-04T12:47:12.024-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 9: released lock on worker lease
2024-06-04T12:47:12.025-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 11: acquired lock on worker lease
2024-06-04T12:47:12.025-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 11: released lock on worker lease
2024-06-04T12:47:12.025-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 6: acquired lock on worker lease
2024-06-04T12:47:12.025-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 6: released lock on worker lease
2024-06-04T12:47:12.025-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 7: acquired lock on worker lease
2024-06-04T12:47:12.025-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 7: released lock on worker lease
2024-06-04T12:47:12.025-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] included builds: acquired lock on worker lease
2024-06-04T12:47:12.025-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] included builds: released lock on worker lease
2024-06-04T12:47:12.025-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 3: acquired lock on worker lease
2024-06-04T12:47:12.025-0400 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker Thread 3: released lock on worker lease

@codespearhead
Copy link

codespearhead commented Jun 9, 2024

This might shed light on a fix for Gradle: apache/maven#1486 .

FYI: maven-mvnd is a maven deamon expected to land on Maven 4, which beta version was released two weeks ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/gradle Gradle env/windows Impacts Windows machines kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants