lsp-java icon indicating copy to clipboard operation
lsp-java copied to clipboard

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

Open uqix opened this issue 4 years ago • 6 comments

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

uqix avatar Sep 13 '19 05:09 uqix

This feature is yet to be implemented.

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

yyoncho avatar Sep 13 '19 05:09 yyoncho

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

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

antidmg avatar Apr 15 '21 23:04 antidmg

i have this problem . how fix it

zcjava avatar Sep 02 '21 03:09 zcjava

@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

yejianfengblue avatar Nov 15 '21 07:11 yejianfengblue

@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:

antidmg avatar Feb 22 '22 22:02 antidmg

@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.

yejianfengblue avatar Feb 23 '22 06:02 yejianfengblue