ROCKTAKEY / lsp-latex

Emacs lsp-mode client for LaTeX, on texlab.
GNU General Public License v3.0
69 stars 4 forks source link

use-package example #12

Closed drozdziak1 closed 4 years ago

drozdziak1 commented 4 years ago

I'm trying to use this package with the use-package macro, but I seem to get no flycheck errors when starting lsp with texlab. Making sure I properly added the package could help me debug this problem better. Here's how I add lsp-latex to my config:

(use-package lsp-latex
  :hook ((tex-mode . 'lsp)
     (latex-mode . 'lsp))
  )
ROCKTAKEY commented 4 years ago

@drozdziak1 Thanks for your report. I will investigate too.

Is there any error in Emacs? If so, Please run M-x toggle-debug-on-error and put backtrace here.

And, is it occur if you don't use use-package?

drozdziak1 commented 4 years ago

So my current problem is that with the import above I don't get lsp-latex-build in scope, other than that lsp-mode doesn't report any errors

drozdziak1 commented 4 years ago

it somehow makes it into scope as I open lsp-latex.el manually, and then I get Error processing message (json-end-of-file) in the bottom when I call it.

ROCKTAKEY commented 4 years ago

@drozdziak1

So my current problem is that with the import above I don't get lsp-latex-build in scope, other than that lsp-mode doesn't report any errors

It is use-pacakge specification. You cannot use quote on cdr. You should write:

(use-package lsp-latex
  :hook ((tex-mode . lsp)
     (latex-mode . lsp))
  )

it somehow makes it into scope as I open lsp-latex.el manually, and then I get Error processing message (json-end-of-file) in the bottom when I call it.

It might be bug. Could you eval (setq lsp-log-io t) and give the log in buffer like *lsp-log: texlab2:.....*, with error?

ROCKTAKEY commented 4 years ago

Bug might be fixed.

ROCKTAKEY commented 4 years ago

If not in your environment, please reopen this issue.