Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.
This repository was archived by the owner on Oct 8, 2025. It is now read-only.

Missing hex in bundled elixir (bad MIX_HOME?) #460

Description

@teamon

Fresh install, inside zed.

Settings

{
  "theme": "One Dark",
  "telemetry": {
    "diagnostics": false,
    "metrics": false
  },
  "base_keymap": "Atom",
  "buffer_font_size": 12,
  "buffer_font_family": "Menlo",

  "languages": {
    "Elixir": {
      "show_whitespaces": "selection",
      "language_servers": ["next-ls"]
    }
  },

  "lsp": {
    "next-ls": {
      "initialization_options": {
        "extensions": {
          // example configuring the extensions
          "credo": { "enable": false }
        },
        "experimental": {
          // example configuring the experimental options
          "completions": { "enable": true }
        }
      }
    }
  }
}

Log

[Next LS] NextLS v0.21.3 has initialized!
[Next LS] [extension] Credo disabled
[Next LS] Booting runtimes...
[Next LS] Beginning DB migration...
[Next LS] Database is being upgraded from version 0 to 7.

This will trigger a full recompilation in order to re-index your codebase.
[Next LS] Finished DB migration...
[Next LS] Booting runtime for .

- elixir: /Users/teamon/.cache/elixir-tools/nextls/elixir/1-17-1/bin/elixir
- zombie wrapper script: /Users/teamon/Library/Application Support/.burrito/next_ls_erts-14.2.1_0.21.3/lib/next_ls-0.21.3/priv/cmd
- working_dir: /Users/teamon/code/headless
- command: /Users/teamon/.cache/elixir-tools/nextls/elixir/1-17-1/bin/elixir --no-halt --sname nextls-runtime-1715277021668866333 --cookie 67AWQX3FMND6332NLVYJWQNA5M2SH5TQHV6JNV2ORQ255KZUIKEQ==== -S mix loadpaths --no-compile

Environment: 

LSP=nextls
NEXTLS_PARENT_PID=g1h3Km5leHQtbHMtMTcxNTI3NzAyMTU0MjYzMTIwOEBNYWNCb29rLVByby1CRgAAAQcAAAAAZj0M3g==
MIX_ENV=dev
MIX_TARGET=host
MIX_BUILD_ROOT=.elixir-tools/_build
MIX_HOME=
ROOTDIR=false
BINDIR=false
RELEASE_ROOT=false
RELEASE_SYS_CONFIG=false
PATH=/Users/teamon/.cache/elixir-tools/nextls/elixir/1-17-1/bin:/Users/teamon/Library/Application Support/.burrito/next_ls_erts-14.2.1_0.21.3/bin:/Users/teamon/bin:/Users/teamon/.asdf/shims:/opt/homebrew/opt/asdf/libexec/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/Users/teamon/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/opt/homebrew/opt/fzf/bin
[Next LS] Mix requires the Hex package manager to fetch dependencies
[Next LS] Shall I install Hex? (if running non-interactively, use "mix local.hex --force") [Yn]
[Next LS] ** (Mix) Could not find an SCM for dependency :phoenix_live_view from Headless.MixProject
[Next LS] Runtime for folder  failed to initialize
[Next LS] The runtime for  has successfully shut down.

I read some other issues and that empty MIX_HOME= looks suspicious.
I've tried deleting ~/.cache/elixir-tools and .elixir-tools but it didn't help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions