Skip to content

Java: helix can find documentation but cannot go to implementation #9051

Description

@AdityaMayukhSom

Summary

I was implementing an XML syntax checker in java, when I required to see the inner implementation of a class implemented in core java. But when I used gd it showed no definition found.
image

But when using Space-k, it can fetch the documentation and show it. I am using jdtls as the language server.
image

I tried gd on a locally implemented class and it worked fine by opening the declaration of the class in a new buffer.
image

I tried with classes imported from packages installed by maven, but there too the documentation was fetched but the class definition could not be opened.

Reproduction Steps

I tried this:

  1. Opening a java file in helix.
  2. Importing a class from core java.
  3. Invoked gd on the class name.

I expected this to happen:

The class definition to get opened in a new buffer.

Instead, this happened:

no definition found was showed in the status line.

Helix log

~/.cache/helix/helix.log
2023-12-12T00:44:53.404 helix_lsp::transport [ERROR] jdtls err <- "WARNING: Using incubator modules: jdk.incubator.vector\n"
2023-12-12T00:44:54.356 helix_lsp::transport [ERROR] jdtls err <- "Dec 12, 2023 12:44:54 AM org.apache.aries.spifly.BaseActivator log\n"
2023-12-12T00:44:54.356 helix_lsp::transport [ERROR] jdtls err <- "INFO: Registered provider ch.qos.logback.classic.servlet.LogbackServletContainerInitializer of service jakarta.servlet.ServletContainerInitializer in bundle ch.qos.logback.classic\n"
2023-12-12T00:44:54.361 helix_lsp::transport [ERROR] jdtls err <- "Dec 12, 2023 12:44:54 AM org.apache.aries.spifly.BaseActivator log\n"
2023-12-12T00:44:54.361 helix_lsp::transport [ERROR] jdtls err <- "INFO: Registered provider ch.qos.logback.classic.spi.LogbackServiceProvider of service org.slf4j.spi.SLF4JServiceProvider in bundle ch.qos.logback.classic\n"
2023-12-12T00:44:57.066 helix_term::application [ERROR] received malformed notification from Language Server: Unhandled
2023-12-12T00:44:57.068 helix_term::application [ERROR] received malformed notification from Language Server: Unhandled
2023-12-12T00:44:58.334 helix_term::application [ERROR] received malformed notification from Language Server: Unhandled
2023-12-12T00:44:58.881 helix_term::application [ERROR] received malformed notification from Language Server: Unhandled
2023-12-12T00:44:58.971 helix_term::application [ERROR] received malformed notification from Language Server: Unhandled
2023-12-12T00:44:58.972 helix_term::application [ERROR] received malformed notification from Language Server: Unhandled
2023-12-12T00:44:58.973 helix_term::application [ERROR] received malformed notification from Language Server: Unhandled
2023-12-12T00:44:59.014 helix_term::application [ERROR] received malformed notification from Language Server: Unhandled
2023-12-12T00:44:59.030 helix_term::application [WARN] Ignoring a client/registerCapability request because dynamic capability registration is not enabled. Please report this upstream to the language server
2023-12-12T00:44:59.030 helix_term::application [ERROR] received malformed notification from Language Server: Unhandled

Platform

Linux

Terminal Emulator

xterm-256color

Installation Method

zypper

Helix Version

helix 23.10 (f6021dd)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions