-
-
Notifications
You must be signed in to change notification settings - Fork 79
Closed
Description
When starting the language server without an internet connection (e.g. on a plane, in Berlin, or a train with spotty internet), the language server crashes with the following error:
Failed to start project node for my_app: {:shutdown,
{:failed_to_start_child, {XPExpert.Project.Node, "my_app"},
{:error, :normal,
~c"** (Mix.Error) httpc request failed with: {:failed_connect, [{:to_address, {~c\"builds.hex.pm\", 443}}, {:inet6, [:inet6], :nxdomain}]}\n\nCould not install Hex because Mix could not download metadata at https://builds.hex.pm/installs/hex.csv.\n\nAlternatively, you can compile and install Hex directly with this command:\n\n $ mix archive.install github hexpm/hex branch latest\n\n (mix 1.19.4) lib/mix.ex:647: Mix.raise/2\n (mix 1.19.4) lib/mix/local.ex:158: Mix.Local.find_matching_versions!/3\n (mix 1.19.4) lib/mix/tasks/local.hex.ex:76: Mix.Tasks.Local.Hex.run_install/2\n (mix 1.19.4) lib/mix/task.ex:499: anonymous fn/3 in Mix.Task.run_task/5\n /Users/peterullrich/Library/Application Support/.burrito/expert_erts-15.2.7_0.1.0-a0f4bad/lib/xp_expert-0.1.0-a0f4bad/priv/build_engine.exs:20: (file)\n"}}}
I already handle this offline-mode in the Zed extension here: zed-extensions/elixir#54 but even though the extension handles offline-mode, the language server itself unfortunately doesn't yet.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels