Skip to content

New Hex versions break the plugin #28

Description

@eproxus

Whenever a newer Hex version is available, there is a chance that the old version somehow breaks. The plugin then breaks on running deps.get, e.g. with the following output in the ElixirSublime.log:

A new Hex version is available (v0.10.4), please update with `mix local.hex`
Running dependency resolution
** (UndefinedFunctionError) undefined function Access.Map.get_and_update!/3 (module Access.Map is not available)

The solution is to add the following line before getting dependencies.
run_mix_task('local.hex --force')

     _socket.listen(1)
     _socket.settimeout(5)

+    run_mix_task('local.hex --force')
     run_mix_task('deps.get')

(Diff based on PR #25)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions