-
Notifications
You must be signed in to change notification settings - Fork 118
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
macOS Sonoma: OTP 26 downloading but not actually installing #289
Comments
Yeah I'm seeing the same thing - with only one of my projects though. I have a project using 26.1.2 that's totally fine, but now I'm getting this error with a different project using 26.0.2. Also using macOS Sonoma
I'm not seeing the same error on my other machine running the exact same project, so I'm not sure what's going on... |
I found the cause of the problem as well as a decent-enough workaround. Listing all directories/files that match "erl" or "otp" in the asdf directory: ❯ tree ~/.asdf -L 5 --matchdirs --ignore-case -P 'erl|otp' --prune -f
/Users/noah/.asdf
├── /Users/noah/.asdf/installs
│ └── /Users/noah/.asdf/installs/erlang
│ ├── /Users/noah/.asdf/installs/erlang/25.1.1
│ │ └── /Users/noah/.asdf/installs/erlang/25.1.1/bin
│ │ └── /Users/noah/.asdf/installs/erlang/25.1.1/bin/erl
│ └── /Users/noah/.asdf/installs/erlang/26.1
│ └── /Users/noah/.asdf/installs/erlang/26.1/bin
│ └── /Users/noah/.asdf/installs/erlang/26.1/bin/erl
└── /Users/noah/.asdf/shims
└── /Users/noah/.asdf/shims/erl
8 directories, 3 files The biggest things to note:
If I run the following, everything works as expected: ❯ asdf global erlang 26.1
❯ asdf local erlang 26.1
❯ erl
Erlang/OTP 26 [erts-14.1] [source] [64-bit] [smp:10:10] [ds:10:10:10] [async-threads:1] [jit]
Eshell V14.1 (press Ctrl+G to abort, type help(). for help)
1> After this, trying to install ❯ asdf install erlang 26.1.1
Install version: 26.1.1
Install path: /Users/noah/.asdf/installs/erlang/26.1.1
asdf_26.1.1 is not a kerl-managed Erlang/OTP installation
The asdf_26.1.1 build has been deleted
Extracting source code
Building Erlang/OTP 26.1.1 (asdf_26.1.1), please wait...
Building docs...
Erlang/OTP 26.1.1 (asdf_26.1.1) has been successfully built
ERROR: Installation (asdf_26.1.1) already registered for this location (/Users/noah/.asdf/installs/erlang/26.1.1)
❯ ls -al ~/.asdf/installs/erlang
25.1.1
26.1 I'm not sure if this is specific to the 26.1.x family of Erlang/OTP versions or not. |
I'm thinking this might be a kerl issue. For now I'll close this issue, open an issue there, and possible re-open this one later. EDIT: Just kidding, trying to replicate this with vanilla |
I'm thinking this is related to kerl/kerl#236 actually, which has been mentioned here before: #143 I have threse files: # ~/.asdf/plugins/erlang/kerl-home/otp_installations
asdf_25.3 /Users/noah/.asdf/installs/erlang/25.3
asdf_22.3.4.26 /Users/noah/.asdf/installs/erlang/22.3.4.26
asdf_25.2.2 /Users/noah/.asdf/installs/erlang/25.2.2
asdf_25.3.2 /Users/noah/.asdf/installs/erlang/25.3.2
asdf_25.2.1 /Users/noah/.asdf/installs/erlang/25.2.1
asdf_26.0.2 /Users/noah/.asdf/installs/erlang/26.0.2
asdf_26.1.1 /Users/noah/.asdf/installs/erlang/26.1.1
asdf_26.1.2 /Users/noah/.asdf/installs/erlang/26.1.2
asdf_25.3.2.7 /Users/noah/.asdf/installs/erlang/25.3.2.7
asdf_25.1.1 /Users/noah/.asdf/installs/erlang/25.1.1
# ~/.asdf/plugins/erlang/kerl-home/otp_builds
25.3,asdf_25.3
22.3.4.26,asdf_22.3.4.26
25.2.2,asdf_25.2.2
25.3.2,asdf_25.3.2
25.2.1,asdf_25.2.1
26.0.2,asdf_26.0.2
25.3.2.7,asdf_25.3.2.7
25.1.1,asdf_25.1.1
26.1.2,asdf_26.1.2
26.1.1,asdf_26.1.1 As I noted earlier though: ❯ ls -al ~/.asdf/installs/erlang
25.1.1
26.1 tldr
At some point I was manually doing |
The steps outlined in that resolved the issue for me also 👍 |
EDIT: See resolution comment tldr at the very bottom of this thread.
macOS Sonoma 14.1.1
asdf 0.13.1
Nushell 0.86.0 (also zsh 5.9)
Here's my relevant config:
The commands I'm running:
Note that the OTP tarball exists in the
~/.asdf/downloads
directory but despite the implication thatasdf-erlang
has successfully installed OTP 26.1.2The text was updated successfully, but these errors were encountered: