Command "D:/dev/ccls/Release/ccls --log-file=d:/dev/ccls/Release/ccls.log -v=2" is present on the path.
Command "clangd" is present on the path.
Found the following clients for d:/dev/test/main.c: (server-id ccls, priority 0), (server-id clangd, priority -1)
The following clients were selected based on priority: (server-id ccls, priority 0)
Command "D:/dev/ccls/Release/ccls --log-file=d:/dev/ccls/Release/ccls.log -v=2" is present on the path.
Command "clangd" is present on the path.
Found the following clients for d:/dev/test/main.c: (server-id ccls, priority 0), (server-id clangd, priority -1)
The following clients were selected based on priority: (server-id ccls, priority 0)
[Trace - 09:21:15 ] Sending request 'initialize - (1)'.
Params: {
"processId": null,
"rootPath": "d:/dev/test",
"clientInfo": {
"name": "emacs",
"version": "GNU Emacs 27.0.91 (build 1, x86_64-w64-mingw32)\n of 2020-04-20"
},
"rootUri": "file:///d%3A/dev/test",
"capabilities": {
"workspace": {
"workspaceEdit": {
"documentChanges": true,
"resourceOperations": [
"create",
"rename",
"delete"
]
},
"applyEdit": 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
]
}
},
"executeCommand": {
"dynamicRegistration": false
},
"workspaceFolders": true,
"configuration": true
},
"textDocument": {
"declaration": {
"linkSupport": true
},
"definition": {
"linkSupport": true
},
"implementation": {
"linkSupport": true
},
"typeDefinition": {
"linkSupport": true
},
"synchronization": {
"willSave": true,
"didSave": true,
"willSaveWaitUntil": true
},
"documentSymbol": {
"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
]
},
"hierarchicalDocumentSymbolSupport": true
},
"formatting": {
"dynamicRegistration": true
},
"rangeFormatting": {
"dynamicRegistration": true
},
"rename": {
"dynamicRegistration": true,
"prepareSupport": true
},
"semanticHighlightingCapabilities": {
"semanticHighlighting": false
},
"codeAction": {
"dynamicRegistration": true,
"isPreferredSupport": true,
"codeActionLiteralSupport": {
"codeActionKind": {
"valueSet": [
"",
"quickfix",
"refactor",
"refactor.extract",
"refactor.inline",
"refactor.rewrite",
"source",
"source.organizeImports"
]
}
}
},
"completion": {
"completionItem": {
"snippetSupport": true,
"documentationFormat": [
"markdown"
]
},
"contextSupport": true
},
"signatureHelp": {
"signatureInformation": {
"parameterInformation": {
"labelOffsetSupport": true
}
}
},
"documentLink": {
"dynamicRegistration": true,
"tooltipSupport": true
},
"hover": {
"contentFormat": [
"markdown",
"plaintext"
]
},
"foldingRange": null,
"callHierarchy": {
"dynamicRegistration": false
},
"publishDiagnostics": {
"relatedInformation": true,
"tagSupport": {
"valueSet": [
1,
2
]
},
"versionSupport": true
}
},
"window": {
"workDoneProgress": true
}
},
"initializationOptions": {
"clang": {
"excludeArgs": [
"-falign-jumps=1",
"-falign-loops=1",
"-fconserve-stack",
"-fmerge-constants",
"-fno-code-hoisting",
"-fno-schedule-insns",
"-fno-var-tracking-assignments",
"-fsched-pressure",
"-mhard-float",
"-mindirect-branch-register",
"-mindirect-branch=thunk-inline",
"-mpreferred-stack-boundary=2",
"-mpreferred-stack-boundary=3",
"-mpreferred-stack-boundary=4",
"-mrecord-mcount",
"-mindirect-branch=thunk-extern",
"-mno-fp-ret-in-387",
"-mskip-rax-setup",
"--param=allow-store-data-races=0",
"-Wa arch/x86/kernel/macros.s",
"-Wa -"
],
"extraArgs": [
"--gcc-toolchain=/usr"
],
"pathMappings": []
},
"completion": {
"include": {
"blacklist": [
"^/usr/(local/)?include/c\\+\\+/[0-9\\.]+/(bits|tr1|tr2|profile|ext|debug)/",
"^/usr/(local/)?include/c\\+\\+/v1/"
]
}
},
"index": {
"initialBlacklist": [],
"parametersInDeclarations": false,
"trackDependency": 1
}
},
"workDoneToken": "1"
}
[Trace - 09:21:15 ] Received response 'initialize - (1)' in 129ms.
Result: {
"serverInfo": {
"version": "<unknown>",
"name": "ccls"
},
"capabilities": {
"workspace": {
"workspaceFolders": {
"changeNotifications": true,
"supported": true
}
},
"executeCommandProvider": {
"commands": [
"ccls.xref"
]
},
"foldingRangeProvider": true,
"documentLinkProvider": {
"resolveProvider": true
},
"renameProvider": true,
"documentOnTypeFormattingProvider": {
"moreTriggerCharacter": [],
"firstTriggerCharacter": "}"
},
"documentRangeFormattingProvider": true,
"documentFormattingProvider": true,
"codeLensProvider": {
"resolveProvider": null
},
"codeActionProvider": {
"codeActionKinds": [
"quickfix"
]
},
"workspaceSymbolProvider": true,
"documentSymbolProvider": true,
"documentHighlightProvider": true,
"referencesProvider": true,
"typeDefinitionProvider": true,
"implementationProvider": true,
"definitionProvider": true,
"declarationProvider": true,
"signatureHelpProvider": {
"triggerCharacters": [
"(",
","
]
},
"completionProvider": {
"triggerCharacters": [
".",
":",
">",
"#",
"<",
"\"",
"/"
],
"resolveProvider": null
},
"hoverProvider": true,
"textDocumentSync": {
"save": {
"includeText": null
},
"willSaveWaitUntil": null,
"willSave": null,
"change": 2,
"openClose": true
}
}
}
[Trace - 09:21:15 ] Sending notification 'initialized'.
Params: {
}
[Trace - 09:21:15 ] Sending notification 'textDocument/didOpen'.
Params: {
"textDocument": {
"uri": "file:///d%3A/dev/test/main.c",
"languageId": "c",
"version": 0,
"text": "\n/* enum { a } c; */\nenum {\n a\n} c;\n\nint main(void) {}\n"
}
}
[Trace - 09:21:15 ] Sending request 'textDocument/codeLens - (2)'.
Params: {
"textDocument": {
"uri": "file:///d:/dev/test/main.c"
}
}
[Trace - 09:21:15 ] Received notification '$ccls/publishSkippedRanges'.
Params: {
"skippedRanges": [],
"uri": "file:///D%3A/dev/test/main.c"
}
[Trace - 09:21:15 ] Received notification '$ccls/publishSemanticHighlight'.
Params: {
"symbols": [
{
"lsRanges": [],
"ranges": [
{
"R": 31,
"L": 30
}
],
"storage": 0,
"kind": 22,
"parentKind": 1,
"id": 1
},
{
"lsRanges": [],
"ranges": [
{
"R": 35,
"L": 34
}
],
"storage": 0,
"kind": 13,
"parentKind": 1,
"id": 0
},
{
"lsRanges": [],
"ranges": [
{
"R": 46,
"L": 42
}
],
"storage": 0,
"kind": 12,
"parentKind": 1,
"id": 0
},
{
"lsRanges": [],
"ranges": [
{
"R": 25,
"L": 21
}
],
"storage": 0,
"kind": 10,
"parentKind": 1,
"id": 0
}
],
"uri": "file:///D%3A/dev/test/main.c"
}
[Trace - 09:21:15 ] Received response 'textDocument/codeLens - (2)' in 12ms.
Result: [
{
"command": {
"arguments": [
"{\"usr\":7924728095432766067,\"kind\":3,\"field\":\"uses\"}"
],
"command": "ccls.xref",
"title": "0 ref"
},
"range": {
"end": {
"character": 8,
"line": 6
},
"start": {
"character": 4,
"line": 6
}
}
},
{
"command": {
"arguments": [
"{\"usr\":10707872682701726438,\"kind\":2,\"field\":\"uses\"}"
],
"command": "ccls.xref",
"title": "0 ref"
},
"range": {
"end": {
"character": 4,
"line": 2
},
"start": {
"character": 0,
"line": 2
}
}
},
{
"command": {
"arguments": [
"{\"usr\":10707872682701726438,\"kind\":2,\"field\":\"instances\"}"
],
"command": "ccls.xref",
"title": "1 var"
},
"range": {
"end": {
"character": 4,
"line": 2
},
"start": {
"character": 0,
"line": 2
}
}
},
{
"command": {
"arguments": [
"{\"usr\":1181535984751995892,\"kind\":4,\"field\":\"uses\"}"
],
"command": "ccls.xref",
"title": "0 ref"
},
"range": {
"end": {
"character": 3,
"line": 4
},
"start": {
"character": 2,
"line": 4
}
}
},
{
"command": {
"arguments": [
"{\"usr\":4067220408588889318,\"kind\":4,\"field\":\"uses\"}"
],
"command": "ccls.xref",
"title": "0 ref"
},
"range": {
"end": {
"character": 3,
"line": 3
},
"start": {
"character": 2,
"line": 3
}
}
}
]
[Trace - 09:21:15 ] Received notification 'textDocument/publishDiagnostics'.
Params: {
"diagnostics": [],
"uri": "file:///D%3A/dev/test/main.c"
}
[Trace - 09:21:16 ] Sending request 'textDocument/codeLens - (3)'.
Params: {
"textDocument": {
"uri": "file:///d:/dev/test/main.c"
}
}
[Trace - 09:21:16 ] Received response 'textDocument/codeLens - (3)' in 1ms.
Result: [
{
"command": {
"arguments": [
"{\"usr\":7924728095432766067,\"kind\":3,\"field\":\"uses\"}"
],
"command": "ccls.xref",
"title": "0 ref"
},
"range": {
"end": {
"character": 8,
"line": 6
},
"start": {
"character": 4,
"line": 6
}
}
},
{
"command": {
"arguments": [
"{\"usr\":10707872682701726438,\"kind\":2,\"field\":\"uses\"}"
],
"command": "ccls.xref",
"title": "0 ref"
},
"range": {
"end": {
"character": 4,
"line": 2
},
"start": {
"character": 0,
"line": 2
}
}
},
{
"command": {
"arguments": [
"{\"usr\":10707872682701726438,\"kind\":2,\"field\":\"instances\"}"
],
"command": "ccls.xref",
"title": "1 var"
},
"range": {
"end": {
"character": 4,
"line": 2
},
"start": {
"character": 0,
"line": 2
}
}
},
{
"command": {
"arguments": [
"{\"usr\":1181535984751995892,\"kind\":4,\"field\":\"uses\"}"
],
"command": "ccls.xref",
"title": "0 ref"
},
"range": {
"end": {
"character": 3,
"line": 4
},
"start": {
"character": 2,
"line": 4
}
}
},
{
"command": {
"arguments": [
"{\"usr\":4067220408588889318,\"kind\":4,\"field\":\"uses\"}"
],
"command": "ccls.xref",
"title": "0 ref"
},
"range": {
"end": {
"character": 3,
"line": 3
},
"start": {
"character": 2,
"line": 3
}
}
}
]
[Trace - 09:21:17 ] Sending request 'textDocument/documentHighlight - (4)'.
Params: {
"textDocument": {
"uri": "file:///d%3A/dev/test/main.c"
},
"position": {
"line": 6,
"character": 0
}
}
[Trace - 09:21:17 ] Received response 'textDocument/documentHighlight - (4)' in 0ms.
Result: []
[Trace - 09:21:17 ] Sending request 'textDocument/hover - (5)'.
Params: {
"textDocument": {
"uri": "file:///d%3A/dev/test/main.c"
},
"position": {
"line": 6,
"character": 0
}
}
[Trace - 09:21:17 ] Received response 'textDocument/hover - (5)' in 1ms.
Result: {
"contents": []
}
[Trace - 09:21:17 ] Sending request 'textDocument/documentHighlight - (6)'.
Params: {
"textDocument": {
"uri": "file:///d%3A/dev/test/main.c"
},
"position": {
"line": 6,
"character": 1
}
}
[Trace - 09:21:17 ] Received response 'textDocument/documentHighlight - (6)' in 1ms.
Result: []
[Trace - 09:21:18 ] Sending request 'textDocument/hover - (7)'.
Params: {
"textDocument": {
"uri": "file:///d%3A/dev/test/main.c"
},
"position": {
"line": 6,
"character": 1
}
}
[Trace - 09:21:18 ] Received response 'textDocument/hover - (7)' in 3ms.
Result: {
"contents": []
}
[Trace - 09:21:19 ] Sending request 'textDocument/documentHighlight - (8)'.
Params: {
"textDocument": {
"uri": "file:///d%3A/dev/test/main.c"
},
"position": {
"line": 6,
"character": 16
}
}
[Trace - 09:21:19 ] Sending notification '$/cancelRequest'.
Params: {
"id": 8
}
[Trace - 09:21:19 ] Sending request 'textDocument/documentHighlight - (9)'.
Params: {
"textDocument": {
"uri": "file:///d%3A/dev/test/main.c"
},
"position": {
"line": 6,
"character": 16
}
}
[Trace - 09:21:19 ] Sending notification '$/cancelRequest'.
Params: {
"id": 9
}
[Trace - 09:21:19 ] Sending request 'textDocument/documentHighlight - (10)'.
Params: {
"textDocument": {
"uri": "file:///d%3A/dev/test/main.c"
},
"position": {
"line": 6,
"character": 16
}
}
[Trace - 09:21:19 ] Sending notification '$/cancelRequest'.
Params: {
"id": 10
}
[Trace - 09:21:19 ] Sending request 'textDocument/documentHighlight - (11)'.
Params: {
"textDocument": {
"uri": "file:///d%3A/dev/test/main.c"
},
"position": {
"line": 6,
"character": 16
}
}
[Trace - 09:21:19 ] Sending notification '$/cancelRequest'.
Params: {
"id": 11
}
[Trace - 09:21:19 ] Sending request 'textDocument/documentHighlight - (12)'.
Params: {
"textDocument": {
"uri": "file:///d%3A/dev/test/main.c"
},
"position": {
"line": 6,
"character": 16
}
}
[Trace - 09:21:19 ] Sending notification '$/cancelRequest'.
Params: {
"id": 12
}
[Trace - 09:21:19 ] Sending request 'textDocument/documentHighlight - (13)'.
Params: {
"textDocument": {
"uri": "file:///d%3A/dev/test/main.c"
},
"position": {
"line": 6,
"character": 16
}
}
[Trace - 09:21:19 ] Sending notification '$/cancelRequest'.
Params: {
"id": 13
}
[Trace - 09:21:19 ] Sending request 'textDocument/documentHighlight - (14)'.
Params: {
"textDocument": {
"uri": "file:///d%3A/dev/test/main.c"
},
"position": {
"line": 6,
"character": 16
}
}
[Trace - 09:21:19 ] Sending notification '$/cancelRequest'.
Params: {
"id": 14
}
[Trace - 09:21:19 ] Sending request 'textDocument/documentHighlight - (15)'.
Params: {
"textDocument": {
"uri": "file:///d%3A/dev/test/main.c"
},
"position": {
"line": 6,
"character": 16
}
}
[Trace - 09:21:19 ] Sending notification '$/cancelRequest'.
Params: {
"id": 15
}
[Trace - 09:21:19 ] Sending request 'textDocument/documentHighlight - (16)'.
Params: {
"textDocument": {
"uri": "file:///d%3A/dev/test/main.c"
},
"position": {
"line": 6,
"character": 16
}
}
[Trace - 09:21:19 ] Sending notification '$/cancelRequest'.
Params: {
"id": 16
}
[Trace - 09:21:19 ] Sending request 'textDocument/documentHighlight - (17)'.
Params: {
"textDocument": {
"uri": "file:///d%3A/dev/test/main.c"
},
"position": {
"line": 6,
"character": 16
}
}
[Trace - 09:21:19 ] Sending notification '$/cancelRequest'.
Params: {
"id": 17
}
[Trace - 09:21:19 ] Sending request 'textDocument/documentHighlight - (18)'.
Params: {
"textDocument": {
"uri": "file:///d%3A/dev/test/main.c"
},
"position": {
"line": 6,
"character": 16
}
}
[Trace - 09:21:19 ] Sending notification '$/cancelRequest'.
Params: {
"id": 18
}
[Trace - 09:21:19 ] Sending request 'textDocument/documentHighlight - (19)'.
Params: {
"textDocument": {
"uri": "file:///d%3A/dev/test/main.c"
},
"position": {
"line": 6,
"character": 16
}
}
[Trace - 09:21:19 ] Sending notification '$/cancelRequest'.
Params: {
"id": 19
}
[Trace - 09:21:19 ] Sending request 'textDocument/documentHighlight - (20)'.
Params: {
"textDocument": {
"uri": "file:///d%3A/dev/test/main.c"
},
"position": {
"line": 6,
"character": 16
}
}
[Trace - 09:21:19 ] Sending notification '$/cancelRequest'.
Params: {
"id": 20
}
[Trace - 09:21:19 ] Sending request 'textDocument/documentHighlight - (21)'.
Params: {
"textDocument": {
"uri": "file:///d%3A/dev/test/main.c"
},
"position": {
"line": 6,
"character": 16
}
}
[Trace - 09:21:19 ] Sending notification '$/cancelRequest'.
Params: {
"id": 21
}
[Trace - 09:21:19 ] Sending request 'textDocument/documentHighlight - (22)'.
Params: {
"textDocument": {
"uri": "file:///d%3A/dev/test/main.c"
},
"position": {
"line": 6,
"character": 16
}
}
[Trace - 09:21:19 ] Received response 'nil - (8)' in 0ms.
Result: []
[Trace - 09:21:19 ] Received response 'nil - (9)' in 0ms.
Result: []
[Trace - 09:21:19 ] Received response 'nil - (10)' in 0ms.
Result: []
[Trace - 09:21:19 ] Received response 'nil - (11)' in 0ms.
Result: []
[Trace - 09:21:19 ] Received response 'nil - (12)' in 0ms.
Result: []
[Trace - 09:21:19 ] Received response 'nil - (13)' in 0ms.
Result: []
[Trace - 09:21:19 ] Received response 'nil - (14)' in 0ms.
Result: []
[Trace - 09:21:19 ] Received response 'nil - (15)' in 0ms.
Result: []
[Trace - 09:21:19 ] Received response 'nil - (16)' in 0ms.
Result: []
[Trace - 09:21:19 ] Received response 'nil - (17)' in 0ms.
Result: []
[Trace - 09:21:19 ] Received response 'nil - (18)' in 0ms.
Result: []
[Trace - 09:21:19 ] Received response 'nil - (19)' in 0ms.
Result: []
[Trace - 09:21:19 ] Received response 'nil - (20)' in 0ms.
Result: []
[Trace - 09:21:19 ] Received response 'nil - (21)' in 0ms.
Result: []
[Trace - 09:21:19 ] Received response 'textDocument/documentHighlight - (22)' in 4ms.
Result: []
[Trace - 09:21:19 ] Sending request 'textDocument/hover - (23)'.
Params: {
"textDocument": {
"uri": "file:///d%3A/dev/test/main.c"
},
"position": {
"line": 6,
"character": 16
}
}
[Trace - 09:21:19 ] Received response 'textDocument/hover - (23)' in 3ms.
Result: {
"contents": []
}
[Trace - 09:21:22 ] Sending request 'textDocument/documentHighlight - (24)'.
Params: {
"textDocument": {
"uri": "file:///d%3A/dev/test/main.c"
},
"position": {
"line": 6,
"character": 16
}
}
[Trace - 09:21:22 ] Received response 'textDocument/documentHighlight - (24)' in 0ms.
Result: []
[Trace - 09:21:23 ] Sending notification 'textDocument/didChange'.
Params: {
"textDocument": {
"uri": "file:///d%3A/dev/test/main.c",
"version": 1
},
"contentChanges": [
{
"range": {
"start": {
"line": 6,
"character": 16
},
"end": {
"line": 6,
"character": 16
}
},
"rangeLength": 0,
"text": "l"
}
]
}
[Trace - 09:21:23 ] Sending request 'textDocument/documentHighlight - (25)'.
Params: {
"textDocument": {
"uri": "file:///d%3A/dev/test/main.c"
},
"position": {
"line": 6,
"character": 17
}
}
[Trace - 09:21:23 ] Sending notification '$/cancelRequest'.
Params: {
"id": 25
}
[Trace - 09:21:23 ] Sending request 'textDocument/documentHighlight - (26)'.
Params: {
"textDocument": {
"uri": "file:///d%3A/dev/test/main.c"
},
"position": {
"line": 6,
"character": 17
}
}
[Trace - 09:21:23 ] Received response 'nil - (25)' in 0ms.
Result: []
[Trace - 09:21:23 ] Received response 'textDocument/documentHighlight - (26)' in 23ms.
Result: []
[Trace - 09:21:24 ] Sending notification 'textDocument/didChange'.
Params: {
"textDocument": {
"uri": "file:///d%3A/dev/test/main.c",
"version": 2
},
"contentChanges": [
{
"range": {
"start": {
"line": 6,
"character": 17
},
"end": {
"line": 6,
"character": 17
}
},
"rangeLength": 0,
"text": "a"
}
]
}
[Trace - 09:21:24 ] Sending request 'textDocument/completion - (27)'.
Params: {
"textDocument": {
"uri": "file:///d%3A/dev/test/main.c"
},
"position": {
"line": 6,
"character": 18
},
"context": {
"triggerKind": 1
}
}
[Trace - 09:21:24 ] Received response 'textDocument/completion - (27)' in 6ms.
Result: {
"items": [
{
"textEdit": {
"newText": "volatile",
"range": {
"end": {
"character": 18,
"line": 6
},
"start": {
"character": 16,
"line": 6
}
}
},
"insertTextFormat": 1,
"sortText": " !",
"detail": "",
"kind": 14,
"label": "volatile"
},
{
"textEdit": {
"newText": "float",
"range": {
"end": {
"character": 18,
"line": 6
},
"start": {
"character": 16,
"line": 6
}
}
},
"insertTextFormat": 1,
"sortText": " \"",
"detail": "",
"kind": 14,
"label": "float"
}
],
"isIncomplete": null
}