WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 43af7f2

Browse files
authored
🐛 Fix exec_args for execvp (#118)
1 parent bbf8e27 commit 43af7f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jdtls-bin-override/jdtls.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def main(args):
9191
jar_path = find_equinox_launcher(jdtls_base_path)
9292

9393
system = platform.system()
94-
exec_args = ["-Declipse.application=org.eclipse.jdt.ls.core.id1",
94+
exec_args = [java_executable, "-Declipse.application=org.eclipse.jdt.ls.core.id1",
9595
"-Dosgi.bundles.defaultStartLevel=4",
9696
"-Declipse.product=org.eclipse.jdt.ls.core.product",
9797
"-Dosgi.checkConfiguration=true",
@@ -111,4 +111,4 @@ def main(args):
111111
if os.name == 'posix':
112112
os.execvp(java_executable, exec_args)
113113
else:
114-
subprocess.run([java_executable] + exec_args)
114+
subprocess.run(exec_args)

0 commit comments

Comments
 (0)