[llvm-bugs] [Bug 48328] New: 'Clangd :: document-link.test' fails in 11.0.1-rc1
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Nov 29 06:34:27 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=48328
Bug ID: 48328
Summary: 'Clangd :: document-link.test' fails in 11.0.1-rc1
Product: clang-tools-extra
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: clangd
Assignee: unassignedclangbugs at nondot.org
Reporter: mgorny at gentoo.org
CC: llvm-bugs at lists.llvm.org
Blocks: 47800
(including full output dump)
******************** TEST 'Clangd :: document-link.test' FAILED
********************
Script:
--
: 'RUN: at line 1'; clangd -lit-test <
/var/tmp/portage/sys-devel/clang-11.0.1_rc1/work/clang/tools/extra/clangd/test/document-link.test
| FileCheck -strict-whitespace
/var/tmp/portage/sys-devel/clang-11.0.1_rc1/work/clang/tools/extra/clangd/test/document-link.test
--
Exit Code: 1
Command Output (stderr):
--
+ : 'RUN: at line 1'
+ clangd -lit-test
+ FileCheck -strict-whitespace
/var/tmp/portage/sys-devel/clang-11.0.1_rc1/work/clang/tools/extra/clangd/test/document-link.test
I[13:42:01.484] clangd version 11.0.0
I[13:42:01.484] PID: 206507
I[13:42:01.484] Working directory:
/var/tmp/portage/sys-devel/clang-11.0.1_rc1/work/x/y/clang-abi_x86_64.amd64/tools/extra/clangd/test
I[13:42:01.484] argv[0]: clangd
I[13:42:01.484] argv[1]: -lit-test
I[13:42:01.484] Starting LSP over stdin/stdout
V[13:42:01.484] <<< {
"id": 0,
"jsonrpc": "2.0",
"method": "initialize",
"params": {
"capabilities": {},
"processId": 123,
"rootPath": "clangd",
"trace": "off"
}
}
I[13:42:01.484] <-- initialize(0)
I[13:42:01.484] --> reply:initialize(0) 0 ms
V[13:42:01.485] >>> {
"id": 0,
"jsonrpc": "2.0",
"result": {
"capabilities": {
"codeActionProvider": 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,
"referencesProvider": true,
"renameProvider": true,
"selectionRangeProvider": true,
"semanticTokensProvider": {
"full": {
"delta": true
},
"legend": {
"tokenModifiers": [],
"tokenTypes": [
"variable",
"variable",
"parameter",
"function",
"member",
"function",
"member",
"variable",
"class",
"enum",
"enumConstant",
"type",
"dependent",
"dependent",
"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 11.0.0"
}
}
}
V[13:42:01.485] <<< {
"jsonrpc": "2.0",
"method": "textDocument/didOpen",
"params": {
"textDocument": {
"languageId": "cpp",
"text": "#include <stdint.h>\n#include <stddef.h>",
"uri": "test:///main.cpp",
"version": 1
}
}
}
I[13:42:01.485] <-- textDocument/didOpen
Error reading configuration from /clangd-test: directory doesn't exist.
I[13:42:01.485] Failed to find compilation database for /clangd-test/main.cpp
I[13:42:01.485] ASTWorker building file /clangd-test/main.cpp version 1 with
command clangd fallback
[/clangd-test]
/var/tmp/portage/sys-devel/clang-11.0.1_rc1/work/x/y/clang-abi_x86_64.amd64/bin/clang
/clangd-test/main.cpp -fsyntax-only
-resource-dir=/var/tmp/portage/sys-devel/clang-11.0.1_rc1/work/x/y/clang-abi_x86_64.amd64/bin/../../../../lib/clang/11.0.0
E[13:42:01.485] VFS: failed to set CWD to /clangd-test: No such file or
directory
V[13:42:01.487] Driver produced command: cc1 -cc1 -triple x86_64-pc-linux-gnu
-fsyntax-only -disable-free -disable-llvm-verifier -discard-value-names
-main-file-name main.cpp -mrelocation-model static -mframe-pointer=all
-fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables
-target-cpu x86-64 -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir
/var/tmp/portage/sys-devel/clang-11.0.1_rc1/work/x/y/clang-abi_x86_64.amd64/bin/../../../../lib/clang/11.0.0
-internal-isystem /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/g++-v9
-internal-isystem
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/g++-v9/x86_64-pc-linux-gnu
-internal-isystem
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/g++-v9/backward
-internal-isystem /usr/local/include -internal-isystem
/var/tmp/portage/sys-devel/clang-11.0.1_rc1/work/x/y/clang-abi_x86_64.amd64/bin/../../../../lib/clang/11.0.0/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include
-fdeprecated-macro -fdebug-compilation-dir
/var/tmp/portage/sys-devel/clang-11.0.1_rc1/work/x/y/clang-abi_x86_64.amd64/tools/extra/clangd/test
-ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -x c++
/clangd-test/main.cpp
V[13:42:01.487] Building first preamble for /clangd-test/main.cpp version 1
E[13:42:01.487] VFS: failed to set CWD to /clangd-test: No such file or
directory
V[13:42:01.506] indexed preamble AST for /clangd-test/main.cpp version 1:
symbol slab: 380 symbols, 96480 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
V[13:42:01.510] Build dynamic index for header symbols with estimated memory
usage of 498736 bytes
V[13:42:01.510] Built preamble of size 249852 for file /clangd-test/main.cpp
version 1
E[13:42:01.510] VFS: failed to set CWD to /clangd-test: No such file or
directory
V[13:42:01.517] indexed file AST for /clangd-test/main.cpp version 1:
symbol slab: 0 symbols, 128 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
V[13:42:01.517] Build dynamic index for main-file symbols with estimated memory
usage of 288 bytes
I[13:42:01.517] --> textDocument/publishDiagnostics
V[13:42:01.517] >>> {
"jsonrpc": "2.0",
"method": "textDocument/publishDiagnostics",
"params": {
"diagnostics": [
{
"code": "pp_file_not_found",
"message": "'stddef.h' file not found",
"range": {
"end": {
"character": 19,
"line": 1
},
"start": {
"character": 9,
"line": 1
}
},
"severity": 1,
"source": "clang"
}
],
"uri": "file:///clangd-test/main.cpp",
"version": 1
}
}
V[13:42:01.517] <<< {
"id": 2,
"jsonrpc": "2.0",
"method": "textDocument/documentLink",
"params": {
"textDocument": {
"uri": "test:///main.cpp"
}
}
}
I[13:42:01.517] <-- textDocument/documentLink(2)
V[13:42:01.517] ASTWorker running DocumentLinks on version 1 of
/clangd-test/main.cpp
I[13:42:01.517] --> reply:textDocument/documentLink(2) 0 ms
V[13:42:01.517] >>> {
"id": 2,
"jsonrpc": "2.0",
"result": [
{
"range": {
"end": {
"character": 19,
"line": 0
},
"start": {
"character": 9,
"line": 0
}
},
"target": "file:///usr/include/stdint.h"
}
]
}
V[13:42:01.517] <<< {
"id": 3,
"jsonrpc": "2.0",
"method": "shutdown"
}
I[13:42:01.517] <-- shutdown(3)
I[13:42:01.517] --> reply:shutdown(3) 0 ms
V[13:42:01.517] >>> {
"id": 3,
"jsonrpc": "2.0",
"result": null
}
V[13:42:01.517] <<< {
"jsonrpc": "2.0",
"method": "exit"
}
I[13:42:01.517] <-- exit
I[13:42:01.517] LSP finished, exiting with status 0
/var/tmp/portage/sys-devel/clang-11.0.1_rc1/work/clang/tools/extra/clangd/test/document-link.test:22:18:
error: CHECK-NEXT: expected string not found in input
# CHECK-NEXT: },
^
<stdin>:167:5: note: scanning from here
}
^
Input file: <stdin>
Check file:
/var/tmp/portage/sys-devel/clang-11.0.1_rc1/work/clang/tools/extra/clangd/test/document-link.test
-dump-input=help explains the following input dump.
Input was:
<<<<<<
.
.
.
162: "character": 9,
163: "line": 0
164: }
165: },
166: "target": "file:///usr/include/stdint.h"
167: }
next:22 X error: no match found
168: ]
next:22 ~~~
169: }Content-Length: 51
next:22 ~~~~~~~~~~~~~~~~~~~
170:
next:22 ~
171: {
next:22 ~
172: "id": 3,
next:22 ~~~~~~~~~~
.
.
.
>>>>>>
--
********************
Referenced Bugs:
https://bugs.llvm.org/show_bug.cgi?id=47800
[Bug 47800] [meta] 11.0.1 Release Blockers
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201129/2b3aedcd/attachment-0001.html>
More information about the llvm-bugs
mailing list