-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Description
Environment
- Elixir & Erlang/OTP versions (elixir --version):
Erlang/OTP 24 [erts-12.1.4] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [jit] Elixir 1.13.3 (compiled with Erlang/OTP 22)
- Operating system: Windows 11, OS Build 22000.527
Current behavior
The Livebook local install instructions don't work on Windows due to an error with Mix. The instructions are:
Running this on Windows with PowerShell yields:
PS > mix.bat do local.rebar --force, local.hex --force
** (Mix) Invalid arguments given to mix local.rebar. To find out the proper call syntax run "mix help local.rebar"
Expected behavior
It seems like this was expected to work as is on any OS. I was able to break it up into two commands, but mix.bat do
doesn't seem to like the comma and two separate tasks. I originally was going to file this in the Livebook repo, as maybe the instructions could be updated, but it seems like it's maybe a Mix issue?
Some Notes
I tried this:
PS > mix.bat do local.hex --force, local.rebar --force
* creating c:/Users/<user>/.mix/archives/hex-1.0.1
which doesn't error out but it doesn't seem to do anything for the local.rebar --force
tasks. At least nothing is printed to the console like what happens if just mix.bat local.rebar --force
is ran.
If I run something like mix.bat do credo, dialyzer
, then only Credo seems to run.
I haven't tried this on my macOS machine yet.