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

Question: sdkman_rosetta 2_compatible doesn't work #1238

Open
polev-evgeny opened this issue Sep 15, 2023 · 5 comments
Open

Question: sdkman_rosetta 2_compatible doesn't work #1238

polev-evgeny opened this issue Sep 15, 2023 · 5 comments

Comments

@polev-evgeny
Copy link

Hi. I try to use x86_64 on my mac m1

I have installed sdkman
SDKMAN!
script: 5.18.2
native: 0.4.2

I have switched flag sdkman_rosetta 2_compatible=true, but I still get arm versions when I use command sdk list java.
I see it in header - Available Java Versions for macOS ARM 64bit
I tried to look for sdkman_rosetta 2_compatible flag usage, but I don't found it.
Could you help me ?

@marc0der
Copy link
Member

Hi @polev-evgeny, did you try opening a new terminal after making the change? The config file is sourced and all entries show up as environment variables. Can you confirm with echo that it is being set correctly In your shell?

@polev-evgeny
Copy link
Author

polev-evgeny commented Sep 15, 2023

@marc0der Yes, I did it. Also I tried to restart mac but I still got the same versions.
I made investigation and I found place where you detect what os should be used.
I changed variable platform manually and it works
I think that question can be closed but maybe you will make investigation because I think script contains some mistake to variables order

@kyuds
Copy link

kyuds commented May 30, 2024

@polev-evgeny could you also tell me where you found the place to detect the OS type being used? Thank you in advance!

@caelcs
Copy link

caelcs commented May 30, 2024

@kyuds you need to edit .sdkman/var/platform and change to darwinarm64

@marc0der
Copy link
Member

marc0der commented May 31, 2024

@polev-evgeny we haven't had any other reports of platform inference failing, and we have many Mac M1 users. I suspect this isn't a bug but rather a local setup issue on your machine. Otherwise, could you point me to where you think this bug is? If there really is an issue, it should be fixed right away 😅

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

No branches or pull requests

4 participants