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

JavaComp server cant start #6

Open
rileyrg opened this issue Mar 10, 2019 · 0 comments
Open

JavaComp server cant start #6

rileyrg opened this issue Mar 10, 2019 · 0 comments

Comments

@rileyrg
Copy link

rileyrg commented Mar 10, 2019

Starting new Ispell process /usr/bin/aspell with british dictionary...
File mode specification error: (error javacomp: Cannot communicate with the process (exit))
LSP :: javacomp has exited (exited abnormally with code 1)
Server javacomp:25796 status:starting exited with status exit. Do you want to restart it? (y or n) n

I did install and update the server. I have googled and found nothing.

Please let me know what else I can provide you. I am new to this LSP stuff. (its working with C/C++ and lsp mode).

(use-package lsp-javacomp
  :init
  (add-hook 'java-mode-hook
            (lambda ()
              ;; Load lsp-javacomp before enabling lsp, so that javacomp client
              ;; is registed.
              (require 'lsp-javacomp)
              (lsp)
              ;; Use company-lsp as the company completion backend
              (set (make-variable-buffer-local 'company-backends) '(company-lsp))
              ;; Optional company-mode settings
              (set (make-variable-buffer-local 'company-idle-delay) 0.1)
              (set (make-variable-buffer-local 'company-minimum-prefix-length) 1)))
  ;; Optional, make sure JavaComp is installed. See below.
  :config
  (lsp-javacomp-install-server))

BTW your snippet in the read me is wrong.

(require 'lsp-javacomp')

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

1 participant