Skip to content

bug: can't load workapce #279

Open
Open

Description

@micolore

Did you check docs and existing issues?

  • I have read all the plugin docs
  • I have searched the existing issues
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

0.10

Operating system/version

windows

Describe the bug

when i open a spring-boot project's root pom.xml (has many modules) . it's not sart load jdtls . then i open a java file it's ok.
but i use open other modules java file it's show grey. and can't use lsp_definitions command .
can you help me.

this is my java lsp config

require('java').setup(
 {
  root_markers = {
    '.git',
    'mvnw',
    'gradlew',
    'pom.xml',
  },
  java_test = {
    enable = false,
  },
  java_debug_adapter = {
    enable = false,
  },
  spring_boot_tools = {
    enable = false,
  },
  jdk = {
    auto_install = true,
  },
  notifications = {
    dap = false,
  },
  verification = {
    invalid_order = true,
    duplicate_setup_calls = true,
    invalid_mason_registry = true,
  },
})

require('lspconfig').jdtls.setup({
  settings = { 
    java = { 
      configuration = { 
	  runtimes = { 
	             { 
	               	name = "corretto-17", 
			path = "C:\\Users\\MOPPO-00\\.jdks\\corretto-17.0.7\\bin", 
			default = true, 
		    }, 
		}, 
          },
       }
   }
})

Steps To Reproduce

use neovim open a java project pom.xml

Expected Behavior

i hope load this project all modules

Activity

  1. s1n7ax commented on Jul 24, 2024

    @s1n7ax
    Member

    You can check the root directory of the registered LSP using LspInfo. Is the root directory a sub module? or the root of the module?

    image

  2. micolore commented on Jul 25, 2024

    @micolore
    Author

    You can check the root directory of the registered LSP using LspInfo. Is the root directory a sub module? or the root of the module?

    image

    image

  3. micolore commented on Jul 25, 2024

    @micolore
    Author

    You can check the root directory of the registered LSP using LspInfo. Is the root directory a sub module? or the root of the module?

    image

    image
    when i open sub modules java file. it show that info.

  4. micolore commented on Jul 25, 2024

    @micolore
    Author

    image

    and this error how to fixed!

  5. PiotrRaszkowski commented on Oct 15, 2024

    @PiotrRaszkowski

    check lsp logs, I also had a lot of issues with multimodule big projects, eclipse jd.lts is a little bit different than for example IntelliJ, after hours of debugging I found cyclic deps (on other configuration issues) in the project (ignored by IntelliJ)

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions