EmmyLua / EmmyLua-LanguageServer

153 stars 28 forks source link

Many warning while used with Emacs lsp-mode #10

Closed young40 closed 5 years ago

young40 commented 5 years ago

Here is the log:

Warning (lsp-mode): Unknown method: emmy/progressReport
Warning (lsp-mode): Unknown request method: workspace/workspaceFolders
Warning (lsp-mode): Unknown method: emmy/progressReport
Warning (lsp-mode): Unknown method: emmy/progressReport
Warning (lsp-mode): Unknown method: emmy/progressReport
Warning (lsp-mode): Unknown method: emmy/progressReport
Warning (lsp-mode): Unknown method: emmy/progressReport
Warning (lsp-mode): Unknown method: emmy/progressReport
gahag commented 5 years ago

I'm having this too.

gahag commented 5 years ago

Hello @tangzx, thanks for working on this. All the warnings disappeared, except this single one: Warning (lsp-mode): Unknown request method: workspace/workspaceFolders Could you re-open the issue please?

gahag commented 5 years ago

@young40 Are you still having the workspace/workspaceFolders issue?

young40 commented 5 years ago

@gahag no more warning.

I think, you can try to hack lsp-mode. I did it before @tangzx fix the issue.

Find lsp-mode.el

(defun lsp-warn (message &rest args)
  "Display a warning message made from (`format-message' MESSAGE ARGS...).
This is equivalent to `display-warning', using `lsp-mode' as the type and
`:warning' as the level."
  ;; (display-warning 'lsp-mode (apply #'format-message message args)) ;; COMMENT THIS LINE
  )