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

Document Gradle/IntelliJ configuration issues #107

Open
edwardalee opened this issue Nov 1, 2022 · 8 comments
Open

Document Gradle/IntelliJ configuration issues #107

edwardalee opened this issue Nov 1, 2022 · 8 comments
Labels
documentation Improvements or additions to documentation

Comments

@edwardalee
Copy link
Contributor

edwardalee commented Nov 1, 2022

IntelliJ reports the following:

Found invalid Gradle JVM configuration
JDK 17.0.3 isn't compatible with Gradle 7.5.1.
Are we now requiring some other version of Java?

image

Attempting to build using the runLfc task gives this:

image

@cmnrd
Copy link
Contributor

cmnrd commented Nov 1, 2022

This is a strange error. Gradle 7.5.1 is compatible to Java 17 and it works fine on my machine. Also Marcus set up Intellij recently without problems.

Does it work if you manually run ./gradlew runLfc --args test/C/src/Minimal.lf on the command line? Which version of IntelliJ do you use?

@edwardalee
Copy link
Contributor Author

Command-line gradle build works fine. Version of IntelliJ:

IntelliJ IDEA 2021.2.3 (Community Edition)
Build #IC-212.5457.46, built on October 12, 2021
Runtime version: 11.0.12+7-b1504.40 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.6
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 16
Non-Bundled Plugins: org.jetbrains.kotlin (212-1.7.10-release-333-IJ5457.46)
Kotlin: 212-1.7.10-release-333-IJ5457.46

@cmnrd
Copy link
Contributor

cmnrd commented Nov 1, 2022

Ok, I think your IntelliJ is too old. According to this stackoverflow answer IntelliJ 2021.2.3 does not support Graddle 7.3 or newer.

@lhstrh lhstrh added the invalid This doesn't seem right label Nov 1, 2022
@lhstrh lhstrh closed this as completed Nov 1, 2022
@edwardalee edwardalee reopened this Nov 1, 2022
@edwardalee
Copy link
Contributor Author

Sorry, I updated IntelliJ to 2022.2.3 (Oct. 4, 2022) and the build still fails:

image

@edwardalee edwardalee removed the invalid This doesn't seem right label Nov 1, 2022
@lhstrh
Copy link
Member

lhstrh commented Nov 1, 2022

Which version of Java is IntelliJ using?

BTW, I marked this as invalid because the title is wrong...

@lhstrh
Copy link
Member

lhstrh commented Nov 1, 2022

@lhstrh lhstrh changed the title Gradle incompatible with Java 17 Gradle build problems in IntelliJ Nov 1, 2022
@axmmisaka
Copy link
Collaborator

^, iirc one needs to pick both normal JDK and Gradle JVM in intellij settings, and it's normal that messes up by using automatically detected ones

@lhstrh
Copy link
Member

lhstrh commented Nov 2, 2022

Looks like this has been resolved. We should update the website with a mention of this.

@lhstrh lhstrh transferred this issue from lf-lang/lingua-franca Nov 2, 2022
@lhstrh lhstrh changed the title Gradle build problems in IntelliJ Document Gradle/IntelliJ configuration issues Nov 2, 2022
@axmmisaka axmmisaka added the documentation Improvements or additions to documentation label May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

4 participants