Giter VIP home page Giter VIP logo

Comments (17)

sdmoralesma avatar sdmoralesma commented on September 27, 2024 6

To report that it's still an issue:
$ sdk version
'/usr/local/opt/sdkman-cli/libexec/var/version': No such file or directory (os error 2)

from homebrew-tap.

ylluminate avatar ylluminate commented on September 27, 2024 4

Same problem here (I use bat vs cat + zsh):

$ sdk version
[bat error]: '/opt/homebrew/opt/sdkman-cli/libexec/var/version': No such file or directory (os error 2)

SDKMAN

Other commands such as install, list, etc. also all fail.

Prefer to use a package manager (eg Macports or Homebrew) to facilitate automatic updates for all pkgs vs recalling to update sdkman! by itself).

from homebrew-tap.

helpermethod avatar helpermethod commented on September 27, 2024 3

Hi @Katherine620,

I've put in some time to rework the tap, it now prints the version and takes the (platform-dependent) native-extensions into account. PR is already open :).

from homebrew-tap.

gerardo-cauich avatar gerardo-cauich commented on September 27, 2024 1

I also installed without Homebrew via https://sdkman.io/install and the sdk version command works fine.

from homebrew-tap.

helpermethod avatar helpermethod commented on September 27, 2024 1

I think the problem is related to the recent changes to the selfupdate mechanism. I'm already preparing a fix.

Thanks for reporting!

from homebrew-tap.

edosrecki avatar edosrecki commented on September 27, 2024 1

Same here, doesn't work when installing via Homebrew. Had to install using the official bash script.

from homebrew-tap.

davidfmatheson avatar davidfmatheson commented on September 27, 2024 1

Forked, merged the bugfix branch on my fork, tapped it and installed sdkman. sdk version works!

from homebrew-tap.

helpermethod avatar helpermethod commented on September 27, 2024

@marc0der has something changed with regards to the version (binary)?

from homebrew-tap.

hsahota93 avatar hsahota93 commented on September 27, 2024

I am also running into this issue. After running the commands in the README, I get the below error when running sdk version

% sdk version
cat: /opt/homebrew/opt/sdkman-cli/libexec/var/version: No such file or directory

SDKMAN

However, I seem to be able to run commands fine. I just ran sdk install java and it was successful.

Additionally when I run which sdk it spits out a script.

% which sdk
sdk () {
	COMMAND="$1"
	QUALIFIER="$2"
	case "$COMMAND" in
		(l) COMMAND="list"  ;;
		(ls) COMMAND="list"  ;;
		(v) COMMAND="version"  ;;
		(u) COMMAND="use"  ;;
		(i) COMMAND="install"  ;;
		(rm) COMMAND="uninstall"  ;;
		(c) COMMAND="current"  ;;
		(ug) COMMAND="upgrade"  ;;
		(d) COMMAND="default"  ;;
		(h) COMMAND="home"  ;;
		(e) COMMAND="env"  ;;
	esac
	if [[ "$COMMAND" != "update" ]]
	then
		___sdkman_check_candidates_cache "$SDKMAN_CANDIDATES_CACHE" || return 1
	fi
	SDKMAN_AVAILABLE="true"
	if [ -z "$SDKMAN_OFFLINE_MODE" ]
	then
		SDKMAN_OFFLINE_MODE="false"
	fi
	__sdkman_update_service_availability
	if [ -f "${SDKMAN_DIR}/etc/config" ]
	then
		source "${SDKMAN_DIR}/etc/config"
	fi
	if [[ -z "$COMMAND" ]]
	then
		___sdkman_help
		return 1
	fi
	CMD_FOUND=""
	if [[ "$COMMAND" != "selfupdate" || "$sdkman_selfupdate_feature" == "true" ]]
	then
		CMD_TARGET="${SDKMAN_DIR}/src/sdkman-${COMMAND}.sh"
		if [[ -f "$CMD_TARGET" ]]
		then
			CMD_FOUND="$CMD_TARGET"
		fi
	fi
	CMD_TARGET="${SDKMAN_DIR}/ext/sdkman-${COMMAND}.sh"
	if [[ -f "$CMD_TARGET" ]]
	then
		CMD_FOUND="$CMD_TARGET"
	fi
	if [[ -z "$CMD_FOUND" ]]
	then
		echo ""
		__sdkman_echo_red "Invalid command: $COMMAND"
		echo ""
		___sdkman_help
	fi
	if [[ -n "$QUALIFIER" && "$COMMAND" != "help" && "$COMMAND" != "offline" && "$COMMAND" != "flush" && "$COMMAND" != "selfupdate" && "$COMMAND" != "env" && "$COMMAND" != "completion" && "$COMMAND" != "edit" && "$COMMAND" != "home" && -z $(echo ${SDKMAN_CANDIDATES[@]} | grep -w "$QUALIFIER") ]]
	then
		echo ""
		__sdkman_echo_red "Stop! $QUALIFIER is not a valid candidate."
		return 1
	fi
	if [[ "$COMMAND" == "offline" && -n "$QUALIFIER" && -z $(echo "enable disable" | grep -w "$QUALIFIER") ]]
	then
		echo ""
		__sdkman_echo_red "Stop! $QUALIFIER is not a valid offline mode."
	fi
	local final_rc=0
	local native_command="${SDKMAN_DIR}/libexec/${COMMAND}"
	if [ -f "$native_command" ]
	then
		"$native_command" "${@:2}"
	elif [ -n "$CMD_FOUND" ]
	then
		local converted_command_name=$(echo "$COMMAND" | tr '-' '_')
		__sdk_"$converted_command_name" "${@:2}"
	fi
	final_rc=$?
	return $final_rc
}

from homebrew-tap.

Katherine620 avatar Katherine620 commented on September 27, 2024

To report that it's still an issue:
`sdk version
cat: /opt/homebrew/opt/sdkman-cli/libexec/var/version: No such file or directory

SDKMAN`

from homebrew-tap.

marc0der avatar marc0der commented on September 27, 2024

Hi @Katherine620, it looks like this tap is no longer maintained.

@helpermethod any thoughts? I think if we can't make it work, we should rather archive the project.

from homebrew-tap.

helpermethod avatar helpermethod commented on September 27, 2024

@marc0der Yes, we should probably archive the project for now. I have some ideas on how to make this work, but we can't use jreleaser for this anymore (as the formula would need to consume releases from two different projects).

from homebrew-tap.

davidfmatheson avatar davidfmatheson commented on September 27, 2024

Happy to test if there's a way to specify a branch on brew tap or brew install.

from homebrew-tap.

dobrKot avatar dobrKot commented on September 27, 2024

Version is still not printed. Tapped and installed it today:
oleksandryuvko@oylaptop ~ % sdk version
cat: /opt/homebrew/opt/sdkman-cli/libexec/var/version: No such file or directory

SDKMAN

UPD: Oh, the PR is still on OPEN stage, I see.

from homebrew-tap.

davidfmatheson avatar davidfmatheson commented on September 27, 2024

Version is still not printed. Tapped and installed it today: oleksandryuvko@oylaptop ~ % sdk version cat: /opt/homebrew/opt/sdkman-cli/libexec/var/version: No such file or directory

SDKMAN

UPD: Oh, the PR is still on OPEN stage, I see.

You can try my test fork with brew tap davidfmatheson/tap. That's just taking the PR and merging the branch on my fork.

from homebrew-tap.

dobrKot avatar dobrKot commented on September 27, 2024

Version is still not printed. Tapped and installed it today: oleksandryuvko@oylaptop ~ % sdk version cat: /opt/homebrew/opt/sdkman-cli/libexec/var/version: No such file or directory
SDKMAN
UPD: Oh, the PR is still on OPEN stage, I see.

You can try my test fork with brew tap davidfmatheson/tap. That's just taking the PR and merging the branch on my fork.

Cool, thanks 👍

from homebrew-tap.

helpermethod avatar helpermethod commented on September 27, 2024

The PR has been merged and should fix most problems.

from homebrew-tap.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.