Open kevinschweikert opened 1 year ago
it fails because the file is not executable in the repo. It works for me after running this:
chmod +x ~/.local/share/rtx/plugins/elixir/shims/mix
I would file a ticket on asdf-elixir and see if they'd be willing to commit that change in the repo. Apparently it's not necessary for asdf but it shouldn't hurt anything for them to add it for us. Either that or I can fork the repo.
Awesome! Wasn't sure if this is an rtx
or asdf plugin
issue. Thanks for the quick response and solution! I opened an issue in the elxir plugin repo: https://github.com/asdf-vm/asdf-elixir/issues/129
seems working now
✗ RTX_DEBUG=1 ~/.local/share/mise/shims/mix
** (Mix) "mix" with no arguments must be executed in a directory with a mix.exs file
Usage: mix [task]
Examples:
mix - Invokes the default task (mix run) in a project
mix new PATH - Creates a new Elixir project at the given path
mix help - Lists all available tasks
mix help TASK - Prints documentation for a given task
The --help and --version options can be given instead of a task for usage and versioning information.
ls -lah ~/.local/share/mise/shims/
total 8
drwxr-xr-x 39 devworks staff 1.2K Aug 27 23:04 .
drwxr-xr-x@ 7 devworks staff 224B Aug 27 23:03 ..
lrwxr-xr-x 1 devworks staff 22B Aug 24 00:28 2to3 -> /opt/homebrew/bin/mise
lrwxr-xr-x 1 devworks staff 22B Aug 24 12:31 2to3-3.11 -> /opt/homebrew/bin/mise
lrwxr-xr-x 1 devworks staff 22B Aug 24 00:28 2to3-3.12 -> /opt/homebrew/bin/mise
lrwxr-xr-x 1 devworks staff 22B Aug 27 23:03 ct_run -> /opt/homebrew/bin/mise
lrwxr-xr-x 1 devworks staff 22B Aug 27 23:03 dialyzer -> /opt/homebrew/bin/mise
lrwxr-xr-x 1 devworks staff 22B Aug 27 22:59 elixir -> /opt/homebrew/bin/mise
lrwxr-xr-x 1 devworks staff 22B Aug 27 22:59 elixirc -> /opt/homebrew/bin/mise
lrwxr-xr-x 1 devworks staff 22B Aug 27 23:03 epmd -> /opt/homebrew/bin/mise
lrwxr-xr-x 1 devworks staff 22B Aug 27 23:03 erl -> /opt/homebrew/bin/mise
lrwxr-xr-x 1 devworks staff 22B Aug 27 23:03 erl_call -> /opt/homebrew/bin/mise
lrwxr-xr-x 1 devworks staff 22B Aug 27 23:03 erlc -> /opt/homebrew/bin/mise
lrwxr-xr-x 1 devworks staff 22B Aug 27 23:03 escript -> /opt/homebrew/bin/mise
lrwxr-xr-x 1 devworks staff 22B Aug 24 00:28 idle3 -> /opt/homebrew/bin/mise
lrwxr-xr-x 1 devworks staff 22B Aug 24 12:31 idle3.11 -> /opt/homebrew/bin/mise
lrwxr-xr-x 1 devworks staff 22B Aug 24 00:28 idle3.12 -> /opt/homebrew/bin/mise
lrwxr-xr-x 1 devworks staff 22B Aug 27 22:59 iex -> /opt/homebrew/bin/mise
-rwxr-xr-x 1 devworks staff 204B Aug 27 23:04 mix
lrwxr-xr-x 1 devworks staff 22B Aug 24 00:28 pip -> /opt/homebrew/bin/mise
lrwxr-xr-x 1 devworks staff 22B Aug 24 00:28 pip3 -> /opt/homebrew/bin/mise
lrwxr-xr-x 1 devworks staff 22B Aug 24 12:31 pip3.11 -> /opt/homebrew/bin/mise
lrwxr-xr-x 1 devworks staff 22B Aug 24 00:28 pip3.12 -> /opt/homebrew/bin/mise
lrwxr-xr-x 1 devworks staff 22B Aug 24 00:28 pydoc3 -> /opt/homebrew/bin/mise
lrwxr-xr-x 1 devworks staff 22B Aug 24 12:31 pydoc3.11 -> /opt/homebrew/bin/mise
lrwxr-xr-x 1 devworks staff 22B Aug 24 00:28 pydoc3.12 -> /opt/homebrew/bin/mise
lrwxr-xr-x 1 devworks staff 22B Aug 24 00:28 python -> /opt/homebrew/bin/mise
lrwxr-xr-x 1 devworks staff 22B Aug 24 00:28 python3 -> /opt/homebrew/bin/mise
lrwxr-xr-x 1 devworks staff 22B Aug 24 00:28 python3-config -> /opt/homebrew/bin/mise
lrwxr-xr-x 1 devworks staff 22B Aug 24 12:31 python3.11 -> /opt/homebrew/bin/mise
lrwxr-xr-x 1 devworks staff 22B Aug 24 12:31 python3.11-config -> /opt/homebrew/bin/mise
lrwxr-xr-x 1 devworks staff 22B Aug 24 00:28 python3.12 -> /opt/homebrew/bin/mise
lrwxr-xr-x 1 devworks staff 22B Aug 24 00:28 python3.12-config -> /opt/homebrew/bin/mise
lrwxr-xr-x 1 devworks staff 22B Aug 27 23:03 run_erl -> /opt/homebrew/bin/mise
lrwxr-xr-x 1 devworks staff 22B Aug 27 23:03 start -> /opt/homebrew/bin/mise
lrwxr-xr-x 1 devworks staff 22B Aug 27 23:03 start_erl -> /opt/homebrew/bin/mise
lrwxr-xr-x 1 devworks staff 22B Aug 27 23:03 to_erl -> /opt/homebrew/bin/mise
lrwxr-xr-x 1 devworks staff 22B Aug 27 23:03 typer -> /opt/homebrew/bin/mise
lrwxr-xr-x 1 devworks staff 22B Aug 25 15:00 zig -> /opt/homebrew/bin/mise
mix
looks a little different, but seem to work
Describe the bug The Elixir package manager
mix
does not work with shims. I am getting this error:To Reproduce Install the Elixir Plugin
Expected behavior To be able to execute mix via shims for my IDE (VSCode)
rtx doctor
output