Closed yazeed1s closed 1 year ago
I guess you cloned the repo into the Packages
folder?
Can you check if there is a LSP-jdtls.sublime-package
in the Installed Packages
folder? Try deleting that.
No the repo wasn't cloned into Packages
. I tried deleting LSP-jdtls.sublime-package
from Installed Packages
as you suggested but the error still resist. I also tried deleting LSP itself, but no luck solving the error.
Please check the console for a stack trace. That helps to track down if jdtls or an extension could not be downloaded. Did you install from package control then?
You can try the current main by cloning into packages and deleting the sublime-package again.
Yes I installed lsp-jdtls using the package control. I will try cloning the main branch into packages and see if the problem is solved or not. Will let you know 👍
Thanks @LDAP\
Update: I cloned the current branch into packages
and the error now is gone, I still do not know what was the reason for the 404 error tho. the trouble shooting now outputs this
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
WARNING: Using incubator modules: jdk.incubator.concurrent, jdk.incubator.vector
[
"${java_executable}",
"--add-modules=ALL-SYSTEM",
"--add-opens",
"java.base/java.util=ALL-UNNAMED",
"--add-opens",
"java.base/java.lang=ALL-UNNAMED",
"--add-opens",
"java.base/sun.nio.fs=ALL-UNNAMED",
"-Declipse.application=org.eclipse.jdt.ls.core.id1",
"-Dosgi.bundles.defaultStartLevel=4",
"-Declipse.product=org.eclipse.jdt.ls.core.product",
"-Dfile.encoding=UTF-8",
"-DwatchParentProcess=${watch_parent_process}",
"-noverify",
"-XX:+UseParallelGC",
"-XX:GCTimeRatio=4",
"-XX:AdaptiveSizePolicyWeight=90",
"-Dsun.zip.disableMemoryMapping=true",
"-Xmx1G",
"-Xms100m",
"-javaagent:/Users/yazeed_1/Library/Caches/Sublime Text/Package Storage/LSP-jdtls/server/lombok-1.18.26.jar",
"-jar",
"${serverdir}/plugins/org.eclipse.equinox.launcher_${launcher_version}.jar",
"-configuration",
"${serverdir}/config_${jdtls_platform}",
"-data",
"${datadir}"
]
/opt/homebrew/Cellar/openjdk/19.0.2/bin/java --add-modules=ALL-SYSTEM --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/sun.nio.fs=ALL-UNNAMED -Declipse.application=org.eclipse.jdt.ls.core.id1 -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -Dfile.encoding=UTF-8 -DwatchParentProcess=true -noverify -XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx1G -Xms100m "-javaagent:/Users/yazeed_1/Library/Caches/Sublime Text/Package Storage/LSP-jdtls/server/lombok-1.18.26.jar" -jar "/Users/yazeed_1/Library/Caches/Sublime Text/Package Storage/LSP-jdtls/server/jdtls-1.20.0-202302201605/plugins/org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar" -configuration "/Users/yazeed_1/Library/Caches/Sublime Text/Package Storage/LSP-jdtls/server/jdtls-1.20.0-202302201605/config_mac" -data "/Users/yazeed_1/Library/Caches/Sublime Text/Package Storage/LSP-jdtls/data"
source.java
source.java
{
"bundles": [
"/Users/yazeed_1/Library/Caches/Sublime Text/Package Storage/LSP-jdtls/server/vscode-java-test-0.38.1/extension/server/junit-jupiter-api_5.9.2.jar",
"/Users/yazeed_1/Library/Caches/Sublime Text/Package Storage/LSP-jdtls/server/vscode-java-test-0.38.1/extension/server/junit-jupiter-engine_5.9.2.jar",
"/Users/yazeed_1/Library/Caches/Sublime Text/Package Storage/LSP-jdtls/server/vscode-java-test-0.38.1/extension/server/junit-jupiter-migrationsupport_5.9.2.jar",
"/Users/yazeed_1/Library/Caches/Sublime Text/Package Storage/LSP-jdtls/server/vscode-java-test-0.38.1/extension/server/junit-jupiter-params_5.9.2.jar",
"/Users/yazeed_1/Library/Caches/Sublime Text/Package Storage/LSP-jdtls/server/vscode-java-test-0.38.1/extension/server/junit-platform-commons_1.9.2.jar",
"/Users/yazeed_1/Library/Caches/Sublime Text/Package Storage/LSP-jdtls/server/vscode-java-test-0.38.1/extension/server/junit-platform-engine_1.9.2.jar",
"/Users/yazeed_1/Library/Caches/Sublime Text/Package Storage/LSP-jdtls/server/vscode-java-test-0.38.1/extension/server/junit-platform-launcher_1.9.2.jar",
"/Users/yazeed_1/Library/Caches/Sublime Text/Package Storage/LSP-jdtls/server/vscode-java-test-0.38.1/extension/server/junit-platform-runner_1.9.2.jar",
"/Users/yazeed_1/Library/Caches/Sublime Text/Package Storage/LSP-jdtls/server/vscode-java-test-0.38.1/extension/server/junit-platform-suite-api_1.9.2.jar",
"/Users/yazeed_1/Library/Caches/Sublime Text/Package Storage/LSP-jdtls/server/vscode-java-test-0.38.1/extension/server/junit-platform-suite-commons_1.9.2.jar",
"/Users/yazeed_1/Library/Caches/Sublime Text/Package Storage/LSP-jdtls/server/vscode-java-test-0.38.1/extension/server/junit-platform-suite-engine_1.9.2.jar",
"/Users/yazeed_1/Library/Caches/Sublime Text/Package Storage/LSP-jdtls/server/vscode-java-test-0.38.1/extension/server/junit-vintage-engine_5.9.2.jar",
"/Users/yazeed_1/Library/Caches/Sublime Text/Package Storage/LSP-jdtls/server/vscode-java-test-0.38.1/extension/server/org.apiguardian.api_1.1.2.jar",
"/Users/yazeed_1/Library/Caches/Sublime Text/Package Storage/LSP-jdtls/server/vscode-java-test-0.38.1/extension/server/org.eclipse.jdt.junit4.runtime_1.3.0.v20220609-1843.jar",
"/Users/yazeed_1/Library/Caches/Sublime Text/Package Storage/LSP-jdtls/server/vscode-java-test-0.38.1/extension/server/org.eclipse.jdt.junit5.runtime_1.1.100.v20220907-0450.jar",
"/Users/yazeed_1/Library/Caches/Sublime Text/Package Storage/LSP-jdtls/server/vscode-java-test-0.38.1/extension/server/org.opentest4j_1.2.0.jar",
"/Users/yazeed_1/Library/Caches/Sublime Text/Package Storage/LSP-jdtls/server/vscode-java-test-0.38.1/extension/server/com.microsoft.java.test.plugin-0.38.1.jar",
"/Users/yazeed_1/Library/Caches/Sublime Text/Package Storage/LSP-jdtls/server/vscode-java-debug-0.49.0/extension/server/com.microsoft.java.debug.plugin-0.44.0.jar",
"/Users/yazeed_1/Library/Caches/Sublime Text/Package Storage/LSP-jdtls/server/vscode-java-decompiler-5eaf2fcf73ba6763f1eba69047f631fba80f9a50/vscode-java-decompiler-5eaf2fcf73ba6763f1eba69047f631fba80f9a50/server/dg.jdt.ls.decompiler.common-0.0.3.jar",
"/Users/yazeed_1/Library/Caches/Sublime Text/Package Storage/LSP-jdtls/server/vscode-java-decompiler-5eaf2fcf73ba6763f1eba69047f631fba80f9a50/vscode-java-decompiler-5eaf2fcf73ba6763f1eba69047f631fba80f9a50/server/dg.jdt.ls.decompiler.cfr-0.0.3.jar",
"/Users/yazeed_1/Library/Caches/Sublime Text/Package Storage/LSP-jdtls/server/vscode-java-decompiler-5eaf2fcf73ba6763f1eba69047f631fba80f9a50/vscode-java-decompiler-5eaf2fcf73ba6763f1eba69047f631fba80f9a50/server/dg.jdt.ls.decompiler.fernflower-0.0.3.jar",
"/Users/yazeed_1/Library/Caches/Sublime Text/Package Storage/LSP-jdtls/server/vscode-java-decompiler-5eaf2fcf73ba6763f1eba69047f631fba80f9a50/vscode-java-decompiler-5eaf2fcf73ba6763f1eba69047f631fba80f9a50/server/dg.jdt.ls.decompiler.procyon-0.0.3.jar"
],
"extendedClientCapabilities": {
"actionableRuntimeNotificationSupport": true,
"advancedExtractRefactoringSupport": false,
"advancedGenerateAccessorsSupport": false,
"advancedIntroduceParameterRefactoringSupport": false,
"advancedOrganizeImportsSupport": false,
"classFileContentsSupport": false,
"clientDocumentSymbolProvider": false,
"clientHoverProvider": false,
"generateConstructorsPromptSupport": false,
"generateDelegateMethodsPromptSupport": false,
"generateToStringPromptSupport": false,
"gradleChecksumWrapperPromptSupport": false,
"hashCodeEqualsPromptSupport": false,
"inferSelectionSupport": [],
"moveRefactoringSupport": false,
"onCompletionItemSelectedCommand": "editor.action.triggerParameterHints",
"overrideMethodsPromptSupport": false,
"progressReportProvider": true,
"resolveAdditionalTextEditsSupport": false,
"shouldLanguageServerExitOnShutdown": true
},
"settings": {
"java": {
"autobuild": {
"enabled": true
},
"cleanup": {
"actionsOnSave": []
},
"codeAction": {
"sortMembers": {
"avoidVolatileChanges": true
}
},
"codeGeneration": {
"generateComments": false,
"hashCodeEquals": {
"useInstanceof": false,
"useJava7Objects": false
},
"insertionLocation": "afterCursor",
"toString": {
"codeStyle": "STRING_CONCATENATION",
"limitElements": 0,
"listArrayContents": true,
"skipNullValues": false,
"template": "\\${object.className} [\\${member.name()}=\\${member.value}, \\${otherMembers}]"
},
"useBlocks": false
},
"compile": {
"nullAnalysis": {
"mode": "automatic",
"nonnull": [
"javax.annotation.Nonnull",
"org.eclipse.jdt.annotation.NonNull",
"org.springframework.lang.NonNull"
],
"nullable": [
"javax.annotation.Nullable",
"org.eclipse.jdt.annotation.Nullable",
"org.springframework.lang.Nullable"
]
}
},
"completion": {
"enabled": true,
"favoriteStaticMembers": [
"org.junit.Assert.*",
"org.junit.Assume.*",
"org.junit.jupiter.api.Assertions.*",
"org.junit.jupiter.api.Assumptions.*",
"org.junit.jupiter.api.DynamicContainer.*",
"org.junit.jupiter.api.DynamicTest.*",
"org.mockito.Mockito.*",
"org.mockito.ArgumentMatchers.*",
"org.mockito.Answers.*"
],
"filteredTypes": [
"java.awt.*",
"com.sun.*",
"sun.*",
"jdk.*",
"org.graalvm.*",
"io.micrometer.shaded.*"
],
"guessMethodArguments": true,
"importOrder": [
"#",
"java",
"javax",
"org",
"com"
],
"maxResults": 0,
"postfix": {
"enabled": true
}
},
"configuration": {
"maven": {
"globalSettings": null,
"userSettings": null
},
"runtimes": [],
"updateBuildConfiguration": "automatic",
"workspaceCacheLimit": 99
},
"contentProvider": {
"preferred": null
},
"eclipse": {
"downloadSources": true
},
"errors": {
"incompleteClasspath": {
"severity": "warning"
}
},
"foldingRange": {
"enabled": false
},
"format": {
"comments": {
"enabled": true
},
"enabled": true,
"onType": {
"enabled": false
},
"settings": {
"profile": null,
"url": null
}
},
"implementationsCodeLens": {
"enabled": true
},
"import": {
"exclusions": [
"**/node_modules/**",
"**/.metadata/**",
"**/archetype-resources/**",
"**/META-INF/maven/**"
],
"generatesMetadataFilesAtProjectRoot": false,
"gradle": {
"annotationProcessing": {
"enabled": true
},
"arguments": null,
"enabled": true,
"home": null,
"java": {
"home": null
},
"jvmArguments": null,
"offline": {
"enabled": false
},
"user": {
"home": null
},
"version": null,
"wrapper": {
"enabled": true
}
},
"maven": {
"enabled": true,
"offline": {
"enabled": false
}
}
},
"imports": {
"gradle": {
"wrapper": {
"checksums": []
}
}
},
"inlayHints": {
"parameterNames": {
"enabled": "literals",
"exclusions": []
}
},
"jdt": {
"ls": {
"androidSupport": {
"enabled": true
},
"java": {
"home": "/opt/homebrew/Cellar/openjdk/19.0.2/"
},
"lombokSupport": {
"enabled": true
},
"protobufSupport": {
"enabled": true
}
}
},
"maven": {
"downloadSources": true,
"updateSnapshots": false
},
"maxConcurrentBuilds": 1,
"progressReports": {
"enabled": true
},
"project": {
"encoding": "ignore",
"importHint": true,
"importOnFirstTimeStartup": "automatic",
"outputPath": null,
"referencedLibraries": [
"lib/**/*.jar"
],
"resourceFilters": [
"node_modules",
".git"
],
"sourcePaths": null
},
"quickfix": {
"showAt": "line"
},
"references": {
"includeAccessors": true,
"includeDecompiledSources": true
},
"referencesCodeLens": {
"enabled": false
},
"saveActions": {
"organizeImports": true
},
"selectionRange": {
"enabled": true
},
"server": {
"launchMode": "Hybrid"
},
"settings": {
"url": null
},
"showBuildStatusOnStart": {
"enabled": "notification"
},
"signatureHelp": {
"description": {
"enabled": true
},
"enabled": true
},
"sources": {
"organizeImports": {
"starThreshold": 99,
"staticStarThreshold": 99
}
},
"symbols": {
"includeSourceMethodDeclarations": false
},
"templates": {
"fileHeader": [],
"typeComment": []
},
"trace": {
"server": "off"
},
"typeHierarchy": {
"lazyLoad": false
}
}
},
"workspaceFolders": [
"file:///Users/yazeed_1/_dev/JobBoard/backend"
]
}
{
"java": {
"autobuild": {
"enabled": true
},
"cleanup": {
"actionsOnSave": []
},
"codeAction": {
"sortMembers": {
"avoidVolatileChanges": true
}
},
"codeGeneration": {
"generateComments": false,
"hashCodeEquals": {
"useInstanceof": false,
"useJava7Objects": false
},
"insertionLocation": "afterCursor",
"toString": {
"codeStyle": "STRING_CONCATENATION",
"limitElements": 0,
"listArrayContents": true,
"skipNullValues": false,
"template": "\\${object.className} [\\${member.name()}=\\${member.value}, \\${otherMembers}]"
},
"useBlocks": false
},
"compile": {
"nullAnalysis": {
"mode": "automatic",
"nonnull": [
"javax.annotation.Nonnull",
"org.eclipse.jdt.annotation.NonNull",
"org.springframework.lang.NonNull"
],
"nullable": [
"javax.annotation.Nullable",
"org.eclipse.jdt.annotation.Nullable",
"org.springframework.lang.Nullable"
]
}
},
"completion": {
"enabled": true,
"favoriteStaticMembers": [
"org.junit.Assert.*",
"org.junit.Assume.*",
"org.junit.jupiter.api.Assertions.*",
"org.junit.jupiter.api.Assumptions.*",
"org.junit.jupiter.api.DynamicContainer.*",
"org.junit.jupiter.api.DynamicTest.*",
"org.mockito.Mockito.*",
"org.mockito.ArgumentMatchers.*",
"org.mockito.Answers.*"
],
"filteredTypes": [
"java.awt.*",
"com.sun.*",
"sun.*",
"jdk.*",
"org.graalvm.*",
"io.micrometer.shaded.*"
],
"guessMethodArguments": true,
"importOrder": [
"#",
"java",
"javax",
"org",
"com"
],
"maxResults": 0,
"postfix": {
"enabled": true
}
},
"configuration": {
"maven": {
"globalSettings": null,
"userSettings": null
},
"runtimes": [],
"updateBuildConfiguration": "automatic",
"workspaceCacheLimit": 99
},
"contentProvider": {
"preferred": null
},
"eclipse": {
"downloadSources": true
},
"errors": {
"incompleteClasspath": {
"severity": "warning"
}
},
"foldingRange": {
"enabled": false
},
"format": {
"comments": {
"enabled": true
},
"enabled": true,
"onType": {
"enabled": false
},
"settings": {
"profile": null,
"url": null
}
},
"implementationsCodeLens": {
"enabled": true
},
"import": {
"exclusions": [
"**/node_modules/**",
"**/.metadata/**",
"**/archetype-resources/**",
"**/META-INF/maven/**"
],
"generatesMetadataFilesAtProjectRoot": false,
"gradle": {
"annotationProcessing": {
"enabled": true
},
"arguments": null,
"enabled": true,
"home": null,
"java": {
"home": null
},
"jvmArguments": null,
"offline": {
"enabled": false
},
"user": {
"home": null
},
"version": null,
"wrapper": {
"enabled": true
}
},
"maven": {
"enabled": true,
"offline": {
"enabled": false
}
}
},
"imports": {
"gradle": {
"wrapper": {
"checksums": []
}
}
},
"inlayHints": {
"parameterNames": {
"enabled": "literals",
"exclusions": []
}
},
"jdt": {
"ls": {
"androidSupport": {
"enabled": true
},
"java": {
"home": "/opt/homebrew/Cellar/openjdk/19.0.2/"
},
"lombokSupport": {
"enabled": true
},
"protobufSupport": {
"enabled": true
}
}
},
"maven": {
"downloadSources": true,
"updateSnapshots": false
},
"maxConcurrentBuilds": 1,
"progressReports": {
"enabled": true
},
"project": {
"encoding": "ignore",
"importHint": true,
"importOnFirstTimeStartup": "automatic",
"outputPath": null,
"referencedLibraries": [
"lib/**/*.jar"
],
"resourceFilters": [
"node_modules",
".git"
],
"sourcePaths": null
},
"quickfix": {
"showAt": "line"
},
"references": {
"includeAccessors": true,
"includeDecompiledSources": true
},
"referencesCodeLens": {
"enabled": false
},
"saveActions": {
"organizeImports": true
},
"selectionRange": {
"enabled": true
},
"server": {
"launchMode": "Hybrid"
},
"settings": {
"url": null
},
"showBuildStatusOnStart": {
"enabled": "notification"
},
"signatureHelp": {
"description": {
"enabled": true
},
"enabled": true
},
"sources": {
"organizeImports": {
"starThreshold": 99,
"staticStarThreshold": 99
}
},
"symbols": {
"includeSourceMethodDeclarations": false
},
"templates": {
"fileHeader": [],
"typeComment": []
},
"trace": {
"server": "off"
},
"typeHierarchy": {
"lazyLoad": false
}
}
}
{}
/Users/yazeed_1/_dev/JobBoard/backend/src/main/java/com/apple/JobBoard/config/ApplicationConfig.java
{
"auto_complete_selector": "meta.tag, source - comment - string.quoted.double.block - string.quoted.single.block - string.unquoted.heredoc",
"lsp_active": true,
"syntax": "Packages/Java/Java.sublime-syntax"
}
source.java
[
"/Users/yazeed_1/_dev/JobBoard/backend"
]
{
"clients": {
"clangd": {
"enabled": true
},
"gopls": {
"analyses": {
"unreachable": true,
"unusedparams": true
},
"command": [
"/Users/yazeed_1/go/bin/gopls"
],
"enabled": true,
"env": {
"PATH": "/Users/yazeed_1/go/bin:/usr/local/go/bin"
},
"hints": {
"assignVariableTypes": true,
"constantValues": true,
"functionTypeParameters": true,
"parameterNames": true,
"rangeVariableTypes": true
},
"initializationOptions": {
"experimentalWorkspaceModule": false
},
"languageId": "go",
"selector": "source.go",
"settings": {
"gopls.completeUnimported": true,
"gopls.usePlaceholders": true
},
"syntaxes": [
"Packages/Go/Go.sublime-syntax",
"Packages/GoSublime/syntax/GoSublime-Go-Recommended.sublime-syntax"
]
},
"rust-analyzer": {
"enabled": true
}
},
"diagnostics_delay_ms": 100,
"diagnostics_gutter_marker": "dot",
"link_highlight_style": "none",
"lsp_format_on_save": true,
"semantic_highlighting": true,
"show_diagnostics_count_in_view_status": true,
"show_inlay_hints": true,
"show_multiline_diagnostics_highlights": false,
"show_references_in_quick_panel": true,
"show_view_status": false
}
Maybe an old link expired or your IP hit the github api limit for some reason. I'll release the new version soon.
Hello there,
when I open a java project I get this error:
The output of the troubleshooting is:
Troubleshooting: jdtls
Version
Server Test Run
Server Configuration
source.java
source.java
Active view
Project / Workspace
LSP configuration
System PATH
Am I missing something here? or is the link to download jdtls not working anymore? Thanks in advance.