Skip to content

Mix having trouble with do notation and multiple tasks #11682

@bmitc

Description

@bmitc

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:

image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions