From 3ccc1c317db413a8de74d9fb9e52b03c5e86041f Mon Sep 17 00:00:00 2001 From: Mitchell Hanberg Date: Tue, 11 Jul 2023 21:50:29 -0400 Subject: [PATCH] fix: use loadpaths instead of run This mix task does what we actually want, which is to load all of the code paths and not start the app. Fixes #97 Closes https://github.com/elixir-lang/elixir/pull/12764 --- lib/next_ls/runtime.ex | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/next_ls/runtime.ex b/lib/next_ls/runtime.ex index 86e19ff4..9ca373d3 100644 --- a/lib/next_ls/runtime.ex +++ b/lib/next_ls/runtime.ex @@ -64,14 +64,13 @@ defmodule NextLS.Runtime do ], args: [ System.find_executable("elixir"), + "--no-halt", "--sname", sname, "-S", "mix", - "run", - "--no-halt", - "--no-compile", - "--no-start" + "loadpaths", + "--no-compile" ] ] )