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 3K
  • Win 1K
  • Mac 742
  • Linux 1K
Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5
Windows 0 3 4 3 3 1 2 3 1 1 6 0 5 0 0 0 6 3 0 0 1 0 2 2 2 1 0 1 1 1 4 2 3 2 0 4 3 1 1 1 0 2 4 2 2 4
Mac 2 0 0 0 1 1 0 1 0 3 2 3 1 2 1 0 0 2 1 0 1 3 2 0 1 2 1 4 2 0 0 0 1 0 0 2 2 1 1 4 1 0 0 1 1 0
Linux 1 2 0 0 2 0 0 5 0 0 2 1 3 0 3 2 1 0 0 1 2 0 3 1 1 0 0 1 0 1 1 2 4 0 2 3 1 0 1 10 0 1 0 2 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