Skip to content

Instantly share code, notes, and snippets.

@pawansingh00
Last active November 18, 2021 05:31
Show Gist options
  • Save pawansingh00/dea21d4f3bb8609f065c8dae2ea5443c to your computer and use it in GitHub Desktop.
Save pawansingh00/dea21d4f3bb8609f065c8dae2ea5443c to your computer and use it in GitHub Desktop.
debug_logs.txt
2021-11-18 10:34:29,780 - DEBUG - Event name: FileReadyToParse
2021-11-18 10:34:29,780 - INFO - Adding buffer identifiers for file: /home/pawansingh/ycmd/samples/some_c.c
2021-11-18 10:34:30,450 - INFO - Clangd executable found at /home/pawansingh/ycmd/third_party/clangd/output/bin and up to date
2021-11-18 10:34:30,450 - INFO - Using Clangd from /home/pawansingh/ycmd/third_party/clangd/output/bin/clangd
2021-11-18 10:34:30,451 - INFO - Computed Clangd command: ['/home/pawansingh/ycmd/third_party/clangd/output/bin/clangd', '-header-insertion-decorators=0', '-resource-dir=/home/pawansingh/ycmd/third_party/clang/lib/clang/13.0.0', '-limit-results=500', '-log=verbose']
2021-11-18 10:34:30,452 - INFO - Completion config: 50, detailing -1 candiates
2021-11-18 10:34:30,452 - INFO - Returning cached Clangd command: ['/home/pawansingh/ycmd/third_party/clangd/output/bin/clangd', '-header-insertion-decorators=0', '-resource-dir=/home/pawansingh/ycmd/third_party/clang/lib/clang/13.0.0', '-limit-results=500', '-log=verbose']
2021-11-18 10:34:30,453 - INFO - Starting Clangd: ['/home/pawansingh/ycmd/third_party/clangd/output/bin/clangd', '-header-insertion-decorators=0', '-resource-dir=/home/pawansingh/ycmd/third_party/clang/lib/clang/13.0.0', '-limit-results=500', '-log=verbose']
2021-11-18 10:34:30,461 - INFO - Clangd started with PID 148269
2021-11-18 10:34:30,463 - DEBUG - TX: Sending message: b'Content-Length: 1242\r\n\r\n{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{"textDocument":{"codeAction":{"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}}},"completion":{"completionItem":{"documentationFormat":["plaintext","markdown"]},"completionItemKind":{"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]}},"documentSymbol":{"hierarchicalDocumentSymbolSupport":false,"labelSupport":false,"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]}},"hover":{"contentFormat":["plaintext","markdown"]},"signatureHelp":{"signatureInformation":{"documentationFormat":["plaintext","markdown"],"parameterInformation":{"labelOffsetSupport":true}}},"synchronization":{"didSave":true}},"workspace":{"applyEdit":true,"didChangeWatchedFiles":{"dynamicRegistration":true},"symbol":{"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]}},"workspaceEdit":{"documentChanges":true}}},"initializationOptions":{},"processId":148151,"rootPath":"/home/pawansingh/ycmd/samples","rootUri":"file:///home/pawansingh/ycmd/samples"}}'
127.0.0.1 - - [18/Nov/2021 10:34:30] "POST /event_notification HTTP/1.1" 200 2
2021-11-18 10:34:30,482 - DEBUG - Using filetype completion: False
127.0.0.1 - - [18/Nov/2021 10:34:30] "POST /completions HTTP/1.1" 200 160
2021-11-18 10:34:30,555 - DEBUG - RX: Received message: b'{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"astProvider":true,"callHierarchyProvider":true,"codeActionProvider":{"codeActionKinds":["quickfix","refactor","info"]},"compilationDatabase":{"automaticReload":true},"completionProvider":{"allCommitCharacters":[" ","\\t","(",")","[","]","{","}","<",">",":",";",",","+","-","/","*","%","^","&","#","?",".","=","\\"","\'","|"],"resolveProvider":false,"triggerCharacters":[".","<",">",":","\\"","/"]},"declarationProvider":true,"definitionProvider":true,"documentFormattingProvider":true,"documentHighlightProvider":true,"documentLinkProvider":{"resolveProvider":false},"documentOnTypeFormattingProvider":{"firstTriggerCharacter":"\\n","moreTriggerCharacter":[]},"documentRangeFormattingProvider":true,"documentSymbolProvider":true,"executeCommandProvider":{"commands":["clangd.applyFix","clangd.applyTweak"]},"hoverProvider":true,"implementationProvider":true,"memoryUsageProvider":true,"referencesProvider":true,"renameProvider":true,"selectionRangeProvider":true,"semanticTokensProvider":{"full":{"delta":true},"legend":{"tokenModifiers":["declaration","deprecated","deduced","readonly","static","abstract","dependentName","defaultLibrary","functionScope","classScope","fileScope","globalScope"],"tokenTypes":["variable","variable","parameter","function","method","function","property","variable","class","interface","enum","enumMember","type","type","unknown","namespace","typeParameter","concept","type","macro","comment"]},"range":false},"signatureHelpProvider":{"triggerCharacters":["(",","]},"textDocumentSync":{"change":2,"openClose":true,"save":true},"typeHierarchyProvider":true,"workspaceSymbolProvider":true},"serverInfo":{"name":"clangd","version":"clangd version 13.0.0 (https://github.com/ycm-core/llvm e956c8bf8e0c35cd21f200591407dbbd97c0af30) linux x86_64-unknown-linux-gnu"}}}'
2021-11-18 10:34:30,556 - INFO - cfamily: Language server does not require resolve request
2021-11-18 10:34:30,556 - INFO - cfamily: Language server requires sync type of Incremental
2021-11-18 10:34:30,556 - DEBUG - cfamily: Server declares trigger characters: ['.', '<', '>', ':', '"', '/']
2021-11-18 10:34:30,556 - DEBUG - cfamily: Server declares signature trigger characters: ['(', ',']
2021-11-18 10:34:30,556 - INFO - cfamily: Using characters for signature triggers: (,,
2021-11-18 10:34:30,556 - DEBUG - TX: Sending notification: b'Content-Length: 52\r\n\r\n{"jsonrpc":"2.0","method":"initialized","params":{}}'
2021-11-18 10:34:30,556 - DEBUG - TX: Sending notification: b'Content-Length: 86\r\n\r\n{"jsonrpc":"2.0","method":"workspace/didChangeConfiguration","params":{"settings":{}}}'
2021-11-18 10:34:30,556 - DEBUG - Refreshing file /home/pawansingh/ycmd/samples/some_c.c: State is Open/action Open
2021-11-18 10:34:30,557 - DEBUG - TX: Sending notification: b'Content-Length: 404\r\n\r\n{"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"languageId":"c","text":"#include <stdio.h> \\n#include <string.h>\\n\\nvoid PowersofTwo(int num) {\\n str\\n // code goes here \\n printf(\\"%d\\", num);\\n\\n}\\n\\nint main(void) { \\n \\n // keep this function call here\\n PowersofTwo(2);\\n return 0;\\n \\n}\\n","uri":"file:///home/pawansingh/ycmd/samples/some_c.c","version":1}}}'
2021-11-18 10:34:31,491 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[{"code":"undeclared_var_use","message":"Use of undeclared identifier \'str\'","range":{"end":{"character":5,"line":4},"start":{"character":2,"line":4}},"severity":1,"source":"clang"}],"uri":"file:///home/pawansingh/ycmd/samples/some_c.c","version":1}}'
2021-11-18 10:55:36,657 - DEBUG - Event name: FileReadyToParse
2021-11-18 10:55:36,657 - INFO - Adding buffer identifiers for file: /home/pawansingh/ycmd/samples/some_c.c
2021-11-18 10:55:36,657 - DEBUG - Refreshing file /home/pawansingh/ycmd/samples/some_c.c: State is Open/action None
127.0.0.1 - - [18/Nov/2021 10:55:36] "POST /event_notification HTTP/1.1" 200 589
2021-11-18 10:55:36,679 - DEBUG - Using filetype completion: False
127.0.0.1 - - [18/Nov/2021 10:55:36] "POST /completions HTTP/1.1" 200 160
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment