sdkman / sdkman-cli

The SDKMAN! Command Line Interface
https://sdkman.io
Apache License 2.0
6.14k stars 631 forks source link

Bug: SDK list <candidate> is not working on version 5.16.1 #1177

Closed nabeel-ahmed-sp closed 1 year ago

nabeel-ahmed-sp commented 1 year ago

Bug report SDKMAN is buggy on version 5.16.1

To reproduce sdk list java is returning Stop! java is not a valid candidate. after upgrading sdkman to 5.16.1

System info MacOS M1 Pro

helpermethod commented 1 year ago

Hi @nabeel-ahmed-sp,

just performed the upgrade, works fine for me. What happens when you just type sdk list?

Limess commented 1 year ago

We're seeing similar issues:

sdk list returns as expected

But:

$ sdk list java

Stop! java is not a valid candidate.

Additionally, none of the tools are available on my PATH (lein, java).

nabeel-ahmed-sp commented 1 year ago

Yes as mentioned by @Limess I am facing exact same issue at my end.

Limess commented 1 year ago

Running sdk offline enable restores functionality with pre-installed versions as a temporary workaround.

nabeel-ahmed-sp commented 1 year ago
image

Running sdk offline enable restores functionality with pre-installed versions as a temporary workaround.

I tried this. It didn't work for me.

helpermethod commented 1 year ago

How did you install SDKMAN!? Via Homebrew or curl?

marc0der commented 1 year ago

Hi @nabeel-ahmed-sp, could you try running sdk update, then opening a new terminal? I think this should solve your issue.

marc0der commented 1 year ago

@nabeel-ahmed-sp did this work for you? If so please feel free to close the issue.

nabeel-ahmed-sp commented 1 year ago

Yes this solved my issue. Thanks alot!