-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
gradle idea incorrectly fails with JAVA_HOME not set #31399
Comments
Pinging @elastic/es-core-infra |
just saw this in the Gradle dameon log:
Which comes from gradle/gradle#2159 |
I don't think that there's much we can do about that. |
@rjernst, why are we requiring the env var in the first place? Is it because we run stuff as part of the tests that require it ? Would it be better to pass it explicitly in these cases ? |
There are a couple of reasons we require JAVA_HOME:
|
for ElasticSearch 6.8.4 |
user @doubleuhy notes that:
but
I have seen this in the past, including on SO. I think what happens is that importing the project from idea without running
./gradlew idea
first creates a daemon that is not restarted when running./gradlew idea
from the command line with the env var set despite there being a different env.Running
./gradlew --stop
makes the problem go away.The text was updated successfully, but these errors were encountered: