Skip to content

How to get LSP to auto refresh when new dependencies are installed? #364

Open

Description

@nystromer

Hello,

How can I get the LSP to auto refresh/sync when I've added new dependencies to my project?

Example:

  1. I add a new dependency in build.gradle
  2. I download it through Gradle
  3. I reference it in some file - LSP has not refreshed accordingly and marks it as non resolvable
  4. Project builds just fine with gradle build

:LspRestart does not seem to work either

Activity

  1. ninuru commented on Apr 9, 2025

    @ninuru

    @nystromer this doesn't fix the problem, but what I usually do is I just delete the .classpath file and restart neovim.
    This should pull the latest dependencies according to your gradle specs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions