From aa99e230e3ac74db98d51220bcea28336cbfe007 Mon Sep 17 00:00:00 2001 From: Jason Montleon Date: Thu, 12 Dec 2024 13:51:59 -0500 Subject: [PATCH] :bug: Fix exec_args for execvp Signed-off-by: Jason Montleon --- jdtls-bin-override/jdtls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jdtls-bin-override/jdtls.py b/jdtls-bin-override/jdtls.py index cd4c5a0..cbc9689 100755 --- a/jdtls-bin-override/jdtls.py +++ b/jdtls-bin-override/jdtls.py @@ -91,7 +91,7 @@ def main(args): jar_path = find_equinox_launcher(jdtls_base_path) system = platform.system() - exec_args = ["-Declipse.application=org.eclipse.jdt.ls.core.id1", + exec_args = [java_executable, "-Declipse.application=org.eclipse.jdt.ls.core.id1", "-Dosgi.bundles.defaultStartLevel=4", "-Declipse.product=org.eclipse.jdt.ls.core.product", "-Dosgi.checkConfiguration=true", @@ -111,4 +111,4 @@ def main(args): if os.name == 'posix': os.execvp(java_executable, exec_args) else: - subprocess.run([java_executable] + exec_args) + subprocess.run(exec_args)