asdf-elixir icon indicating copy to clipboard operation
asdf-elixir copied to clipboard

Bad tempfile path

Open RobinClowers opened this issue 8 years ago • 5 comments

Looks like there is an extra / in the tempfile path.

$ asdf install elixir 1.3
/var/folders/hn/2gyswljs27179p4ddtdvrqkc0000gn/T//elixir-precompiled-1.3.zip
** Resuming transfer from byte position 21
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (33) HTTP server doesn't seem to support byte ranges. Cannot resume.
[/var/folders/hn/2gyswljs27179p4ddtdvrqkc0000gn/T//elixir-precompiled-1.3.zip]
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /var/folders/hn/2gyswljs27179p4ddtdvrqkc0000gn/T//elixir-precompiled-1.3.zip or
        /var/folders/hn/2gyswljs27179p4ddtdvrqkc0000gn/T//elixir-precompiled-1.3.zip.zip, and cannot find /var/folders/hn/2gyswljs27179p4ddtdvrqkc0000gn/T//elixir-precompiled-1.3.zip.ZIP, period.

RobinClowers avatar Jun 23 '16 01:06 RobinClowers

Turns out this is a just a really confusing secondary error. The correct command is asdf install elixir 1.3.0. Maybe we should validate the version number? Also it would be good to fail faster, so we don't try to unzip a bogus file.

RobinClowers avatar Jun 23 '16 01:06 RobinClowers

Thanks for discussing this error here: I had the same today with Erlang when trying to run asdf install erlang 20 instead of asdf install erlang 20.0 and was puzzled until I found this post… 👍

ulbrich avatar Jul 01 '17 16:07 ulbrich

This also happens for new Elixir releases, when the compiled file isn't ready yet. That seems to be the case with 1.8 RC1 right now.

kamidev avatar Jan 03 '19 10:01 kamidev

@kamidev yep, just came across that issue with 1.8 RC1.

Stratus3D avatar Jan 04 '19 01:01 Stratus3D

I do not think #29 fixed this issue.

Stratus3D avatar Jan 04 '19 01:01 Stratus3D