Skip to content

Instantly share code, notes, and snippets.

@vegerot
Created November 25, 2019 17:49
Show Gist options
  • Save vegerot/ce5e97814c1d49c7a53ffd418e45bf20 to your computer and use it in GitHub Desktop.
Save vegerot/ce5e97814c1d49c7a53ffd418e45bf20 to your computer and use it in GitHub Desktop.
I[12:49:03.309] clangd version 9.0.0 (tags/RELEASE_900/final)
I[12:49:03.309] Working directory: /usr/local/Cellar/llvm
I[12:49:03.309] argv[0]: /Users/maxcoplan/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/clangd/output/bin/clangd
I[12:49:03.309] argv[1]: -log=verbose
I[12:49:03.309] argv[2]: -pretty
I[12:49:03.309] argv[3]: -header-insertion-decorators=0
I[12:49:03.309] argv[4]: -resource-dir=/Users/maxcoplan/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/clang/lib/clang/9.0.0
I[12:49:03.309] argv[5]: -limit-results=500
I[12:49:03.309] Starting LSP over stdin/stdout
V[12:49:03.310] <<< {
"id": 1,
"jsonrpc": "2.0",
"method": "initialize",
"params": {
"capabilities": {
"textDocument": {
"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
]
}
},
"hover": {
"contentFormat": [
"plaintext",
"markdown"
]
},
"signatureHelp": {
"signatureInformation": {
"documentationFormat": [
"plaintext",
"markdown"
],
"parameterInformation": {
"labelOffsetSupport": false
}
}
}
},
"workspace": {
"applyEdit": true
}
},
"initializationOptions": {},
"processId": 17093,
"rootPath": "/usr/local/Cellar/llvm",
"rootUri": "file:///usr/local/Cellar/llvm"
}
}
I[12:49:03.310] <-- initialize(1)
I[12:49:03.310] --> reply:initialize(1) 0 ms
V[12:49:03.310] >>> {
"id": 1,
"jsonrpc": "2.0",
"result": {
"capabilities": {
"codeActionProvider": true,
"completionProvider": {
"resolveProvider": false,
"triggerCharacters": [
".",
">",
":"
]
},
"declarationProvider": true,
"definitionProvider": true,
"documentFormattingProvider": true,
"documentHighlightProvider": true,
"documentOnTypeFormattingProvider": {
"firstTriggerCharacter": "\n",
"moreTriggerCharacter": []
},
"documentRangeFormattingProvider": true,
"documentSymbolProvider": true,
"executeCommandProvider": {
"commands": [
"clangd.applyFix",
"clangd.applyTweak"
]
},
"hoverProvider": true,
"referencesProvider": true,
"renameProvider": true,
"signatureHelpProvider": {
"triggerCharacters": [
"(",
","
]
},
"textDocumentSync": 2,
"typeHierarchyProvider": true,
"workspaceSymbolProvider": true
}
}
}
V[12:49:03.311] <<< {
"jsonrpc": "2.0",
"method": "initialized",
"params": {}
}
I[12:49:03.311] <-- initialized
I[12:49:03.311] unhandled notification initialized
V[12:49:03.311] <<< {
"jsonrpc": "2.0",
"method": "workspace/didChangeConfiguration",
"params": {
"settings": {}
}
}
I[12:49:03.311] <-- workspace/didChangeConfiguration
V[12:49:03.312] <<< {
"jsonrpc": "2.0",
"method": "textDocument/didOpen",
"params": {
"textDocument": {
"languageId": "c",
"text": "#include <stdio.h>\n\nint main() { printf(\"hey\"); }\n",
"uri": "file:///Users/maxcoplan/test.c",
"version": 1
}
}
}
I[12:49:03.312] <-- textDocument/didOpen
I[12:49:03.312] Failed to find compilation database for /Users/maxcoplan/test.c
I[12:49:03.312] Updating file /Users/maxcoplan/test.c with command clangd fallback
[/Users/maxcoplan]
/Users/maxcoplan/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/clangd/output/bin/clang /Users/maxcoplan/test.c -fsyntax-only -resource-dir=/Users/maxcoplan/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/clang/lib/clang/9.0.0
V[12:49:03.314] Preamble for file /Users/maxcoplan/test.c cannot be reused. Attempting to rebuild it.
V[12:49:03.322] index AST for /Users/maxcoplan/test.c (main=false):
symbol slab: 0 symbols, 128 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
V[12:49:03.322] Built preamble of size 198716 for file /Users/maxcoplan/test.c
I[12:49:03.325] --> textDocument/publishDiagnostics
V[12:49:03.325] >>> {
"jsonrpc": "2.0",
"method": "textDocument/publishDiagnostics",
"params": {
"diagnostics": [
{
"code": "pp_file_not_found",
"message": "'stdio.h' file not found",
"range": {
"end": {
"character": 18,
"line": 0
},
"start": {
"character": 9,
"line": 0
}
},
"severity": 1,
"source": "clang"
},
{
"code": "-Wimplicit-function-declaration",
"message": "Implicitly declaring library function 'printf' with type 'int (const char *, ...)'\n\ntest.c:3:14: note: include the header <stdio.h> or explicitly provide a declaration for 'printf'",
"range": {
"end": {
"character": 19,
"line": 2
},
"start": {
"character": 13,
"line": 2
}
},
"severity": 2,
"source": "clang"
},
{
"message": "Include the header <stdio.h> or explicitly provide a declaration for 'printf'\n\ntest.c:3:14: warning: implicitly declaring library function 'printf' with type 'int (const char *, ...)'",
"range": {
"end": {
"character": 19,
"line": 2
},
"start": {
"character": 13,
"line": 2
}
},
"severity": 3
}
],
"uri": "file:///Users/maxcoplan/test.c"
}
}
V[12:49:03.325] index AST for /Users/maxcoplan/test.c (main=true):
symbol slab: 1 symbols, 4456 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment