LSP-jdtls
Convenience package for the Eclipse JDT language server
Details
Installs
- Total 5K
- Win 2K
- Mac 1K
- Linux 2K
| Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | Oct 7 | Oct 6 | Oct 5 | Oct 4 | Oct 3 | Oct 2 | Oct 1 | Sep 30 | Sep 29 | Sep 28 | Sep 27 | Sep 26 | Sep 25 | Sep 24 | Sep 23 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 1 | 4 | 3 | 5 | 1 | 2 | 2 | 15 | 8 | 5 | 2 | 2 | 0 | 3 | 3 | 6 | 6 | 1 | 0 | 1 | 3 | 1 | 4 | 4 | 5 | 1 | 1 | 0 | 2 | 0 | 3 | 2 | 4 | 0 | 3 | 4 | 3 | 3 | 1 | 2 | 4 | 4 | 3 | 2 | 0 | 2 |
| Mac | 0 | 0 | 2 | 0 | 2 | 2 | 3 | 2 | 0 | 2 | 2 | 0 | 2 | 1 | 0 | 2 | 2 | 4 | 0 | 0 | 0 | 0 | 3 | 2 | 0 | 0 | 1 | 0 | 2 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 1 | 2 | 2 | 2 | 0 | 2 | 1 | 1 | 0 |
| Linux | 1 | 3 | 0 | 5 | 4 | 2 | 2 | 1 | 1 | 1 | 4 | 3 | 1 | 0 | 2 | 2 | 2 | 0 | 1 | 3 | 0 | 2 | 4 | 0 | 3 | 4 | 3 | 2 | 2 | 3 | 1 | 0 | 4 | 1 | 2 | 0 | 1 | 3 | 2 | 1 | 0 | 4 | 2 | 2 | 1 | 1 |
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_HOMEdefined in your environment variables. Otherwise, specifyjava.homein 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