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

jdtls server issue #507

Open
2 tasks done
93mmm opened this issue Jan 12, 2025 · 0 comments
Open
2 tasks done

jdtls server issue #507

93mmm opened this issue Jan 12, 2025 · 0 comments

Comments

@93mmm
Copy link

93mmm commented Jan 12, 2025

Problem description

jdtls is working, but the code diagnostics are broken, it is not highlighted. it stopped to work after update
image
for example, in this screenshot clangd works properly, but jdtls is not****

Why do you think this is an issue with mason-lspconfig.nvim?

before running packersync this didn't happened, after jdtls refused to work, then I changed config, and then jdtls fixed, but it wasn't completely repaired

sorry for my bad english :(

Neovim version (>= 0.7)

NVIM v0.10.3
Build type: Release
LuaJIT 2.1.1734355927

Operating system/version

Darwin a-3.local 24.1.0 Darwin Kernel Version 24.1.0: Thu Oct 10 21:02:45 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T8112 arm64

I've manually reviewed the Nvim LPS client log (:LspLog) to find potential errors

  • Yes

I've recently downloaded the latest plugin version of mason.nvim, mason-lspconfig.nvim, and nvim-lspconfig

  • Yes

Affected language servers

jdtls

Steps to reproduce

  1. git clone [email protected]:93mmm/.config.git and copy nvim config to .config dir
  2. nvim .java file

Actual behavior

don't highlights anything, eventually shows package warning

Expected behavior

highlight some errors

LspInfo

lspconfig: require("lspconfig.health").check()

LSP configs active in this session (globally) ~
- Configured servers: pylsp, clangd, cmake, marksman, lua_ls, jdtls, bashls
- OK Deprecated servers: (none)

LSP configs active in this buffer (bufnr: 1) ~
- Language client log: ~/.local/state/nvim/lsp.log
- Detected filetype: `java`
- 1 client(s) attached to this buffer
- Client: `jdtls` (id: 1, bufnr: [1])
  root directory:    ~/.config/
  filetypes:         java
  cmd:               ~/.local/share/nvim/mason/bin/jdtls -configuration /Users/a/.cache/jdtls/config -data /Users/a/.cache/jdtls/workspace
  version:           `usage: jdtls [-h] [--validate-java-version] [--no-validate-java-version]…` (Failed to get version) Tried:
  `/Users/a/.local/share/nvim/mason/bin/jdtls --version`
  `/Users/a/.local/share/nvim/mason/bin/jdtls -version`
  `/Users/a/.local/share/nvim/mason/bin/jdtls version`
  `/Users/a/.local/share/nvim/mason/bin/jdtls --help`
  
  executable:        true
  autostart:         true

Docs for active configs: ~
- jdtls docs: >markdown
  
  https://projects.eclipse.org/projects/eclipse.jdt.ls
  
  Language server for Java.
...

LspLog

No response

Healthcheck

==============================================================================
mason: require("mason.health").check()

mason.nvim ~
- OK mason.nvim version v1.10.0
- OK PATH: prepend
- OK Providers: 
    mason.providers.registry-api
    mason.providers.client
- OK neovim version >= 0.7.0

mason.nvim [Registries] ~
- OK Registry `github.com/mason-org/mason-registry version: 2025-01-12-urgent-sack` is installed.

mason.nvim [Core utils] ~
- OK unzip: `UnZip 6.00 of 20 April 2009, by Info-ZIP.  Maintained by C. Spieler.  Send`
- OK wget: `GNU Wget 1.24.5 built on darwin24.0.0.`
- OK curl: `curl 8.7.1 (x86_64-apple-darwin24.0) libcurl/8.7.1 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.12 nghttp2/1.62.0`
- OK gzip: `Apple gzip 448.0.3`
- OK tar: `bsdtar 3.5.3 - libarchive 3.5.3 zlib/1.2.12 liblzma/5.4.3 bz2lib/1.0.8 `
- OK bash: `GNU bash, version 3.2.57(1)-release (arm64-apple-darwin24)`
- OK sh: `Ok`

mason.nvim [Languages] ~
- WARNING Go: not available
  - ADVICE:
    - spawn: go failed with exit code - and signal -. go is not executable
- WARNING Composer: not available
  - ADVICE:
    - spawn: composer failed with exit code - and signal -. composer is not executable
- WARNING PHP: not available
  - ADVICE:
    - spawn: php failed with exit code - and signal -. php is not executable
- WARNING cargo: not available
  - ADVICE:
    - spawn: cargo failed with exit code - and signal -. cargo is not executable
- WARNING luarocks: not available
  - ADVICE:
    - spawn: luarocks failed with exit code - and signal -. luarocks is not executable
- OK Ruby: `ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.arm64e-darwin24]`
- OK java: `openjdk version "23.0.1" 2024-10-15`
- WARNING julia: not available
  - ADVICE:
    - spawn: julia failed with exit code - and signal -. julia is not executable
- OK python: `Python 3.13.0`
- OK node: `v22.4.1`
- OK javac: `javac 23.0.1`
- OK RubyGem: `3.0.3.1`
- OK npm: `10.8.1`
- OK pip: `pip 24.2 from /opt/homebrew/lib/python3.13/site-packages/pip (python 3.13)`
- OK python venv: `Ok`

mason.nvim [GitHub] ~
- OK GitHub API rate limit. Used: 0. Remaining: 5000. Limit: 5000. Reset: Sun Jan 12 17:27:02 2025.

Screenshots or recordings

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

No branches or pull requests

1 participant