lsp-java
lsp-java copied to clipboard
yaml with lsp results in 'Warning (lsp-mode): Unknown request method: sts/javaType'
Steps to reproduce:
- Open application.yml in a spring boot project
- Type serv
- 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
This feature is yet to be implemented.
Edit: I still don't know what is the sts feature implemented using these methods.
FWIW, I'm seeing the same error while using lsp-java
:
Warning (lsp-mode): Unknown request method: sts/javaSuperTypes
.
i have this problem . how fix it
@gavinc95 @zcjava
Is the warnings buffer flood with Warning (lsp-mode): Unknown request method: sts/javaSuperTypes
as below?
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
- open an
.java
file in a Spring Boot project so jdtls and boot-ls start - open
application.properties
,M-x lsp
to enable lsp in this properties buffer - type
server
to trigger code completion and the warning message
fix
- 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 -
M-x emacs-lisp-byte-compile
in bufferlsp-java-boot.el
if use vanilla emacs. Spacemacs auto compiles.el
file. - open the compiled file
~/.emacs.d/elpa/27.2/develop/lsp-java-20211017.1826/lsp-java-boot.elc
, searchjavaType
, make sure it's found - restart emacs
- repeat the produce step and check the warning message still or not
@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:
@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.