Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nvim jdtls modifies project on open #3337

Open
frankbenoit opened this issue Dec 3, 2024 · 1 comment
Open

nvim jdtls modifies project on open #3337

frankbenoit opened this issue Dec 3, 2024 · 1 comment

Comments

@frankbenoit
Copy link

Hi

I use Lazyvim and I expect it not to modify the projects by itself, when I am not doing it intentionally.
But there are these modifications happening:

  1. In all projects (features, plugins, non-java) at adds
		<filter>
			<id>1733217638287</id>
			<name></name>
			<type>30</type>
			<matcher>
				<id>org.eclipse.core.resources.regexFilterMatcher</id>
				<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
			</matcher>
		</filter>
  1. The null analysis is switched off, modifications in /.settings/org.eclipse.jdt.core.prefs

I tried to use a config file plugins/java.lua

return {
  "mfussenegger/nvim-jdtls",
  opts = {
    jdtls = function(opts)
      opts.settings = {
        java = {
          compile = {
            nullAnalysis = {
              mode = "automatic",
            },
          },
        },
      }
      return opts
    end,
  },
}

But it seems not to work.
Can you please help?

@agriffis
Copy link

@frankbenoit The change to null analysis is because of #3067

I've previously tried to generate a discussion with #3225

but nobody answers.

It's been a huge headache because our settings file is managed by a developer using the Eclipse IDE and he wants us to use common settings, but the jdtls absolutely forces these settings with no way to opt out.

I would try to add an option to jdtls to refrain from changing the null analysis settings, but I don't want to put in the effort if it's just going to sit in the PR queue ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants