Skip to content

The import X cannot be resolved #122

@sedax90

Description

@sedax90

Relevance Confirmation

  • I confirmed that this is not an issue with the Eclipse JDT Language Server itself

What happened?

I added a dependency to my build.gradle:

implementation 'commons-net:commons-net:3.12.0'

I would have expected it to be resolved within my file, but importing any of the dependencies returns: The import org.apache.commons.net cannot be resolved (Java 268435846)

Image

Opening VScode resolves the dependency correctly; in fact, with ./gradlew build the project starts correctly.

What did you expect to happen?

It should automatically resolve dependencies once they are entered and built.

Environment

Zed: 0.210.4 428ef505984eb7dd6096cbe6ff4e07f293075d0d
Platform: Ubuntu 25.10
Java:
openjdk 23 2024-09-17
OpenJDK Runtime Environment Corretto-23.0.0.37.1 (build 23+37-FR)
OpenJDK 64-Bit Server VM Corretto-23.0.0.37.1 (build 23+37-FR, mixed mode, sharing)

Metadata

Metadata

Assignees

No one assigned

    Labels

    language-serverRelated to the language server.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions