JILL24
FunctionClauseError on running mix rustler.new (no function clause matching in OptionParser.validate_swit)
when i tried to run mix rustler.new
** (FunctionClauseError) no function clause matching in OptionParser.validate_switch/1
The following arguments were given to OptionParser.validate_switch/1:
# 1
:module
Attempted function clauses (showing 1 out of 1):
defp validate_switch({_name, type_or_type_and_modifiers})
(elixir 1.13.4) lib/option_parser.ex:623: OptionParser.validate_switch/1
(elixir 1.13.4) lib/enum.ex:1593: Enum."-map/2-lists^map/1-0-"/2
(elixir 1.13.4) lib/option_parser.ex:599: OptionParser.build_config/1
(elixir 1.13.4) lib/option_parser.ex:231: OptionParser.parse/2
(rustler 0.22.2) lib/mix/tasks/rustler.new.ex:36: Mix.Tasks.Rustler.New.run/1
(mix 1.13.4) lib/mix/task.ex:397: anonymous fn/3 in Mix.Task.run_task/3
(mix 1.13.4) lib/mix/cli.ex:84: Mix.CLI.run_task/2
First Post!
msimonborg
Most Liked
al2o3cr
msimonborg
You are on an older version of Rustler (0.22.2) where the mix rustler.new task appears incompatible with Elixir 1.13. See the changelog, specifically a fix in 0.23.0
Assuming you’re on Elixir 1.13, if you upgrade Rustler in your mix.exs {:rustler, "~> 0.25.0"} and run mix deps.update --all, then it should work
al2o3cr
Hi @JILL24 - welcome to the Elixir forum!
We (the moderators) combined your posts into a single new thread as duplicate posting is against the forum rules.
In addition, consider opening a new thread when asking a mostly-unrelated question. The “mark as answered” feature doesn’t work if you add a new question to a months-old answered one.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #security
- #hex









