Skip to content
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

Document how to start the lsp java server #3

Closed
naclander opened this issue Apr 30, 2017 · 7 comments
Closed

Document how to start the lsp java server #3

naclander opened this issue Apr 30, 2017 · 7 comments

Comments

@naclander
Copy link

Similar to #1 I think we should document how to start the language server from within emacs.

I have the server downloaded and in the correct location, and I can start it manually, but I am unsure how to do this within emacs using lsp-mode and lsp-java.

@naclander
Copy link
Author

It seems that the java lsp server does start sometimes. Its hard for me to diagnose why it starts some times and not others.

I like the path that meghanada took and had all server interaction logged to a separate buffer.

@vibhavp
Copy link
Member

vibhavp commented Apr 30, 2017

lsp-mode should start the language server automatically. Is that not happening?

@vibhavp
Copy link
Member

vibhavp commented Apr 30, 2017

Also, I like the idea to log all server interaction. Structured logging for requests and response might be a feature in lsp-mode at some point.

@naclander
Copy link
Author

Actually I seem to sometimes get a prompt to start the lsp-server, but depending on how I open the buffer it sometimes doesn't get prompted ( for example, if I open a file via neotree ).

This might be a problem with lsp-mode and not lsp-java, but it would still be nice if I had a command to force the java lsp server to start ( and maybe restart and kill it as well ).

@yyoncho
Copy link
Member

yyoncho commented May 12, 2018

In order to force lsp-java server to start, you could call lsp-java-enable manually. You could restart the workspace with lsp-restart-workspace.

@ivanhjc
Copy link

ivanhjc commented Dec 10, 2019

In order to force lsp-java server to start, you could call lsp-java-enable manually. You could restart the workspace with lsp-restart-workspace.

Is lsp-java-enable unavailable now? I'm using lsp-java 20191115.1712 and it's not found when I try to call it with M-x. I tried lsp-restart-workspace and it let me select a workspace to restart while there's no matching workspace. I also tried to add a workspace by calling lsp-workspace-folders-add but still no good. As of now what's the proper way to start the server from within Emacs?

@yyoncho
Copy link
Member

yyoncho commented Dec 10, 2019

Use M-x lsp. You may consult with lsp-mode's documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants