FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix: Added guard for jdk auto download by codeholic-0 · Pull Request #362 · georgewfraser/java-language-server · GitHub

Fix: Added guard for jdk auto download - #362

Open
codeholic-0 wants to merge 1 commit into
georgewfraser:masterfrom
codeholic-0:fix-download-jdk-before-build-linux
Open

Fix: Added guard for jdk auto download#362
codeholic-0 wants to merge 1 commit into
georgewfraser:masterfrom
codeholic-0:fix-download-jdk-before-build-linux

Conversation

Copy link
Copy Markdown
Contributor

link_linux: download JDK automatically if missing

Trying to MasonInstall java-language-server on Neovim gave the error:

         ◍ java-language-server
      ▼ Displaying full log
        Cloning git repository "https://github.com/georgewfraser/java-language-server.git"…
        Cloning into '.'...
        From https://github.com/georgewfraser/java-language-server
         * tag               v0.2.39    -> FETCH_HEAD
        + ./scripts/link_linux.sh
        Error: This JDK does not support linking from the current run-time image
        spawn: bash failed with exit code 2 and signal 0. Cloning into '.'...
        From https://github.com/georgewfraser/java-language-server
         * tag               v0.2.39    -> FETCH_HEAD
        + ./scripts/link_linux.sh

Because Mason is running ./script/link_linux.sh which doesn't auto download the jdk before linking and crahses
to fix added :

if [ ! -d "$JAVA_HOME" ]; then
    ./scripts/download_linux_jdk.sh
fi

Added a guard that downloads the jdk automatically if the target
directory doesn't exist, making the script self-contained.

…39 needs an update), that directly runs link_linux.sh and fails when no jdk is present
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL