LSP-jdtls
Convenience package for the Eclipse JDT language server
Details
Installs
- Total 5K
- Win 2K
- Mac 1K
- Linux 2K
Sep 9 | Sep 8 | Sep 7 | Sep 6 | Sep 5 | Sep 4 | Sep 3 | Sep 2 | Sep 1 | Aug 31 | Aug 30 | Aug 29 | Aug 28 | Aug 27 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | Aug 21 | Aug 20 | Aug 19 | Aug 18 | Aug 17 | Aug 16 | Aug 15 | Aug 14 | Aug 13 | Aug 12 | Aug 11 | Aug 10 | Aug 9 | Aug 8 | Aug 7 | Aug 6 | Aug 5 | Aug 4 | Aug 3 | Aug 2 | Aug 1 | Jul 31 | Jul 30 | Jul 29 | Jul 28 | Jul 27 | Jul 26 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 1 | 0 | 1 | 1 | 5 | 4 | 1 | 1 | 1 | 2 | 1 | 1 | 4 | 4 | 6 | 1 | 0 | 8 | 6 | 1 | 1 | 3 | 1 | 0 | 4 | 4 | 2 | 0 | 4 | 0 | 0 | 1 | 7 | 2 | 4 | 5 | 3 | 1 | 1 | 2 | 2 | 1 | 1 | 0 | 2 | 3 |
Mac | 2 | 8 | 2 | 1 | 1 | 3 | 0 | 2 | 2 | 1 | 0 | 1 | 2 | 1 | 0 | 2 | 0 | 0 | 2 | 0 | 0 | 2 | 0 | 2 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 | 1 | 0 | 1 | 0 | 3 | 2 | 0 | 0 | 0 | 2 | 2 | 3 | 0 |
Linux | 0 | 2 | 3 | 0 | 3 | 1 | 1 | 0 | 1 | 0 | 1 | 2 | 4 | 5 | 3 | 1 | 1 | 0 | 3 | 0 | 2 | 1 | 3 | 2 | 1 | 0 | 0 | 1 | 2 | 1 | 1 | 0 | 4 | 3 | 0 | 1 | 2 | 1 | 4 | 3 | 0 | 3 | 2 | 3 | 1 | 3 |
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 (>= 21).
- It's recommended to have
JAVA_HOME
defined in your environment variables. Otherwise, specifyjava.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
- The Java Debug Plugin is licensed under Eclipse Public License 1.0.
- The Test Runner for Java is licensed under MIT License
- The Decompiler for Java™ in Visual Studio Code is licensed under Eclipse Public License 2.0