Skip to content

Instantly share code, notes, and snippets.

@lwiechec
Created June 10, 2020 08:25
Show Gist options
  • Save lwiechec/3f35506babbf8987fb74e14bfd7112ac to your computer and use it in GitHub Desktop.
Save lwiechec/3f35506babbf8987fb74e14bfd7112ac to your computer and use it in GitHub Desktop.
lsp-java problem with loading subsequent files
Debugger entered--Lisp error: (error "The connected server(s) does not support method textDocument/documentHighlight\nTo find out what capabilities support your server use ‘M-x lsp-describe-session’ and expand the capabilities section.")
signal(error ("The connected server(s) does not support method textDocument/documentHighlight\nTo find out what capabilities support your server use ‘M-x lsp-describe-session’ and expand the capabilities section."))
error("The connected server(s) does not support method %s\nTo find out what capabilities support your server use `M-x lsp-describe-session' and expand the capabilities section." "textDocument/documentHighlight")
lsp--send-request-async((:jsonrpc "2.0" :method "textDocument/documentHighlight" :params (:textDocument (:uri "file:///home/luke/work/projects/bruc-testcases/src/test/java/int_/nato/ncia/majiic/testing/testng/cucumber/UTPasswordCallbackHandler.java") :position (:line 0 :character 0))) lsp--document-highlight-callback tick nil nil :highlights)
lsp-request-async("textDocument/documentHighlight" (:textDocument (:uri "file:///home/luke/work/projects/bruc-testcases/src/test/java/int_/nato/ncia/majiic/testing/testng/cucumber/UTPasswordCallbackHandler.java") :position (:line 0 :character 0)) lsp--document-highlight-callback :mode tick :cancel-token :highlights)
lsp--document-highlight()
run-hooks(lsp-on-idle-hook)
lsp--on-idle(#<buffer UTPasswordCallbackHandler.java>)
apply(lsp--on-idle #<buffer UTPasswordCallbackHandler.java>)
timer-event-handler([t 0 0 500000 nil lsp--on-idle (#<buffer UTPasswordCallbackHandler.java>) idle 0])
[-] /home/luke/work/projects/bruc-testcases
`-[-] jdtls:3484
|-[-] Buffers
| |-[+] RunCucumberTests.java
| |-[+] UTPasswordCallbackHandler.java
| `-[+] Utils.java
`-[-] Capabilities
|-[X] selectionRangeProvider: t
|-[X] callHierarchyProvider: t
|-[-] workspace:
| `-[-] workspaceFolders:
| |-[X] changeNotifications: t
| `-[X] supported: t
|-[-] executeCommandProvider:
| `-[X] commands: [vscode.java.checkProjectSettings vscode.java.isOnClasspath java.project.import java.project.list vscode.java.fetchUsageData vscode.java.validateLaunchConfig vscode.java.test.search.items.all sts.java.hierarchy.supertypes sts.java.hierarchy.subtypes vscode.java.resolveMainMethod java.project.getSettings sts.java.addClasspathListener vscode.java.resolveMainClass vscode.java.test.search.location vscode.java.test.get.testpath java.resolvePath vscode.java.buildWorkspace sts.java.javadoc vscode.java.resolveElementAtSelection sts.java.type vscode.java.test.search.codelens java.edit.organizeImports java.project.refreshDiagnostics java.project.removeFromSourcePath java.project.listSourcePaths java.project.provideSemanticTokens sts.java.search.packages sts.java.javadocHoverLink java.project.getAll java.project.isTestFile sts.java.search.types java.getPackageData java.project.getClasspaths java.project.getSemanticTokensLegend java.project.updateSourceAttachment vscode.java.resolveClasspath vscode.java.test.runtime.classpath vscode.java.resolveBuildFiles vscode.java.test.project.info vscode.java.updateDebugSettings sts.java.location vscode.java.test.search.items java.project.resolveSourceAttachment sts.java.removeClasspathListener java.project.addToSourcePath vscode.java.startDebugSession vscode.java.inferLaunchCommandLength]
|-[-] documentOnTypeFormattingProvider:
| |-[X] moreTriggerCharacter: [
}]
| `-[X] firstTriggerCharacter: ;
|-[-] codeLensProvider:
| `-[X] resolveProvider: t
|-[X] workspaceSymbolProvider: t
|-[X] documentSymbolProvider: t
|-[X] documentHighlightProvider: t
|-[X] referencesProvider: t
|-[X] implementationProvider: t
|-[X] typeDefinitionProvider: t
|-[X] definitionProvider: t
|-[-] signatureHelpProvider:
| `-[X] triggerCharacters: [(]
|-[-] completionProvider:
| |-[X] triggerCharacters: [. @ # *]
| `-[X] resolveProvider: t
|-[X] hoverProvider: t
`-[-] textDocumentSync:
|-[-] save:
| `-[X] includeText: t
|-[X] willSaveWaitUntil: t
|-[X] willSave: t
|-[X] change: 2
`-[X] openClose: t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment