Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zsh updated macs fail to link java with newest update #3294

Closed
andrewtheiss opened this issue Sep 13, 2023 · 2 comments
Closed

Zsh updated macs fail to link java with newest update #3294

andrewtheiss opened this issue Sep 13, 2023 · 2 comments

Comments

@andrewtheiss
Copy link

WHY IS THE ABOVE ALL CAPS? I FEEL LIKE YOU'RE YELLING

  • My class is using this plugin and a recent update to zsh properly links to JAVA_HOME via the new shell. Once updating to the recent version of the plugin, java (and all sub classes i.e. java.lang, java.lang.Object... etc) cannot be properly linked.

  • Solution: revert to the previous version of this code

  • More permanent solution:
    Manually define JAVA HOME links in a resource file such as:

file contents of ~/.zshrc
export JAVA_HOME=$(/src/libexec/java_home)
export PATH=$JAVA_HOME/bin:$PATH

Please check if this was compiled on a computer/mac which changes linking to JAVA_HOME or still using the now deprecated shell (not zsh) on mac.

Hope it's reproducible!

[provide a description of the issue]

Environment
  • Operating System:
  • JDK version:
  • Visual Studio Code version:
  • Java extension version:
Steps To Reproduce
  1. [step 1]
  2. [step 2]

[Please attach a sample project reproducing the error]
Please attach logs

Current Result
Expected Result
Additional Informations
@fbricon
Copy link
Collaborator

fbricon commented Sep 13, 2023

see if this helps: #3287 (comment), might be the same issue

@fbricon
Copy link
Collaborator

fbricon commented Sep 14, 2023

Closing as duplicate of #3287. Please update to 1.22.1

@fbricon fbricon closed this as not planned Won't fix, can't repro, duplicate, stale Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants