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

3.8.4: quarkus.analytics.disabled ignored + command line answer not processed #41387

Open
rupert-jung-mw opened this issue Jun 24, 2024 · 14 comments
Labels
area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins triage/consider-closing Bugs that are considered to be closed because too old. Using the label to do a mark and sweep proces

Comments

@rupert-jung-mw
Copy link

rupert-jung-mw commented Jun 24, 2024

Seems like quarkus.analytics.disabled just does nothing.

quarkus.analytics.disabled is set to false (both in application.yaml and application-dev-yaml):

image

Config value itself is correctly set:
image

... but ignored by Quarkus:
image

Even trying to answer the question via the console is not working, the input is not scanned:

image

Originally posted by @rupert-jung-mw in #34626 (comment)

@rupert-jung-mw rupert-jung-mw changed the title 3.8.4: quarkus.analytics.disabled ignored? 3.8.4: quarkus.analytics.disabled ignored + command line answer ignored Jun 24, 2024
@rupert-jung-mw rupert-jung-mw changed the title 3.8.4: quarkus.analytics.disabled ignored + command line answer ignored 3.8.4: quarkus.analytics.disabled ignored + command line answer not processed Jun 24, 2024
@maxandersen
Copy link
Member

as documented on https://quarkus.io/usage/ it needs to be system property.

It is not a quarkus application property as its needed before quarkus is in any way involved.

@rupert-jung-mw
Copy link
Author

Thank you @maxandersen ,

this has indeed been a missunderstanding on my side, thank you. Setting an env VAR named 'quarkus.analytics.disabled' with value 'true' made the message and delay disappear. But why was the 'n' not recognized in the command line (I am using IntelliJ with default settings?)

@maxandersen
Copy link
Member

on the command line not honoring are you typing 'n' and press enter before it continues?

@rupert-jung-mw
Copy link
Author

rupert-jung-mw commented Jun 24, 2024

yes, see screenshot, I pressed ENTER (see new line after 'n'):

image

Tried it multiple times, also with "No" like mentioned here: https://quarkus.io/usage/

@maxandersen
Copy link
Member

ok, probably question for @brunobat - are you simply opening the main class and run it using intellij via Run or some other mechanism?

@rupert-jung-mw
Copy link
Author

Hello @maxandersen,

yes, I am just using the default main method automatically found by IntelliJ IDEA:

image

@brunobat
Copy link
Contributor

Hello @maxandersen,

yes, I am just using the default main method automatically found by IntelliJ IDEA:

I don't believe that execution method accepts any input.
Please execute on the command line the dev mode with mvn quarkus:dev.

@rupert-jung-mw
Copy link
Author

Hi @brunobat,

I am using gradle, so I can not use any mvn functionality. But the execution method can in fact be configured in IntelliJ:
image

@brunobat
Copy link
Contributor

@rupert-jung-mw the equivalent command to run Quarkus in dev mode with gradle is:
./gradlew --console=plain quarkusDev
For reference: https://quarkus.io/guides/gradle-tooling#dev-mode

@rupert-jung-mw
Copy link
Author

rupert-jung-mw commented Jun 25, 2024

@brunobat Thank you. So does this mean that Quarkus usage statistics command line scanning is just not expected to run via the default run configuration in IntelliJ?

I worked around my using your suggested start mode with gradle + quarkusDev instead. Also used the environment variable to work around the problem with the usage statistics startup delay. So long it worked. :)

@brunobat
Copy link
Contributor

Yes, @rupert-jung-mw and that question will only happen once per user... No need to answer yes or no all the time.
Please see the details here: https://quarkus.io/usage/
Can we close this issue?

@geoand geoand added area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins triage/consider-closing Bugs that are considered to be closed because too old. Using the label to do a mark and sweep proces and removed triage/needs-triage labels Jun 25, 2024
@rupert-jung-mw
Copy link
Author

Hi @brunobat,

problem is, that it seems not possible to answer the question via the command line when just starting the main class because the command line scanning seems not working in the console (see screenshot).

@brunobat
Copy link
Contributor

What console are you using? What operating system and version?

@rupert-jung-mw
Copy link
Author

rupert-jung-mw commented Jun 27, 2024

It's just the built-in console output window of IntelliJ IDEA 2024.1.2 . Windows 11x64 23H2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins triage/consider-closing Bugs that are considered to be closed because too old. Using the label to do a mark and sweep proces
Projects
None yet
Development

No branches or pull requests

4 participants