Created
July 5, 2023 17:30
-
-
Save awerdx520/6f0712b65545747c2e0a27f2706a4d9d to your computer and use it in GitHub Desktop.
eglot java 配置的日志输出是
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
[internal] Thu Jul 6 00:58:35 2023: | |
(:message "Running language server: /home/user/doom-emacs/.local/etc/lsp/java/jdtls/bin/jdtls -configuration /home/user/doom-emacs/.local/etc/lsp/java/jdtls/config_linux -data /home/user/doom-emacs/.local/etc/lsp/java/workspace --jvm-arg=-javaagent:/home/user/doom-emacs/.local/etc/lsp/java/lombok.jar") | |
[client-request] (id:1) Thu Jul 6 00:58:36 2023: | |
(:jsonrpc "2.0" :id 1 :method "initialize" :params | |
(:processId 256480 :clientInfo | |
(:name "Eglot") | |
:rootPath "/home/user/path/to/project/" :rootUri "file:///home/user/path/to/project" :initializationOptions | |
(:settings | |
(:java | |
(:configuration | |
(:runtime | |
[(:name "JavaSE-1.8" :path "/usr/lib/jvm/java-8-openjdk" :default t) | |
(:name "JavaSE-11" :path "/usr/lib/jvm/java-11-openjdk") | |
(:name "JavaSE-17" :path "/usr/lib/jvm/java-17-openjdk")]) | |
:format | |
(:settings | |
(:url "/home/user/doom-config/formatter/java-google-style.xml" :profile "GoogleStyle")) | |
:autobuild | |
(:enabled t) | |
:contentProvider | |
(:preferred "fernflower"))) | |
:extendedClientCapabilities | |
(:classFileContentsSupport t) | |
:bundles | |
["/home/user/doom-emacs/.local/etc/lsp/java/bundles/dg.jdt.ls.decompiler.cfr-0.0.3.jar" "/home/user/doom-emacs/.local/etc/lsp/java/bundles/dg.jdt.ls.decompiler.common-0.0.3.jar" "/home/user/doom-emacs/.local/etc/lsp/java/bundles/dg.jdt.ls.decompiler.fernflower-0.0.3.jar" "/home/user/doom-emacs/.local/etc/lsp/java/bundles/dg.jdt.ls.decompiler.procyon-0.0.3.jar"]) | |
:capabilities | |
(:workspace | |
(:applyEdit t :executeCommand | |
(:dynamicRegistration :json-false) | |
:workspaceEdit | |
(:documentChanges t) | |
:didChangeWatchedFiles | |
(:dynamicRegistration t) | |
:symbol | |
(:dynamicRegistration :json-false) | |
:configuration t :workspaceFolders t) | |
:textDocument | |
(:synchronization | |
(:dynamicRegistration :json-false :willSave t :willSaveWaitUntil t :didSave t) | |
:completion | |
(:dynamicRegistration :json-false :completionItem | |
(:snippetSupport t :deprecatedSupport t :resolveSupport | |
(:properties | |
["documentation" "details" "additionalTextEdits"]) | |
:tagSupport | |
(:valueSet | |
[1])) | |
:contextSupport t) | |
:hover | |
(:dynamicRegistration :json-false :contentFormat | |
["markdown" "plaintext"]) | |
:signatureHelp | |
(:dynamicRegistration :json-false :signatureInformation | |
(:parameterInformation | |
(:labelOffsetSupport t) | |
:documentationFormat | |
["markdown" "plaintext"] | |
:activeParameterSupport t)) | |
:references | |
(:dynamicRegistration :json-false) | |
:definition | |
(:dynamicRegistration :json-false :linkSupport t) | |
:declaration | |
(:dynamicRegistration :json-false :linkSupport t) | |
:implementation | |
(:dynamicRegistration :json-false :linkSupport t) | |
:typeDefinition | |
(:dynamicRegistration :json-false :linkSupport t) | |
:documentSymbol | |
(:dynamicRegistration :json-false :hierarchicalDocumentSymbolSupport t :symbolKind | |
(:valueSet | |
[1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26])) | |
:documentHighlight | |
(:dynamicRegistration :json-false) | |
:codeAction | |
(:dynamicRegistration :json-false :codeActionLiteralSupport | |
(:codeActionKind | |
(:valueSet | |
["quickfix" "refactor" "refactor.extract" "refactor.inline" "refactor.rewrite" "source" "source.organizeImports"])) | |
:isPreferredSupport t) | |
:formatting | |
(:dynamicRegistration :json-false) | |
:rangeFormatting | |
(:dynamicRegistration :json-false) | |
:rename | |
(:dynamicRegistration :json-false) | |
:inlayHint | |
(:dynamicRegistration :json-false) | |
:publishDiagnostics | |
(:relatedInformation :json-false :codeDescriptionSupport :json-false :tagSupport | |
(:valueSet | |
[1 2]))) | |
:window | |
(:showDocument | |
(:support t) | |
:workDoneProgress t) | |
:general | |
(:positionEncodings | |
["utf-32" "utf-8" "utf-16"]) | |
:experimental #s(hash-table size 1 test eql rehash-size 1.5 rehash-threshold 0.8125 data | |
())) | |
:workspaceFolders | |
[(:uri "file:///home/user/path/to/project" :name "~/path/to/project/")])) | |
[stderr] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". | |
[stderr] SLF4J: Defaulting to no-operation (NOP) logger implementation | |
[stderr] SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. | |
[server-notification] Thu Jul 6 00:58:38 2023: | |
(:jsonrpc "2.0" :method "language/status" :params | |
(:type "Starting" :message "Init...")) | |
[server-notification] Thu Jul 6 00:58:38 2023: | |
(:jsonrpc "2.0" :method "language/status" :params | |
(:type "Starting" :message "0% Starting Java Language Server")) | |
[server-reply] (id:1) Thu Jul 6 00:58:38 2023: | |
(:jsonrpc "2.0" :id 1 :result | |
(:capabilities | |
(:textDocumentSync | |
(:openClose t :change 2 :willSave t :willSaveWaitUntil t :save | |
(:includeText t)) | |
:hoverProvider t :completionProvider | |
(:resolveProvider t :triggerCharacters | |
["." "@" "#" "*" " "]) | |
:signatureHelpProvider | |
(:triggerCharacters | |
["(" ","]) | |
:definitionProvider t :typeDefinitionProvider t :implementationProvider t :referencesProvider t :documentHighlightProvider t :documentSymbolProvider t :workspaceSymbolProvider t :codeActionProvider t :codeLensProvider | |
(:resolveProvider t) | |
:documentFormattingProvider t :documentRangeFormattingProvider t :documentOnTypeFormattingProvider | |
(:firstTriggerCharacter ";" :moreTriggerCharacter | |
["\n" "}"]) | |
:renameProvider | |
(:prepareProvider t) | |
:foldingRangeProvider t :executeCommandProvider | |
(:commands | |
["vscode.java.checkProjectSettings" "vscode.java.isOnClasspath" "java.project.list" "vscode.java.fetchUsageData" "java.navigate.openTypeHierarchy" "vscode.java.test.search.items.all" "sts.java.hierarchy.supertypes" "java.edit.stringFormatting" "sts.java.hierarchy.subtypes" "vscode.java.resolveMainClass" "vscode.java.test.search.location" "vscode.java.buildWorkspace" "vscode.java.resolveJavaExecutable" "sts.java.type" "java.project.refreshDiagnostics" "vscode.java.resolveInlineVariables" "java.project.listSourcePaths" "sts.java.search.packages" "java.project.getClasspaths" "java.project.updateSourceAttachment" "vscode.java.resolveClasspath" "vscode.java.resolveBuildFiles" "vscode.java.resolveSourceUri" "vscode.java.test.search.items" "vscode.java.fetchPlatformSettings" "java.project.resolveSourceAttachment" "sts.java.removeClasspathListener" "java.project.addToSourcePath" "vscode.java.startDebugSession" "java.project.import" "vscode.java.validateLaunchConfig" "java.project.resolveStackTraceLocation" "vscode.java.test.junit.argument" "vscode.java.resolveMainMethod" "java.project.getSettings" "java.project.resolveWorkspaceSymbol" "sts.java.addClasspathListener" "java.project.upgradeGradle" "vscode.java.test.get.testpath" "java.resolvePath" "sts.java.javadoc" "vscode.java.resolveElementAtSelection" "vscode.java.test.search.codelens" "java.edit.organizeImports" "java.project.removeFromSourcePath" "sts.java.javadocHoverLink" "java.project.getAll" "java.project.isTestFile" "sts.java.search.types" "vscode.java.resolveClassFilters" "java.getPackageData" "java.navigate.resolveTypeHierarchy" "vscode.java.updateDebugSettings" "sts.java.location" "vscode.java.inferLaunchCommandLength"]) | |
:workspace | |
(:workspaceFolders | |
(:supported t :changeNotifications t)) | |
:callHierarchyProvider t :selectionRangeProvider t :semanticTokensProvider | |
(:legend | |
(:tokenTypes | |
["namespace" "class" "interface" "enum" "enumMember" "type" "typeParameter" "method" "property" "variable" "parameter" "modifier" "keyword" "annotation" "annotationMember" "record" "recordComponent"] | |
:tokenModifiers | |
["abstract" "static" "readonly" "deprecated" "declaration" "documentation" "public" "private" "protected" "native" "generic" "typeArgument" "importDeclaration" "constructor"]) | |
:range :json-false :full | |
(:delta :json-false) | |
:documentSelector | |
[(:language "java" :scheme "file") | |
(:language "java" :scheme "jdt")])))) | |
[client-notification] Thu Jul 6 00:58:38 2023: | |
(:jsonrpc "2.0" :method "initialized" :params #s(hash-table size 1 test eql rehash-size 1.5 rehash-threshold 0.8125 data | |
())) | |
[client-notification] Thu Jul 6 00:58:38 2023: | |
(:jsonrpc "2.0" :method "textDocument/didOpen" :params | |
(:textDocument | |
(:uri "file:///home/user/path/to/project/src/main/java/com/example/App.java" :version 0 :languageId "java" :text "package com.example;\n\nimport com.google.common.base.Joiner;\nimport com.google.common.collect.Lists;\n\n/**\n * Hello world!\n *\n */\npublic class App {\n public static void main(String[] args) {\n int x = -1;\n x >>>= 8;\n System.out.println(x);\n System.out.println(Integer.toBinaryString(x));\n x = -1;\n x >>= 8;\n System.out.println(x);\n System.out.println(Integer.toBinaryString(x));\n\n System.out.println();\n String str = Joiner.on(\",\").join(Lists.newArrayList(\"a\", \"b\", \"c\"));\n System.out.println(str);\n }\n\n public void testComplete(String one, String two) {\n System.out.println(\"hello,world! I'am test complete method\");\n }\n}\n"))) | |
[client-notification] Thu Jul 6 00:58:38 2023: | |
(:jsonrpc "2.0" :method "workspace/didChangeConfiguration" :params | |
(:settings #s(hash-table size 1 test eql rehash-size 1.5 rehash-threshold 0.8125 data | |
()))) | |
[server-notification] Thu Jul 6 00:58:39 2023: | |
(:jsonrpc "2.0" :method "language/status" :params | |
(:type "Starting" :message "30% Starting Java Language Server")) | |
[server-notification] Thu Jul 6 00:58:39 2023: | |
(:jsonrpc "2.0" :method "language/status" :params | |
(:type "Starting" :message "34% Starting Java Language Server")) | |
[server-notification] Thu Jul 6 00:58:40 2023: | |
(:jsonrpc "2.0" :method "language/status" :params | |
(:type "ProjectStatus" :message "WARNING")) | |
[server-notification] Thu Jul 6 00:58:40 2023: | |
(:jsonrpc "2.0" :method "language/status" :params | |
(:type "Starting" :message "100% Starting Java Language Server - Refreshing '/java-learn'.")) | |
[server-notification] Thu Jul 6 00:58:40 2023: | |
(:jsonrpc "2.0" :method "language/status" :params | |
(:type "Started" :message "Ready")) | |
[server-notification] Thu Jul 6 00:58:40 2023: | |
(:jsonrpc "2.0" :method "language/status" :params | |
(:type "Starting" :message "100% Starting Java Language Server - Refreshing '/java-learn'.")) | |
[server-notification] Thu Jul 6 00:58:41 2023: | |
(:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params | |
(:uri "file:///home/user/path/to/project/src/main/java/com/example/App.java" :diagnostics | |
[(:range | |
(:start | |
(:line 0 :character 0) | |
:end | |
(:line 0 :character 1)) | |
:severity 2 :code "32" :source "Java" :message "App.java is not on the classpath of project java-learn, only syntax errors are reported")])) | |
[server-request] (id:1) Thu Jul 6 00:58:41 2023: | |
(:jsonrpc "2.0" :id "1" :method "client/registerCapability" :params | |
(:registrations | |
[(:id "348e3800-6076-4c42-89a4-30d929878f2d" :method "workspace/didChangeWatchedFiles" :registerOptions | |
(:watchers | |
[(:globPattern "**/*.java") | |
(:globPattern "**/.project") | |
(:globPattern "**/.classpath") | |
(:globPattern "**/.settings/*.prefs") | |
(:globPattern "**/src/**") | |
(:globPattern "**/*.gradle") | |
(:globPattern "**/*.gradle.kts") | |
(:globPattern "**/gradle.properties") | |
(:globPattern "**/pom.xml") | |
(:globPattern "/home/user/path/to/project/target/generated-sources/annotations/**") | |
(:globPattern "/home/user/path/to/project" :kind 4)]))])) | |
[client-reply] (id:1) Thu Jul 6 00:58:41 2023: | |
(:jsonrpc "2.0" :id "1" :result nil) | |
[server-notification] Thu Jul 6 00:58:41 2023: | |
(:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params | |
(:uri "file:///home/user/path/to/project/pom.xml" :diagnostics | |
[(:range | |
(:start | |
(:line 39 :character 1) | |
:end | |
(:line 39 :character 15)) | |
:severity 1 :code "0" :source "Java" :message "Project build error: 'dependencies.dependency.version' for com.google.guava:guava:jar is missing.")])) | |
[server-notification] Thu Jul 6 00:58:41 2023: | |
(:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params | |
(:uri "file:///home/user/path/to/project" :diagnostics | |
[(:range | |
(:start | |
(:line 0 :character 0) | |
:end | |
(:line 0 :character 0)) | |
:severity 2 :code "0" :source "Java" :message "Build path specifies execution environment JavaSE-1.8. There are no JREs installed in the workspace that are strictly compatible with this environment. ") | |
(:range | |
(:start | |
(:line 0 :character 0) | |
:end | |
(:line 0 :character 0)) | |
:severity 2 :code "0" :source "Java" :message "The compiler compliance specified is 1.8 but a JRE 11 is used") | |
(:range | |
(:start | |
(:line 0 :character 0) | |
:end | |
(:line 0 :character 0)) | |
:severity 1 :code "0" :source "Java" :message "Could not read maven project")])) | |
[server-notification] Thu Jul 6 00:58:41 2023: | |
(:jsonrpc "2.0" :method "textDocument/publishDiagnostics" :params | |
(:uri "file:///home/user/path/to/project/pom.xml" :diagnostics | |
[(:range | |
(:start | |
(:line 39 :character 1) | |
:end | |
(:line 39 :character 15)) | |
:severity 1 :code "0" :source "Java" :message "Project build error: 'dependencies.dependency.version' for com.google.guava:guava:jar is missing.")])) | |
[server-request] (id:2) Thu Jul 6 00:58:41 2023: | |
(:jsonrpc "2.0" :id "2" :method "client/registerCapability" :params | |
(:registrations | |
[(:id "c7f4b06e-bb5f-412d-97bd-848a440fbc7c" :method "workspace/didChangeWorkspaceFolders")])) | |
[client-reply] (id:2) Thu Jul 6 00:58:41 2023: | |
(:jsonrpc "2.0" :id "2" :result nil) | |
[server-notification] Thu Jul 6 00:58:41 2023: | |
(:jsonrpc "2.0" :method "language/status" :params | |
(:type "ServiceReady" :message "ServiceReady")) | |
[client-request] (id:2) Thu Jul 6 00:58:44 2023: | |
(:jsonrpc "2.0" :id 2 :method "textDocument/hover" :params | |
(:textDocument | |
(:uri "file:///home/user/path/to/project/src/main/java/com/example/App.java") | |
:position | |
(:line 20 :character 8))) | |
[client-request] (id:3) Thu Jul 6 00:58:44 2023: | |
(:jsonrpc "2.0" :id 3 :method "textDocument/signatureHelp" :params | |
(:textDocument | |
(:uri "file:///home/user/path/to/project/src/main/java/com/example/App.java") | |
:position | |
(:line 20 :character 8))) | |
[server-reply] (id:2) Thu Jul 6 00:58:44 2023: | |
(:jsonrpc "2.0" :id 2 :result | |
(:contents | |
[])) | |
[server-reply] (id:3) Thu Jul 6 00:58:44 2023: | |
(:jsonrpc "2.0" :id 3 :result | |
(:signatures | |
[(:label "println() : void" :parameters | |
[]) | |
(:label "println(Object x) : void" :parameters | |
[(:label "Object x")]) | |
(:label "println(String x) : void" :parameters | |
[(:label "String x")]) | |
(:label "println(char[] x) : void" :parameters | |
[(:label "char[] x")]) | |
(:label "println(double x) : void" :parameters | |
[(:label "double x")]) | |
(:label "println(float x) : void" :parameters | |
[(:label "float x")]) | |
(:label "println(long x) : void" :parameters | |
[(:label "long x")]) | |
(:label "println(int x) : void" :parameters | |
[(:label "int x")]) | |
(:label "println(char x) : void" :parameters | |
[(:label "char x")]) | |
(:label "println(boolean x) : void" :parameters | |
[(:label "boolean x")])] | |
:activeSignature 0 :activeParameter -1)) | |
[client-request] (id:4) Thu Jul 6 00:58:47 2023: | |
(:jsonrpc "2.0" :id 4 :method "textDocument/hover" :params | |
(:textDocument | |
(:uri "file:///home/user/path/to/project/src/main/java/com/example/App.java") | |
:position | |
(:line 21 :character 8))) | |
[client-request] (id:5) Thu Jul 6 00:58:47 2023: | |
(:jsonrpc "2.0" :id 5 :method "textDocument/signatureHelp" :params | |
(:textDocument | |
(:uri "file:///home/user/path/to/project/src/main/java/com/example/App.java") | |
:position | |
(:line 21 :character 8))) | |
[server-reply] (id:5) Thu Jul 6 00:58:47 2023: | |
(:jsonrpc "2.0" :id 5 :result | |
(:signatures | |
[])) | |
[server-reply] (id:4) Thu Jul 6 00:58:47 2023: | |
(:jsonrpc "2.0" :id 4 :result | |
(:contents | |
[])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment