Created
April 8, 2022 15:45
-
-
Save jlevon/42db621ef5d4154ebadebe1a19bc2cc0 to your computer and use it in GitHub Desktop.
vim-lsp debug out
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
[john.levon@john-levon .vim]$ Fri 08 Apr 2022 15:45:13 UTC:["lsp#register_server","server registered","clangd"] | |
Fri 08 Apr 2022 15:45:13 UTC:["lsp#register_server","server already registered","clangd"] | |
Fri 08 Apr 2022 15:45:13 UTC:["lsp#register_server","server registered","clangd"] | |
Fri 08 Apr 2022 15:45:13 UTC:["s:on_text_document_did_open()",1,"c","/home/john.levon/c","file:///home/john.levon/c/a.c"] | |
Fri 08 Apr 2022 15:45:13 UTC:["Starting server","clangd",["/opt/llvm/bin/clangd"]] | |
Fri 08 Apr 2022 15:45:13 UTC:[{"response":{"data":{"__data__":"vim-lsp","lsp_id":1,"server_name":"clangd"},"message":"started lsp server successfully"}}] | |
Fri 08 Apr 2022 15:45:13 UTC:["--->",1,"clangd",{"method":"initialize","params":{"rootUri":"file:///home/john.levon/c","capabilities":{"workspace":{"workspaceFolders":false,"configuration":true,"applyEdit":true},"window":{"workDoneProgress":false},"textDocument":{"semanticHighlightingCapabilities":{"semanticHighlighting":false},"codeAction":{"isPreferredSupport":true,"disabledSupport":true,"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}},"dynamicRegistration":false},"completion":{"completionItem":{"snippetSupport":false,"resolveSupport":{"properties":["additionalTextEdits"]},"documentationFormat":["markdown","plaintext"]},"dynamicRegistration":false,"completionItemKind":{"valueSet":[10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,1,2,3,4,5,6,7,8,9]}},"formatting":{"dynamicRegistration":false},"codeLens":{"dynamicRegistration":false},"hover":{"dynamicRegistration":false,"contentFormat":["markdown","plaintext"]},"rangeFormatting":{"dynamicRegistration":false},"declaration":{"dynamicRegistration":false,"linkSupport":true},"references":{"dynamicRegistration":false},"typeHierarchy":false,"foldingRange":{"rangeLimit":5000,"dynamicRegistration":false,"lineFoldingOnly":true},"documentSymbol":{"symbolKind":{"valueSet":[10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,1,2,3,4,5,6,7,8,9]},"dynamicRegistration":false,"labelSupport":false,"hierarchicalDocumentSymbolSupport":false},"publishDiagnostics":{"relatedInformation":true},"synchronization":{"dynamicRegistration":false,"willSaveWaitUntil":false,"willSave":false,"didSave":true},"documentHighlight":{"dynamicRegistration":false},"implementation":{"dynamicRegistration":false,"linkSupport":true},"typeDefinition":{"dynamicRegistration":false,"linkSupport":true},"definition":{"dynamicRegistration":false,"linkSupport":true}}},"rootPath":"/home/john.levon/c","clientInfo":{"name":"vim-lsp"},"processId":108255,"trace":"off"}}] | |
Fri 08 Apr 2022 15:45:13 UTC:["<---",1,"clangd",{"response":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"executeCommandProvider":{"commands":["clangd.applyFix","clangd.applyTweak"]},"documentHighlightProvider":true,"astProvider":true,"typeDefinitionProvider":true,"workspaceSymbolProvider":true,"referencesProvider":true,"hoverProvider":true,"selectionRangeProvider":true,"signatureHelpProvider":{"triggerCharacters":["(",")","{","}","<",">",","]},"compilationDatabase":{"automaticReload":true},"callHierarchyProvider":true,"codeActionProvider":{"codeActionKinds":["quickfix","refactor","info"]},"textDocumentSync":{"save":true,"change":2,"openClose":true},"implementationProvider":true,"memoryUsageProvider":true,"documentLinkProvider":{"resolveProvider":false},"declarationProvider":true,"documentOnTypeFormattingProvider":{"moreTriggerCharacter":[],"firstTriggerCharacter":"\n"},"clangdInlayHintsProvider":true,"definitionProvider":true,"documentRangeFormattingProvider":true,"semanticTokensProvider":{"full":{"delta":true},"legend":{"tokenTypes":["variable","variable","parameter","function","method","function","property","variable","class","interface","enum","enumMember","type","type","unknown","namespace","typeParameter","concept","type","macro","comment"],"tokenModifiers":["declaration","deprecated","deduced","readonly","static","abstract","virtual","dependentName","defaultLibrary","usedAsMutableReference","functionScope","classScope","fileScope","globalScope"]},"range":false},"typeHierarchyProvider":true,"documentFormattingProvider":true,"documentSymbolProvider":true,"renameProvider":true,"completionProvider":{"allCommitCharacters":[" ","\t","(",")","[","]","{","}","<",">",":",";",",","+","-","/","*","%","^","&","#","?",".","=","\"","'","|"],"resolveProvider":false,"triggerCharacters":[".","<",">",":","\"","/","*"]}},"serverInfo":{"version":"clangd version 15.0.0 (https://github.com/llvm/llvm-project.git ec93b28909749619dbe58b092a13da9d1ff1eb1e) linux x86_64-unknown-linux-gnu","name":"clangd"}}},"request":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"rootUri":"file:///home/john.levon/c","capabilities":{"workspace":{"workspaceFolders":false,"configuration":true,"applyEdit":true},"window":{"workDoneProgress":false},"textDocument":{"semanticHighlightingCapabilities":{"semanticHighlighting":false},"codeAction":{"isPreferredSupport":true,"disabledSupport":true,"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}},"dynamicRegistration":false},"completion":{"completionItem":{"snippetSupport":false,"resolveSupport":{"properties":["additionalTextEdits"]},"documentationFormat":["markdown","plaintext"]},"dynamicRegistration":false,"completionItemKind":{"valueSet":[10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,1,2,3,4,5,6,7,8,9]}},"formatting":{"dynamicRegistration":false},"codeLens":{"dynamicRegistration":false},"hover":{"dynamicRegistration":false,"contentFormat":["markdown","plaintext"]},"rangeFormatting":{"dynamicRegistration":false},"declaration":{"dynamicRegistration":false,"linkSupport":true},"references":{"dynamicRegistration":false},"typeHierarchy":false,"foldingRange":{"rangeLimit":5000,"dynamicRegistration":false,"lineFoldingOnly":true},"documentSymbol":{"symbolKind":{"valueSet":[10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,1,2,3,4,5,6,7,8,9]},"dynamicRegistration":false,"labelSupport":false,"hierarchicalDocumentSymbolSupport":false},"publishDiagnostics":{"relatedInformation":true},"synchronization":{"dynamicRegistration":false,"willSaveWaitUntil":false,"willSave":false,"didSave":true},"documentHighlight":{"dynamicRegistration":false},"implementation":{"dynamicRegistration":false,"linkSupport":true},"typeDefinition":{"dynamicRegistration":false,"linkSupport":true},"definition":{"dynamicRegistration":false,"linkSupport":true}}},"rootPath":"/home/john.levon/c","clientInfo":{"name":"vim-lsp"},"processId":108255,"trace":"off"}}}] | |
Fri 08 Apr 2022 15:45:13 UTC:["--->",1,"clangd",{"method":"initialized","params":{}}] | |
Fri 08 Apr 2022 15:45:13 UTC:[{"response":{"data":{"__data__":"vim-lsp","server_name":"clangd"},"message":"configuration sent"}}] | |
Fri 08 Apr 2022 15:45:13 UTC:["s:update_file_content()",1] | |
Fri 08 Apr 2022 15:45:13 UTC:["--->",1,"clangd",{"method":"textDocument/didOpen","params":{"textDocument":{"uri":"file:///home/john.levon/c/a.c","version":1,"languageId":"c","text":"\nvoid vdev_init(void)\n{\n}\n\nvoid vdev_init_2(void)\n{\n}\n"}}}] | |
Fri 08 Apr 2022 15:45:13 UTC:[{"response":{"data":{"path":"file:///home/john.levon/c/a.c","__data__":"vim-lsp","filetype":"c","server_name":"clangd"},"message":"textDocument/open sent"}}] | |
Fri 08 Apr 2022 15:45:13 UTC:[{"response":{"data":{"path":"file:///home/john.levon/c/a.c","__data__":"vim-lsp","server_name":"clangd"},"message":"not dirty"}}] | |
Fri 08 Apr 2022 15:45:13 UTC:["<---(stderr)",1,"clangd","I[15:45:13.712] clangd version 15.0.0 (https://github.com/llvm/llvm-project.git ec93b28909749619dbe58b092a13da9d1ff1eb1e)\nI[15:45:13.712] Features: linux\nI[15:45:13.712] PID: 108256\nI[15:45:13.712] Working directory: /home/john.levon/c\nI[15:45:13.712] argv[0]: /opt/llvm/bin/clangd\nI[15:45:13.712] Starting LSP over stdin/stdout\nI[15:45:13.718] <-- initialize(1)\nI[15:45:13.719] --> reply:initialize(1) 1 ms\nI[15:45:13.728] <-- initialized\nI[15:45:13.737] <-- textDocument/didOpen\nI[15:45:13.738] Loaded compilation database from /home/john.levon/c/compile_commands.json\nI[15:45:13.739] ASTWorker building file /home/john.levon/c/a.c version 1 with command \n[/home/john.levon/c]\n/usr/bin/cc -o CMakeFiles/mylib.dir/a.c.o -c -resource-dir=/opt/llvm/lib/clang/15.0.0 -- /home/john.levon/c/a.c\nI[15:45:13.739] Enqueueing 2 commands for indexing\n"] | |
Fri 08 Apr 2022 15:45:13 UTC:["<---",1,"clangd",{"response":{"method":"textDocument/publishDiagnostics","jsonrpc":"2.0","params":{"diagnostics":[],"uri":"file:///home/john.levon/c/a.c","version":1}}}] | |
Fri 08 Apr 2022 15:45:13 UTC:["<---(stderr)",1,"clangd","I[15:45:13.760] --> textDocument/publishDiagnostics\n"] | |
Fri 08 Apr 2022 15:45:14 UTC:[{"response":{"data":{"__data__":"vim-lsp","server_name":"clangd"},"message":"server already started"}}] | |
Fri 08 Apr 2022 15:45:14 UTC:[{"response":{"data":{"__data__":"vim-lsp","init_result":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"executeCommandProvider":{"commands":["clangd.applyFix","clangd.applyTweak"]},"documentHighlightProvider":true,"astProvider":true,"typeDefinitionProvider":true,"workspaceSymbolProvider":true,"referencesProvider":true,"hoverProvider":true,"selectionRangeProvider":true,"signatureHelpProvider":{"triggerCharacters":["(",")","{","}","<",">",","]},"compilationDatabase":{"automaticReload":true},"callHierarchyProvider":true,"codeActionProvider":{"codeActionKinds":["quickfix","refactor","info"]},"textDocumentSync":{"save":true,"change":2,"openClose":true},"implementationProvider":true,"memoryUsageProvider":true,"documentLinkProvider":{"resolveProvider":false},"declarationProvider":true,"documentOnTypeFormattingProvider":{"moreTriggerCharacter":[],"firstTriggerCharacter":"\n"},"clangdInlayHintsProvider":true,"definitionProvider":true,"documentRangeFormattingProvider":true,"semanticTokensProvider":{"full":{"delta":true},"legend":{"tokenTypes":["variable","variable","parameter","function","method","function","property","variable","class","interface","enum","enumMember","type","type","unknown","namespace","typeParameter","concept","type","macro","comment"],"tokenModifiers":["declaration","deprecated","deduced","readonly","static","abstract","virtual","dependentName","defaultLibrary","usedAsMutableReference","functionScope","classScope","fileScope","globalScope"]},"range":false},"typeHierarchyProvider":true,"documentFormattingProvider":true,"documentSymbolProvider":true,"renameProvider":true,"completionProvider":{"allCommitCharacters":[" ","\t","(",")","[","]","{","}","<",">",":",";",",","+","-","/","*","%","^","&","#","?",".","=","\"","'","|"],"resolveProvider":false,"triggerCharacters":[".","<",">",":","\"","/","*"]}},"serverInfo":{"version":"clangd version 15.0.0 (https://github.com/llvm/llvm-project.git ec93b28909749619dbe58b092a13da9d1ff1eb1e) linux x86_64-unknown-linux-gnu","name":"clangd"}}},"server_name":"clangd"},"message":"lsp server already initialized"}}] | |
Fri 08 Apr 2022 15:45:14 UTC:[{"response":{"data":{"__data__":"vim-lsp","server_name":"clangd"},"message":"configuration sent"}}] | |
Fri 08 Apr 2022 15:45:14 UTC:[{"response":{"data":{"path":"file:///home/john.levon/c/a.c","__data__":"vim-lsp","server_name":"clangd"},"message":"already opened"}}] | |
Fri 08 Apr 2022 15:45:14 UTC:[{"response":{"data":{"path":"file:///home/john.levon/c/a.c","__data__":"vim-lsp","server_name":"clangd"},"message":"not dirty"}}] | |
Fri 08 Apr 2022 15:45:14 UTC:["--->",1,"clangd",{"method":"textDocument/documentHighlight","on_notification":"---funcref---","params":{"textDocument":{"uri":"file:///home/john.levon/c/a.c"},"position":{"character":5,"line":1}}}] | |
Fri 08 Apr 2022 15:45:14 UTC:["<---(stderr)",1,"clangd","I[15:45:14.088] <-- textDocument/documentHighlight(2)\n"] | |
Fri 08 Apr 2022 15:45:14 UTC:["<---",1,"clangd",{"response":{"id":2,"jsonrpc":"2.0","result":[{"range":{"end":{"character":14,"line":1},"start":{"character":5,"line":1}},"kind":1}]},"request":{"id":2,"jsonrpc":"2.0","method":"textDocument/documentHighlight","params":{"textDocument":{"uri":"file:///home/john.levon/c/a.c"},"position":{"character":5,"line":1}}}}] | |
Fri 08 Apr 2022 15:45:14 UTC:["<---(stderr)",1,"clangd","I[15:45:14.088] --> reply:textDocument/documentHighlight(2) 0 ms\n"] | |
Fri 08 Apr 2022 15:45:14 UTC:[{"response":{"data":{"__data__":"vim-lsp","server_name":"clangd"},"message":"server already started"}}] | |
Fri 08 Apr 2022 15:45:14 UTC:[{"response":{"data":{"__data__":"vim-lsp","init_result":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"executeCommandProvider":{"commands":["clangd.applyFix","clangd.applyTweak"]},"documentHighlightProvider":true,"astProvider":true,"typeDefinitionProvider":true,"workspaceSymbolProvider":true,"referencesProvider":true,"hoverProvider":true,"selectionRangeProvider":true,"signatureHelpProvider":{"triggerCharacters":["(",")","{","}","<",">",","]},"compilationDatabase":{"automaticReload":true},"callHierarchyProvider":true,"codeActionProvider":{"codeActionKinds":["quickfix","refactor","info"]},"textDocumentSync":{"save":true,"change":2,"openClose":true},"implementationProvider":true,"memoryUsageProvider":true,"documentLinkProvider":{"resolveProvider":false},"declarationProvider":true,"documentOnTypeFormattingProvider":{"moreTriggerCharacter":[],"firstTriggerCharacter":"\n"},"clangdInlayHintsProvider":true,"definitionProvider":true,"documentRangeFormattingProvider":true,"semanticTokensProvider":{"full":{"delta":true},"legend":{"tokenTypes":["variable","variable","parameter","function","method","function","property","variable","class","interface","enum","enumMember","type","type","unknown","namespace","typeParameter","concept","type","macro","comment"],"tokenModifiers":["declaration","deprecated","deduced","readonly","static","abstract","virtual","dependentName","defaultLibrary","usedAsMutableReference","functionScope","classScope","fileScope","globalScope"]},"range":false},"typeHierarchyProvider":true,"documentFormattingProvider":true,"documentSymbolProvider":true,"renameProvider":true,"completionProvider":{"allCommitCharacters":[" ","\t","(",")","[","]","{","}","<",">",":",";",",","+","-","/","*","%","^","&","#","?",".","=","\"","'","|"],"resolveProvider":false,"triggerCharacters":[".","<",">",":","\"","/","*"]}},"serverInfo":{"version":"clangd version 15.0.0 (https://github.com/llvm/llvm-project.git ec93b28909749619dbe58b092a13da9d1ff1eb1e) linux x86_64-unknown-linux-gnu","name":"clangd"}}},"server_name":"clangd"},"message":"lsp server already initialized"}}] | |
Fri 08 Apr 2022 15:45:14 UTC:[{"response":{"data":{"__data__":"vim-lsp","server_name":"clangd"},"message":"configuration sent"}}] | |
Fri 08 Apr 2022 15:45:14 UTC:[{"response":{"data":{"path":"file:///home/john.levon/c/a.c","__data__":"vim-lsp","server_name":"clangd"},"message":"already opened"}}] | |
Fri 08 Apr 2022 15:45:14 UTC:[{"response":{"data":{"path":"file:///home/john.levon/c/a.c","__data__":"vim-lsp","server_name":"clangd"},"message":"not dirty"}}] | |
Fri 08 Apr 2022 15:45:14 UTC:["--->",1,"clangd",{"method":"textDocument/codeAction","on_notification":"---funcref---","params":{"context":{"diagnostics":[],"only":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite"]},"range":{"end":{"character":20,"line":1},"start":{"character":5,"line":1}},"textDocument":{"uri":"file:///home/john.levon/c/a.c"}}}] | |
Fri 08 Apr 2022 15:45:14 UTC:["<---(stderr)",1,"clangd","I[15:45:14.240] <-- textDocument/codeAction(3)\n"] | |
Fri 08 Apr 2022 15:45:14 UTC:["<---",1,"clangd",{"response":{"id":3,"jsonrpc":"2.0","result":[]},"request":{"id":3,"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"context":{"diagnostics":[],"only":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite"]},"range":{"end":{"character":20,"line":1},"start":{"character":5,"line":1}},"textDocument":{"uri":"file:///home/john.levon/c/a.c"}}}}] | |
Fri 08 Apr 2022 15:45:14 UTC:["<---(stderr)",1,"clangd","I[15:45:14.240] --> reply:textDocument/codeAction(3) 0 ms\n"] | |
Fri 08 Apr 2022 15:45:17 UTC:[{"response":{"data":{"__data__":"vim-lsp","server_name":"clangd"},"message":"server already started"}}] | |
Fri 08 Apr 2022 15:45:17 UTC:[{"response":{"data":{"__data__":"vim-lsp","init_result":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"executeCommandProvider":{"commands":["clangd.applyFix","clangd.applyTweak"]},"documentHighlightProvider":true,"astProvider":true,"typeDefinitionProvider":true,"workspaceSymbolProvider":true,"referencesProvider":true,"hoverProvider":true,"selectionRangeProvider":true,"signatureHelpProvider":{"triggerCharacters":["(",")","{","}","<",">",","]},"compilationDatabase":{"automaticReload":true},"callHierarchyProvider":true,"codeActionProvider":{"codeActionKinds":["quickfix","refactor","info"]},"textDocumentSync":{"save":true,"change":2,"openClose":true},"implementationProvider":true,"memoryUsageProvider":true,"documentLinkProvider":{"resolveProvider":false},"declarationProvider":true,"documentOnTypeFormattingProvider":{"moreTriggerCharacter":[],"firstTriggerCharacter":"\n"},"clangdInlayHintsProvider":true,"definitionProvider":true,"documentRangeFormattingProvider":true,"semanticTokensProvider":{"full":{"delta":true},"legend":{"tokenTypes":["variable","variable","parameter","function","method","function","property","variable","class","interface","enum","enumMember","type","type","unknown","namespace","typeParameter","concept","type","macro","comment"],"tokenModifiers":["declaration","deprecated","deduced","readonly","static","abstract","virtual","dependentName","defaultLibrary","usedAsMutableReference","functionScope","classScope","fileScope","globalScope"]},"range":false},"typeHierarchyProvider":true,"documentFormattingProvider":true,"documentSymbolProvider":true,"renameProvider":true,"completionProvider":{"allCommitCharacters":[" ","\t","(",")","[","]","{","}","<",">",":",";",",","+","-","/","*","%","^","&","#","?",".","=","\"","'","|"],"resolveProvider":false,"triggerCharacters":[".","<",">",":","\"","/","*"]}},"serverInfo":{"version":"clangd version 15.0.0 (https://github.com/llvm/llvm-project.git ec93b28909749619dbe58b092a13da9d1ff1eb1e) linux x86_64-unknown-linux-gnu","name":"clangd"}}},"server_name":"clangd"},"message":"lsp server already initialized"}}] | |
Fri 08 Apr 2022 15:45:17 UTC:[{"response":{"data":{"__data__":"vim-lsp","server_name":"clangd"},"message":"configuration sent"}}] | |
Fri 08 Apr 2022 15:45:18 UTC:[{"response":{"data":{"path":"file:///home/john.levon/c/a.c","__data__":"vim-lsp","server_name":"clangd"},"message":"already opened"}}] | |
Fri 08 Apr 2022 15:45:18 UTC:[{"response":{"data":{"path":"file:///home/john.levon/c/a.c","__data__":"vim-lsp","server_name":"clangd"},"message":"not dirty"}}] | |
Fri 08 Apr 2022 15:45:18 UTC:["--->",1,"clangd",{"method":"workspace/symbol","on_notification":"---funcref---","params":{"query":"vdev_init"}}] | |
Fri 08 Apr 2022 15:45:18 UTC:["<---",1,"clangd",{"response":{"id":4,"jsonrpc":"2.0","result":[{"score":0.55,"location":{"uri":"file:///home/john.levon/c/a.c","range":{"end":{"character":14,"line":1},"start":{"character":5,"line":1}}},"name":"vdev_init","kind":12,"containerName":""},{"score":0.55,"location":{"uri":"file:///home/john.levon/c/a.c","range":{"end":{"character":16,"line":5},"start":{"character":5,"line":5}}},"name":"vdev_init_2","kind":12,"containerName":""},{"score":0.55,"location":{"uri":"file:///home/john.levon/c/b.c","range":{"end":{"character":17,"line":5},"start":{"character":5,"line":5}}},"name":"vdev_init_2z","kind":12,"containerName":""}]},"request":{"id":4,"jsonrpc":"2.0","method":"workspace/symbol","params":{"query":"vdev_init"}}}] | |
Fri 08 Apr 2022 15:45:18 UTC:["<---(stderr)",1,"clangd","I[15:45:18.010] <-- workspace/symbol(4)\nI[15:45:18.011] --> reply:workspace/symbol(4) 0 ms\n"] | |
Fri 08 Apr 2022 15:45:18 UTC:[" jlevon vdev_init"] | |
Fri 08 Apr 2022 15:45:18 UTC:[" jlevon vdev_init_2"] | |
Fri 08 Apr 2022 15:45:18 UTC:[" jlevon vdev_init_2z"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment