halcyon / asdf-java

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

`asdf list all java 11` does not work #212

Open mrmeszaros opened 1 year ago

mrmeszaros commented 1 year ago

The official documentation says listing all versions should work:

asdf list all <name> <version>
# asdf list all erlang 17

However, this plugin says:

asdf list all java 11
# No compatible versions available (java 11)

If I change the version to zulu for example, then it properly lists all available versions. This also works if I only provide a prefix, like zu - it matches all zulu versions.

I would like to be able to use a version number to for listing / filtering.

Other filters would be nice2have as well - like filtering for architecture (x86_64, aarch64, etc.) .

AshutoshSajan commented 1 year ago

i am facing the same issue

ghost commented 1 year ago

Agreed, but this may be down to weird java prefixes. For now, you can do asdf list all java | grep -- '-11.', for example.

joschi commented 10 months ago

You can search without grep:

asdf list all java '.*-11'

I would like to be able to use a version number to for listing / filtering.

FWIW, the asdf-java plugin is a bit special since it's supporting multiple vendors, so the versions are actually similar to <vendor>-<version> and not just <version>.

In other words, asdf-vm itself would need to support this kind of setup (single plugin, multiple vendors and versions) and not just asdf-java.