version-fox / version-fox/vfox

[BUG]: version of plugin inconsistency

Open
#390 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Go
Stars
4k
Forks
157
Avg merge
1h 3m
Merged PRs (30d)
5

Description

Version
0.6.0
OS
Windows

Describe the bug
search for java

PS C:\Users\operator>  vfox info java
Plugin Info:
Name     -> java
Version  -> 0.4.3
Homepage -> https://github.com/version-fox/vfox-java
Desc     ->
Support for multiple JDK distributions, such as: Oracle, Graalvm, Eclipse & more.
Legacy Files -> [.sdkmanrc]
Notes:
======
   Listed below are the supported distributions and their short names.
    - Oracle:     x.y.z-oracle
    - OpenJDK:    x.y.z-open
    - GraalVM:    x.y.z-graal
    - Temurin:    x.y.z-tem
    - Zulu:       x.y.z-zulu
   Others please see: https://github.com/version-fox/vfox-java
PS C:\Users\operator> vfox ls java
no available version
PS C:\Users\operator> vfox search java
Please select a version of java to install [type to search]:
   v23+37
   v22.0.2+9
->  v21.0.2+13 (LTS)
   v20.0.2+9
   v19.0.2+7
   v18.0.2.1+1
   v17.0.2+8 (LTS)
   v16.0.2+7
   v15.0.2+7
   v14.0.2+12
   v13.0.2+8
   v12.0.2+10
   v11.0.16+8 (LTS)
   v8.0.342+7 (LTS)
Press ↑/↓ to select and press ←/→ to page, and press Enter to confirm
Preinstalling java@21.0.2+13...

There is no way to install the desired graal version, or at least it is not described in the help message.

Another problem is to uninstall the version!

PS C:\Users\operator> vfox ls java
-> v21.0.2+13
PS C:\Users\operator> vfox un java@v21.0.2+13
java@v21.0.2+13 is not installed
PS C:\Users\operator> vfox un java@21.0.2+13
Uninstalled java@21.0.2+13 successfully!

The v symbol in that case is redundant

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the reported commands on Windows, including vfox info, vfox search, vfox ls, and both vfox un forms. Trace how plugin version strings and distribution names are parsed; done means the requested Graal version can be selected or is documented, and uninstall accepts the version format shown by vfox ls.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.