ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

LSP-jdtls

by sublimelsp ST4

Convenience package for the Eclipse JDT language server

Details

Installs

  • Total 4K
  • Win 2K
  • Mac 928
  • Linux 1K
Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29
Windows 0 0 1 1 0 3 0 1 2 3 2 2 4 1 1 0 0 3 4 0 2 2 0 2 4 2 0 5 2 2 1 2 2 2 6 1 2 3 2 1 0 1 4 2 1 1
Mac 0 0 1 2 1 2 1 1 0 0 0 0 0 2 0 0 0 1 2 0 5 1 0 1 0 1 2 0 1 0 0 1 0 1 2 1 0 0 4 2 1 7 1 0 3 1
Linux 0 0 3 2 4 1 0 2 2 1 0 2 2 1 2 0 0 2 0 1 2 1 0 2 2 3 2 1 1 2 1 1 0 2 2 1 1 2 2 1 0 2 1 0 0 2

Readme

Source
raw.​githubusercontent.​com

LSP-jdtls

This is a helper package that manages and downloads the Eclipse JDT language server for you.

To use this package, you must have:

  • The LSP package.
  • A Java SDK (>= 17).
  • It's recommended to have JAVA_HOME defined in your environment variables. Otherwise, specify java.home in the plugin settings.

Configuration

Configure jdtls by running Preferences: LSP-jdtls Settings from the command palette.

Capabilities

jdtls can do a lot of cool things, like

  • code completion
  • signature help
  • hover info
  • code actions
  • formatting
  • find references
  • goto def

Commands

Sublime Command Description Command Palette Note
lsp_jdtls_build_workspace Builds the project LSP-jdtls: Build Workspace
lsp_jdtls_refresh_workspace Refreshes all files LSP-jdtls: Refresh Workspace
lsp_jdtls_generate_tests Generate a test method in the associated test class LSP-jdtls: Generate tests…
lsp_jdtls_goto_test Jump to test and implementation LSP-jdtls: Goto Test / LSP-jdtls: Goto Implementation
lsp_jdtls_run_test_class Runs the test class in the active view LSP-jdtls: Run Test Class (experimental) Requires Debugger
lsp_jdtls_run_test_at_cursor Runs the test at the first cursor LSP-jdtls: Run Test At Cursor (experimental) Requires Debugger
lsp_jdtls_run_test Opens a panel to run a test in the active view LSP-jdtls: Run Test… (experimental) Requires Debugger
jdtls_clear_data Clears the server data directory LSP-jdtls: Clear data

Troubleshoot

Server exits with code 13

The server caches workspace specific information. When this data is corrupted the server crashes with exit code 13 and the server is disabled for the current project.

Run the command LSP-jdtls: Clear data from the command palette and re-enable the server using the command LSP: Enable Language Server in Project.

Licenses