From 97a8fe5377a4382513a9e60e2ed4da6ac847834a Mon Sep 17 00:00:00 2001 From: Mitchell Hanberg Date: Tue, 11 Jul 2023 22:15:51 -0400 Subject: [PATCH] fix: use loadpaths instead of run (#108) 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" ] ] )