eclipse.jdt.ls icon indicating copy to clipboard operation
eclipse.jdt.ls copied to clipboard

Why @Deprecated Class Why isn't there a code hint

Open AskaJohnny opened this issue 1 year ago • 2 comments

In my case, if my Class class is marked with @Deprecated it won't give me code hints, and LSP throws an error I don't think it makes sense Thank you help

[START][2024-09-04 18:26:38] LSP logging initiated [ERROR][2024-09-04 18:26:38] .../vim/lsp/rpc.lua:770 "rpc" "java" "stderr" "WARNING: Using incubator modules: jdk.incubator.foreign, jdk.incubator.vector\n" [ERROR][2024-09-04 18:26:38] .../vim/lsp/rpc.lua:770 "rpc" "java" "stderr" "9月 04, 2024 6:26:38 下午 org.apache.aries.spifly.BaseActivator log\n信息: Registered provider ch.qos.logback.classic.servlet.LogbackServletContainerInitializer of service jakarta.servlet.ServletContainerInitializer in bundle ch.qos.logback.classic\n9月 04, 2024 6:26:38 下午 org.apache.aries.spifly.BaseActivator log\n信息: Registered provider ch.qos.logback.classic.spi.LogbackServiceProvider of service org.slf4j.spi.SLF4JServiceProvider in bundle ch.qos.logback.classic\n" [WARN][2024-09-04 18:26:40] ...lsp/handlers.lua:135 "The language server jdtls triggers a registerCapability handler for workspace/didChangeWorkspaceFolders despite dynamicRegistration set to false. Report upstream, this warning is harmless" [ERROR][2024-09-04 18:26:40] .../vim/lsp/rpc.lua:770 "rpc" "java" "stderr" "9月 04, 2024 6:26:40 下午 com.microsoft.java.debug.plugin.internal.JavaDebuggerServerPlugin start\n信息: Starting com.microsoft.java.debug.plugin\n" [ERROR][2024-09-04 18:26:40] ...lsp/handlers.lua:623 "2024年9月4日 下午6:26:40 Command _java.reloadBundles.command not supported on client" [ERROR][2024-09-04 18:26:49] .../vim/lsp/rpc.lua:770 "rpc" "java" "stderr" "9月 04, 2024 6:26:49 下午 org.eclipse.lsp4j.jsonrpc.RemoteEndpoint handleCancellation\n警告: Unmatched cancel notification for request id 123\n" [ERROR][2024-09-04 18:26:50] .../vim/lsp/rpc.lua:770 "rpc" "java" "stderr" "9月 04, 2024 6:26:50 下午 org.eclipse.lsp4j.jsonrpc.RemoteEndpoint handleCancellation\n警告: Unmatched cancel notification for request id 130\n" [ERROR][2024-09-04 18:27:00] .../vim/lsp/rpc.lua:770 "rpc" "java" "stderr" "9月 04, 2024 6:27:00 下午 org.eclipse.lsp4j.jsonrpc.RemoteEndpoint handleCancellation\n警告: Unmatched cancel notification for request id 165\n"

AskaJohnny avatar Sep 04 '24 10:09 AskaJohnny

if my Class class is marked with @deprecated it won't give me code hints

What hint should it give?

mickaelistria avatar Sep 04 '24 10:09 mickaelistria

if my Class class is marked with @deprecated it won't give me code hints

What hint should it give? Sorry, I'd like to make sure that @Deprecated Class doesn't really have a hint, I think I'm just temporarily marking a class as @Deprecated but there may be changes

AskaJohnny avatar Sep 04 '24 13:09 AskaJohnny