okari8765

okari8765

I recently ran into the following error when trying to run any mix command:

## The error

```
Could not start Hex. Try fetching a new version with "mix local.hex" or uninstalling it with "mix archive.uninstall hex.ez"
** (MatchError) no match of right hand side value:

    {:error,
     {:hex,
      {{:shutdown,
        {:failed_to_start_child, Hex.State,
         {:EXIT,
          {%SyntaxError{
             file: "nofile",
             line: 10,
             column: 41,
             snippet: "                  oauth_exchange => true},",
             description: "unexpected token: }"
           },
           [
             {Code, :validated_eval_string, 3, [file: ~c"lib/code.ex", line: 628]},
             {Hex.Config, :decode_elixir, 1,
              [file: ~c"lib/hex/config.ex", line: 97]},
             {Hex.Config, :read, 0, [file: ~c"lib/hex/config.ex", line: 12]},
             {Hex.State, :start_link, 1, [file: ~c"lib/hex/state.ex", line: 135]},
             {:supervisor, :do_start_child_i, 3,
              [file: ~c"supervisor.erl", line: 996]},
             {:supervisor, :do_start_child, 3,
              [file: ~c"supervisor.erl", line: 982]},
             {:supervisor, :"-start_children/2-fun-0-", 3,
              [file: ~c"supervisor.erl", line: 966]}
           ]}}}}, {Hex.Application, :start, [:normal, []]}}}}

    (hex 2.3.0) lib/hex.ex:5: Hex.start/0
    (mix 1.19.5) lib/mix/hex.ex:64: Mix.Hex.start/0
    (mix 1.19.5) lib/mix/dep/loader.ex:193: Mix.Dep.Loader.with_scm_and_app/5
    (mix 1.19.5) lib/mix/dep/loader.ex:145: Mix.Dep.Loader.to_dep/4
    (elixir 1.19.5) lib/enum.ex:1688: Enum."-map/2-lists^map/1-1-"/2
    (mix 1.19.5) lib/mix/dep/loader.ex:368: Mix.Dep.Loader.mix_children/3
    (mix 1.19.5) lib/mix/dep/loader.ex:22: Mix.Dep.Loader.children/1
    (mix 1.19.5) lib/mix/dep/converger.ex:101: Mix.Dep.Converger.all/4
```

Being trying to figure it out including uninstalling and reinstalling elixir and erlang versions using asdf but nothing fixes it.

Any help in resolving this will be appreciated.

Showing Posts 1 to 3

Gazler

Gazler

Phoenix Core Team

Looks like your hex config file has been corrupted. Try running rm ~/.hex/hex.config and running it again.

okari8765

okari8765 OP

Thanks

nico_amsterdam

nico_amsterdam

The error message is not really helpful. In my case rm ~/.hex/hex.config also worked.

The uninstall command also gives an error: mix archive.uninstall hex.ez
Could not find a local artifact named "hex.ez". We found: ...

— All posts loaded —

Where Next? Top

Trending in Questions Top

Blokh
Hey guys, I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly Do you guys have any suggestions what is the best prac...
New
kszambelanczyk
Hello! Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app. I creat...
New
Onor.io
I have what I’ve heard referred to as a “lookup table” in my database. This is a way of assigning codes to common values. One common lo...
New
jaybe78
Hello, I’m developing a online persistent chat system (what’s app) like using elixir/dynamodb/aws for a mobile app(flutter). The diffic...
New
Trolleger
What approach to take when sending live updates to “random” users Hi! I have a question, I have a little chat app, and when I create a DM...
New
matt-savvy
Anyone here using Honeybadger? My Honeybadger account is being overwhelmed with noise from some bots. Seeing a lot of Bandit.HTTPError...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New

Other Trending Topics Top

garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
wintermeyer
There are three potential reasons for members of this forum to have a look at https://vutuv.de You are tired or annoyed of LinkedIn. Yo...
New
webofbits
Aludel - LLM Evaluation Workbench Aludel is an embeddable Phoenix LiveView dashboard for evaluating and comparing LLM prompts across mult...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews