halcyon / asdf-java

A Java plugin for asdf-vm.
MIT License
466 stars 86 forks source link

IntelliJ IDEA 2021.1 supports JDKs installed by asdf-java #145

Closed joschi closed 3 years ago

joschi commented 3 years ago

Not really an issue, bug report, or feature request.

I just wanted to leave this here. 😉

Tweet about asdf-java support in IntelliJ IDEA 2021.1 Tweet: https://twitter.com/_asdf_vm/status/1379854390840979457

myjohndoeside commented 2 years ago

Can somebody confirm that this still works in 2022.1.1 release? Mine doesn't display any of the JDKs installed by asdf, I still have to manually add them.

Or is there a specific asdf command that I need to run first?

joschi commented 2 years ago

@myjohndoeside See https://youtrack.jetbrains.com/issue/IDEA-292847 and https://github.com/JetBrains/intellij-community/pull/2031.

myjohndoeside commented 2 years ago

Thank you, I must've missed it when I first encountered this problem couple days ago.

I'm curious, when IntelliJ does detect the asdf JDK installation, does it automatically respect the global configuration set by asdf or do I still need to set it manually? I must say it is unlike what I've experienced in Node.js environment where this thing is pretty straightforward.

muescha commented 2 years ago

it should automatic detect the directory under ~/.asdf/installs but there was a regression in one commit

until the fix is published: see the workaround in the issue / pull request with setting the environment variable

myjohndoeside commented 2 years ago

@muescha Thanks for spotting the mistake and sending the fix so quickly!

Are you familiar with the release cycle of IntelliJ? Will we receive this patch in regular channel anytime soon?