emacs-lsp / lsp-java

lsp-mode :heart: java
https://emacs-lsp.github.io/lsp-java
GNU General Public License v3.0
647 stars 90 forks source link

yaml with lsp results in 'Warning (lsp-mode): Unknown request method: sts/javaType' #155

Open uqix opened 5 years ago

uqix commented 5 years ago

Steps to reproduce:

  1. Open application.yml in a spring boot project
  2. Type serv
  3. See: completions, but also Warnings buffer popup
Warning (lsp-mode): Unknown request method: sts/javaType
Warning (lsp-mode): Unknown request method: sts/javaType
Warning (lsp-mode): Unknown request method: sts/javaSearchPackages
Warning (lsp-mode): Unknown request method: sts/javaSearchTypes
yyoncho commented 5 years ago

This feature is yet to be implemented.

Edit: I still don't know what is the sts feature implemented using these methods.

antidmg commented 3 years ago

FWIW, I'm seeing the same error while using lsp-java:

Warning (lsp-mode): Unknown request method: sts/javaSuperTypes.

zcjava commented 3 years ago

i have this problem . how fix it

yejianfengblue commented 2 years ago

@gavinc95 @zcjava

Is the warnings buffer flood with Warning (lsp-mode): Unknown request method: sts/javaSuperTypes as below? lsp-java-app-prop-complete-sts-javatype

I suppress the warning with change https://github.com/yejianfengblue/lsp-java/commit/f6fe14e89a5f3798309f30950f1fe46efc05a3d7 in my computer.

Could you please help test also before I submit a pull request?

reproduce

  1. open an .java file in a Spring Boot project so jdtls and boot-ls start
  2. open application.properties, M-x lsp to enable lsp in this properties buffer
  3. type server to trigger code completion and the warning message

fix

  1. use emacs to edit ~/.emacs.d/elpa/lsp-java-20211017.1826/lsp-java-boot.el if use vanilla emacs or ~/.emacs.d/elpa/27.2/develop/lsp-java-20211017.1826/lsp-java-boot.el if use spacemacs according to https://github.com/yejianfengblue/lsp-java/commit/f6fe14e89a5f3798309f30950f1fe46efc05a3d7
  2. M-x emacs-lisp-byte-compile in buffer lsp-java-boot.el if use vanilla emacs. Spacemacs auto compiles .el file.
  3. open the compiled file ~/.emacs.d/elpa/27.2/develop/lsp-java-20211017.1826/lsp-java-boot.elc, search javaType, make sure it's found
  4. restart emacs
  5. repeat the produce step and check the warning message still or not
antidmg commented 2 years ago

@yejianfengblue sorry for the late reply - I just tried out LSP with doom emacs and a large java project, and I don't seem to be seeing this issue anymore :smile:

yejianfengblue commented 2 years ago

@gavinc95 Thank you for the feedback. cxb811201 alreadys submited a pull request https://github.com/emacs-lsp/lsp-java/pull/368 and it is merged.