[BUG]: Switch doesn't seem to work on cygwin

Aperta
#335 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
bash, java

Direzione di ricerca

Reproduce the failure using the vfox use java@22 and vfox activate bash entry points under Cygwin, then compare the path-handling behavior with issue 305. Trace how JAVA_HOME is exported and verify that the completed change lets Cygwin resolve the Java directory and run the requested Java version.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

need-more-info

Version vfox version 0.5.4

OS Windows

Describe the bug

Running vfox use java@22 does not change JAVA version

$ vfox use java@22
Now using [email protected]+8-tem.
$ set | grep -i JAVA_HOME
JAVA_HOME='C:\Users\koppor\.version-fox\temp\1722722400-4468\java'
$ ls -la C:\Users\koppor\.version-fox\temp\1722722400-4468\java
ls: cannot access 'C:Userskoppor.version-foxtemp1722722400-4468java': No such file or directory

This java dir seems to be hard-coded:

$ vfox activate bash

export JAVA_HOME=$'C:\\Users\\koppor\\.version-fox\\temp\\1722722400-4468\\java';export __VFOX_SHELL=$'bash

Screenshots[optional]

koppor@DESKTOP-KAK953S MINGW64 /c/git-repositories/jabref (ai-pr-1)
$ vfox use java@22
Now using [email protected]+8-tem.

koppor@DESKTOP-KAK953S MINGW64 /c/git-repositories/jabref (ai-pr-1)
$ ./gradlew ru

> Configure project :
Project : => 'org.jabref' Java module

FAILURE: Build failed with an exception.

* What went wrong:
java.lang.UnsupportedClassVersionError: org/beryx/jlink/JlinkPlugin has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
> org/beryx/jlink/JlinkPlugin has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 1s
2 actionable tasks: 2 up-to-date

This refs https://github.com/version-fox/vfox/issues/305

Lingua principale
Go
Stelle
4k
Fork
167
Merge medio
2g 10h
PR unite (30g)
8

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di version-fox/vfox

Tutte le issue di version-fox/vfox

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.