-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Have to start emacs with sudo, otherwise jdtls won't work #452
Comments
info from lsp-log
|
Same error here, also with |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
jdtls exit immediately when I launch emacs normally (normally means click the app icon, type
emacs
on iterm)and report
Server jdtls:67683/starting exited (check corresponding stderr buffer for details). Do you want to restart it? (y or n)
UNLESS , I use
sudo emacs
to launch the emacs.Is that normal? Because I don't see any requirement of root authority on the chain.
Environment
macOS: Ventura 13.5.1
emacs: [email protected] (installed by brew)
lsp-java: 20230827.428
jdtls : jdt-language-server-1.26.0-202307271613
java : 17 (JAVA_HOME is setted by jenv)
To Reproduce
export PATH=/Users/mmmmmcclxxvii/.emacs.d/lsp-server/jdt-language-server-1.26.0-202307271613/bin:$PATH
(setq lsp-java-server-install-dir "~/.emacs.d/lsp-server/jdt-language-server-1.26.0-202307271613")
emacs --debug-init
C-x C-f
open~/Develop/temp/Application.java
Expected behavior
show: LSP:: jdtls connected to xxxx
Screenshots
Above screenshot is launching emacs normally
Above screenshot is launching emacs via
sudo emacs
The text was updated successfully, but these errors were encountered: