Closed vis4rd closed 1 month ago
Thanks for the report.
I can reproduce this crash with clangd 18, but it seems to be fixed in clangd 19.
While clangd 19 is not released yet, pre-release versions can be obtained from https://github.com/clangd/clangd/releases.
Hi, looks like it is a problem of clangd and not this extension then, sorry! It works with clangd 19. Thank you.
I am using quite heavily templated class, sometimes with multiple requires expressions in a single method and clangd extension (in LSP mode?) crashes because of that.
What is interesting,
clangd --tweaks=std=c++20 -log=verbose --check=PackedVariable.hpp
does not yield any errors.Code snippet:
PackedVariable.hpp (Click to expand)
```cpp #includeLogs
Log from VSCode clangd output view:
(Click to expand)
``` I[20:27:30.824] (built by Brecht Sanders, r3) clangd version 18.1.8 I[20:27:30.824] Features: windows I[20:27:30.824] PID: 14360 I[20:27:30.824] Working directory: s:/Code/CPP/packed_variable I[20:27:30.824] argv[0]: S:/Environment/Compilers/mingw64_12.0.0_gcc_14.1.0_clang_18.1.8_ucrt/bin/clangd.exe I[20:27:30.824] argv[1]: --header-insertion I[20:27:30.824] argv[2]: never I[20:27:30.826] Starting LSP over stdin/stdout I[20:27:30.826] <-- initialize(0) I[20:27:30.828] --> reply:initialize(0) 2 ms I[20:27:30.829] <-- initialized I[20:27:30.831] <-- textDocument/didOpen I[20:27:30.832] <-- textDocument/didOpen I[20:27:30.832] <-- textDocument/documentSymbol(1) I[20:27:30.832] <-- textDocument/codeAction(2) I[20:27:30.837] --> textDocument/publishDiagnostics I[20:27:30.837] Loaded compilation database from s:/Code/CPP/packed_variable/build/compile_commands.json I[20:27:30.838] ASTWorker building file s:/Code/CPP/packed_variable/main.cpp version 7 with command [S:/Code/CPP/packed_variable/build] S:/Environment/Compilers/mingw64_11.0.0_gcc_13.1.0_clang_16.0.5_msvcrt/bin/g++.exe --driver-mode=g++ -IS:/Code/CPP/packed_variable/include -O3 -DNDEBUG -std=gnu++20 -o "CMakeFiles\\PackedVariableTest.dir\\main.cpp.obj" -c -std=c++20 -resource-dir=S:/Environment/Compilers/mingw64_12.0.0_gcc_14.1.0_clang_18.1.8_ucrt/lib/clang/18 -- s:/Code/CPP/packed_variable/main.cpp I[20:27:30.838] ASTWorker building file s:/Code/CPP/packed_variable/include/PackedVariable.hpp version 4 with command inferred from S:/Code/CPP/packed_variable/main.cpp [S:/Code/CPP/packed_variable/build] S:/Environment/Compilers/mingw64_11.0.0_gcc_13.1.0_clang_16.0.5_msvcrt/bin/g++.exe --driver-mode=g++ -IS:/Code/CPP/packed_variable/include -O3 -DNDEBUG -c -std=gnu++20 -std=c++20 -resource-dir=S:/Environment/Compilers/mingw64_12.0.0_gcc_14.1.0_clang_18.1.8_ucrt/lib/clang/18 -- s:/Code/CPP/packed_variable/include/PackedVariable.hpp I[20:27:30.838] --> textDocument/publishDiagnostics I[20:27:30.838] --> window/workDoneProgress/create(0) I[20:27:30.838] Enqueueing 1 commands for indexing I[20:27:30.838] <-- reply(0) I[20:27:30.838] --> $/progress I[20:27:30.838] --> $/progress I[20:27:30.839] --> $/progress I[20:27:30.839] --> $/progress I[20:27:30.839] --> $/progress I[20:27:30.839] --> textDocument/clangd.fileStatus I[20:27:30.839] --> textDocument/clangd.fileStatus I[20:27:30.843] <-- textDocument/documentLink(3) I[20:27:30.843] <-- textDocument/inlayHint(4) PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace. Stack dump: 0. S:/Code/CPP/packed_variable/include/PackedVariable.hpp:130:52: current parser token '{' Signalled while building preamble Filename: S:/Code/CPP/packed_variable/main.cpp Directory: S:/Code/CPP/packed_variable/build Command Line: S:/Environment/Compilers/mingw64_11.0.0_gcc_13.1.0_clang_16.0.5_msvcrt/bin/g++.exe --driver-mode=g++ -IS:/Code/CPP/packed_variable/include -O3 -DNDEBUG -std=gnu++20 -o CMakeFiles\PackedVariableTest.dir\main.cpp.obj -c -std=c++20 -resource-dir=S:/Environment/Compilers/mingw64_12.0.0_gcc_14.1.0_clang_18.1.8_ucrt/lib/clang/18 -- s:/Code/CPP/packed_variable/main.cpp Version: 7 [Info - 8:27:31 PM] Connection to server got closed. Server will restart. [Error - 8:27:31 PM] Request textDocument/documentSymbol failed. [object Object] [Error - 8:27:31 PM] Request textDocument/codeAction failed. [object Object] [Error - 8:27:31 PM] Request textDocument/documentLink failed. [object Object] [Error - 8:27:31 PM] Request textDocument/inlayHint failed. [object Object] I[20:27:31.307] (built by Brecht Sanders, r3) clangd version 18.1.8 I[20:27:31.307] Features: windows I[20:27:31.307] PID: 18512 I[20:27:31.307] Working directory: s:/Code/CPP/packed_variable I[20:27:31.307] argv[0]: S:/Environment/Compilers/mingw64_12.0.0_gcc_14.1.0_clang_18.1.8_ucrt/bin/clangd.exe I[20:27:31.307] argv[1]: --header-insertion I[20:27:31.307] argv[2]: never I[20:27:31.309] Starting LSP over stdin/stdout I[20:27:31.309] <-- initialize(0) I[20:27:31.311] --> reply:initialize(0) 1 ms I[20:27:31.312] <-- initialized I[20:27:31.314] <-- textDocument/didOpen I[20:27:31.314] <-- textDocument/didOpen I[20:27:31.315] --> textDocument/publishDiagnostics I[20:27:31.315] Loaded compilation database from s:/Code/CPP/packed_variable/build/compile_commands.json I[20:27:31.316] ASTWorker building file s:/Code/CPP/packed_variable/main.cpp version 7 with command [S:/Code/CPP/packed_variable/build] S:/Environment/Compilers/mingw64_11.0.0_gcc_13.1.0_clang_16.0.5_msvcrt/bin/g++.exe --driver-mode=g++ -IS:/Code/CPP/packed_variable/include -O3 -DNDEBUG -std=gnu++20 -o "CMakeFiles\\PackedVariableTest.dir\\main.cpp.obj" -c -std=c++20 -resource-dir=S:/Environment/Compilers/mingw64_12.0.0_gcc_14.1.0_clang_18.1.8_ucrt/lib/clang/18 -- s:/Code/CPP/packed_variable/main.cpp I[20:27:31.316] ASTWorker building file s:/Code/CPP/packed_variable/include/PackedVariable.hpp version 4 with command inferred from S:/Code/CPP/packed_variable/main.cpp [S:/Code/CPP/packed_variable/build] S:/Environment/Compilers/mingw64_11.0.0_gcc_13.1.0_clang_16.0.5_msvcrt/bin/g++.exe --driver-mode=g++ -IS:/Code/CPP/packed_variable/include -O3 -DNDEBUG -c -std=gnu++20 -std=c++20 -resource-dir=S:/Environment/Compilers/mingw64_12.0.0_gcc_14.1.0_clang_18.1.8_ucrt/lib/clang/18 -- s:/Code/CPP/packed_variable/include/PackedVariable.hpp I[20:27:31.316] --> textDocument/publishDiagnostics I[20:27:31.316] --> window/workDoneProgress/create(0) I[20:27:31.316] Enqueueing 1 commands for indexing I[20:27:31.316] <-- reply(0) I[20:27:31.316] --> $/progress I[20:27:31.316] --> $/progress I[20:27:31.317] --> $/progress I[20:27:31.317] --> $/progress I[20:27:31.317] --> $/progress I[20:27:31.317] --> textDocument/clangd.fileStatus I[20:27:31.317] --> textDocument/clangd.fileStatus I[20:27:31.318] <-- textDocument/documentSymbol(1) I[20:27:31.319] <-- textDocument/codeAction(2) I[20:27:31.324] <-- textDocument/documentLink(3) I[20:27:31.325] <-- textDocument/inlayHint(4) I[20:27:31.590] <-- textDocument/foldingRange(5) I[20:27:31.592] --> reply:textDocument/foldingRange(5) 1 ms I[20:27:31.627] <-- textDocument/documentSymbol(6) PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace. Stack dump: 0. S:/Code/CPP/packed_variable/include/PackedVariable.hpp:130:52: current parser token '{' Signalled while building preamble Filename: S:/Code/CPP/packed_variable/main.cpp Directory: S:/Code/CPP/packed_variable/build Command Line: S:/Environment/Compilers/mingw64_11.0.0_gcc_13.1.0_clang_16.0.5_msvcrt/bin/g++.exe --driver-mode=g++ -IS:/Code/CPP/packed_variable/include -O3 -DNDEBUG -std=gnu++20 -o CMakeFiles\PackedVariableTest.dir\main.cpp.obj -c -std=c++20 -resource-dir=S:/Environment/Compilers/mingw64_12.0.0_gcc_14.1.0_clang_18.1.8_ucrt/lib/clang/18 -- s:/Code/CPP/packed_variable/main.cpp Version: 7 [Info - 8:27:31 PM] Connection to server got closed. Server will restart. [Error - 8:27:31 PM] Request textDocument/documentSymbol failed. [object Object] [Error - 8:27:31 PM] Request textDocument/codeAction failed. [object Object] [Error - 8:27:31 PM] Request textDocument/documentLink failed. [object Object] [Error - 8:27:31 PM] Request textDocument/inlayHint failed. [object Object] [Error - 8:27:31 PM] Request textDocument/documentSymbol failed. [object Object] I[20:27:31.736] (built by Brecht Sanders, r3) clangd version 18.1.8 I[20:27:31.736] Features: windows I[20:27:31.736] PID: 432 I[20:27:31.736] Working directory: s:/Code/CPP/packed_variable I[20:27:31.736] argv[0]: S:/Environment/Compilers/mingw64_12.0.0_gcc_14.1.0_clang_18.1.8_ucrt/bin/clangd.exe I[20:27:31.736] argv[1]: --header-insertion I[20:27:31.736] argv[2]: never I[20:27:31.738] Starting LSP over stdin/stdout I[20:27:31.738] <-- initialize(0) I[20:27:31.740] --> reply:initialize(0) 1 ms I[20:27:31.741] <-- initialized I[20:27:31.742] <-- textDocument/didOpen I[20:27:31.743] <-- textDocument/didOpen I[20:27:31.743] <-- textDocument/documentSymbol(1) I[20:27:31.743] <-- textDocument/codeAction(2) I[20:27:31.744] --> textDocument/publishDiagnostics I[20:27:31.744] Loaded compilation database from s:/Code/CPP/packed_variable/build/compile_commands.json I[20:27:31.744] ASTWorker building file s:/Code/CPP/packed_variable/include/PackedVariable.hpp version 4 with command inferred from S:/Code/CPP/packed_variable/main.cpp [S:/Code/CPP/packed_variable/build] S:/Environment/Compilers/mingw64_11.0.0_gcc_13.1.0_clang_16.0.5_msvcrt/bin/g++.exe --driver-mode=g++ -IS:/Code/CPP/packed_variable/include -O3 -DNDEBUG -c -std=gnu++20 -std=c++20 -resource-dir=S:/Environment/Compilers/mingw64_12.0.0_gcc_14.1.0_clang_18.1.8_ucrt/lib/clang/18 -- s:/Code/CPP/packed_variable/include/PackedVariable.hpp I[20:27:31.744] ASTWorker building file s:/Code/CPP/packed_variable/main.cpp version 7 with command [S:/Code/CPP/packed_variable/build] S:/Environment/Compilers/mingw64_11.0.0_gcc_13.1.0_clang_16.0.5_msvcrt/bin/g++.exe --driver-mode=g++ -IS:/Code/CPP/packed_variable/include -O3 -DNDEBUG -std=gnu++20 -o "CMakeFiles\\PackedVariableTest.dir\\main.cpp.obj" -c -std=c++20 -resource-dir=S:/Environment/Compilers/mingw64_12.0.0_gcc_14.1.0_clang_18.1.8_ucrt/lib/clang/18 -- s:/Code/CPP/packed_variable/main.cpp I[20:27:31.745] --> textDocument/publishDiagnostics I[20:27:31.745] --> window/workDoneProgress/create(0) I[20:27:31.745] Enqueueing 1 commands for indexing I[20:27:31.745] <-- reply(0) I[20:27:31.745] --> $/progress I[20:27:31.745] --> $/progress I[20:27:31.745] --> $/progress I[20:27:31.745] --> $/progress I[20:27:31.745] --> $/progress I[20:27:31.746] --> textDocument/clangd.fileStatus I[20:27:31.746] --> textDocument/clangd.fileStatus I[20:27:31.748] <-- textDocument/documentLink(3) I[20:27:31.748] <-- textDocument/inlayHint(4) I[20:27:32.007] <-- textDocument/foldingRange(5) I[20:27:32.008] --> reply:textDocument/foldingRange(5) 0 ms I[20:27:32.047] <-- textDocument/documentSymbol(6) PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace. Stack dump: 0. S:/Code/CPP/packed_variable/include/PackedVariable.hpp:130:52: current parser token '{' Signalled while building preamble Filename: S:/Code/CPP/packed_variable/main.cpp Directory: S:/Code/CPP/packed_variable/build Command Line: S:/Environment/Compilers/mingw64_11.0.0_gcc_13.1.0_clang_16.0.5_msvcrt/bin/g++.exe --driver-mode=g++ -IS:/Code/CPP/packed_variable/include -O3 -DNDEBUG -std=gnu++20 -o CMakeFiles\PackedVariableTest.dir\main.cpp.obj -c -std=c++20 -resource-dir=S:/Environment/Compilers/mingw64_12.0.0_gcc_14.1.0_clang_18.1.8_ucrt/lib/clang/18 -- s:/Code/CPP/packed_variable/main.cpp Version: 7 [Info - 8:27:32 PM] Connection to server got closed. Server will restart. [Error - 8:27:32 PM] Request textDocument/documentSymbol failed. [object Object] [Error - 8:27:32 PM] Request textDocument/codeAction failed. [object Object] [Error - 8:27:32 PM] Request textDocument/documentLink failed. [object Object] [Error - 8:27:32 PM] Request textDocument/inlayHint failed. [object Object] [Error - 8:27:32 PM] Request textDocument/documentSymbol failed. [object Object] I[20:27:32.160] (built by Brecht Sanders, r3) clangd version 18.1.8 I[20:27:32.161] Features: windows I[20:27:32.161] PID: 7364 I[20:27:32.161] Working directory: s:/Code/CPP/packed_variable I[20:27:32.161] argv[0]: S:/Environment/Compilers/mingw64_12.0.0_gcc_14.1.0_clang_18.1.8_ucrt/bin/clangd.exe I[20:27:32.161] argv[1]: --header-insertion I[20:27:32.161] argv[2]: never I[20:27:32.162] Starting LSP over stdin/stdout I[20:27:32.162] <-- initialize(0) I[20:27:32.164] --> reply:initialize(0) 1 ms I[20:27:32.165] <-- initialized I[20:27:32.166] <-- textDocument/didOpen I[20:27:32.166] <-- textDocument/didOpen I[20:27:32.167] --> textDocument/publishDiagnostics I[20:27:32.168] Loaded compilation database from s:/Code/CPP/packed_variable/build/compile_commands.json I[20:27:32.168] <-- textDocument/documentSymbol(1) I[20:27:32.168] ASTWorker building file s:/Code/CPP/packed_variable/include/PackedVariable.hpp version 4 with command inferred from S:/Code/CPP/packed_variable/main.cpp [S:/Code/CPP/packed_variable/build] S:/Environment/Compilers/mingw64_11.0.0_gcc_13.1.0_clang_16.0.5_msvcrt/bin/g++.exe --driver-mode=g++ -IS:/Code/CPP/packed_variable/include -O3 -DNDEBUG -c -std=gnu++20 -std=c++20 -resource-dir=S:/Environment/Compilers/mingw64_12.0.0_gcc_14.1.0_clang_18.1.8_ucrt/lib/clang/18 -- s:/Code/CPP/packed_variable/include/PackedVariable.hpp I[20:27:32.168] ASTWorker building file s:/Code/CPP/packed_variable/main.cpp version 7 with command [S:/Code/CPP/packed_variable/build] S:/Environment/Compilers/mingw64_11.0.0_gcc_13.1.0_clang_16.0.5_msvcrt/bin/g++.exe --driver-mode=g++ -IS:/Code/CPP/packed_variable/include -O3 -DNDEBUG -std=gnu++20 -o "CMakeFiles\\PackedVariableTest.dir\\main.cpp.obj" -c -std=c++20 -resource-dir=S:/Environment/Compilers/mingw64_12.0.0_gcc_14.1.0_clang_18.1.8_ucrt/lib/clang/18 -- s:/Code/CPP/packed_variable/main.cpp I[20:27:32.169] --> textDocument/publishDiagnostics I[20:27:32.169] --> window/workDoneProgress/create(0) I[20:27:32.169] Enqueueing 1 commands for indexing I[20:27:32.169] <-- textDocument/codeAction(2) I[20:27:32.169] <-- reply(0) I[20:27:32.169] --> $/progress I[20:27:32.169] --> $/progress I[20:27:32.169] --> $/progress I[20:27:32.169] --> $/progress I[20:27:32.170] --> $/progress I[20:27:32.170] --> textDocument/clangd.fileStatus I[20:27:32.170] --> textDocument/clangd.fileStatus I[20:27:32.174] <-- textDocument/documentLink(3) I[20:27:32.174] <-- textDocument/inlayHint(4) I[20:27:32.437] <-- textDocument/foldingRange(5) I[20:27:32.437] --> reply:textDocument/foldingRange(5) 0 ms I[20:27:32.480] <-- textDocument/documentSymbol(6) PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace. Stack dump: 0. S:/Code/CPP/packed_variable/include/PackedVariable.hpp:130:52: current parser token '{' Signalled while building preamble Filename: S:/Code/CPP/packed_variable/main.cpp Directory: S:/Code/CPP/packed_variable/build Command Line: S:/Environment/Compilers/mingw64_11.0.0_gcc_13.1.0_clang_16.0.5_msvcrt/bin/g++.exe --driver-mode=g++ -IS:/Code/CPP/packed_variable/include -O3 -DNDEBUG -std=gnu++20 -o CMakeFiles\PackedVariableTest.dir\main.cpp.obj -c -std=c++20 -resource-dir=S:/Environment/Compilers/mingw64_12.0.0_gcc_14.1.0_clang_18.1.8_ucrt/lib/clang/18 -- s:/Code/CPP/packed_variable/main.cpp Version: 7 [Info - 8:27:32 PM] Connection to server got closed. Server will restart. [Error - 8:27:32 PM] Request textDocument/documentSymbol failed. [object Object] [Error - 8:27:32 PM] Request textDocument/codeAction failed. [object Object] [Error - 8:27:32 PM] Request textDocument/documentLink failed. [object Object] [Error - 8:27:32 PM] Request textDocument/inlayHint failed. [object Object] [Error - 8:27:32 PM] Request textDocument/documentSymbol failed. [object Object] I[20:27:32.585] (built by Brecht Sanders, r3) clangd version 18.1.8 I[20:27:32.586] Features: windows I[20:27:32.586] PID: 17756 I[20:27:32.586] Working directory: s:/Code/CPP/packed_variable I[20:27:32.586] argv[0]: S:/Environment/Compilers/mingw64_12.0.0_gcc_14.1.0_clang_18.1.8_ucrt/bin/clangd.exe I[20:27:32.586] argv[1]: --header-insertion I[20:27:32.586] argv[2]: never I[20:27:32.587] Starting LSP over stdin/stdout I[20:27:32.588] <-- initialize(0) I[20:27:32.589] --> reply:initialize(0) 1 ms I[20:27:32.590] <-- initialized I[20:27:32.592] <-- textDocument/didOpen I[20:27:32.593] <-- textDocument/didOpen I[20:27:32.593] <-- textDocument/documentSymbol(1) I[20:27:32.593] <-- textDocument/codeAction(2) I[20:27:32.593] --> textDocument/publishDiagnostics I[20:27:32.593] Loaded compilation database from s:/Code/CPP/packed_variable/build/compile_commands.json I[20:27:32.594] ASTWorker building file s:/Code/CPP/packed_variable/main.cpp version 7 with command [S:/Code/CPP/packed_variable/build] S:/Environment/Compilers/mingw64_11.0.0_gcc_13.1.0_clang_16.0.5_msvcrt/bin/g++.exe --driver-mode=g++ -IS:/Code/CPP/packed_variable/include -O3 -DNDEBUG -std=gnu++20 -o "CMakeFiles\\PackedVariableTest.dir\\main.cpp.obj" -c -std=c++20 -resource-dir=S:/Environment/Compilers/mingw64_12.0.0_gcc_14.1.0_clang_18.1.8_ucrt/lib/clang/18 -- s:/Code/CPP/packed_variable/main.cpp I[20:27:32.594] ASTWorker building file s:/Code/CPP/packed_variable/include/PackedVariable.hpp version 4 with command inferred from S:/Code/CPP/packed_variable/main.cpp [S:/Code/CPP/packed_variable/build] S:/Environment/Compilers/mingw64_11.0.0_gcc_13.1.0_clang_16.0.5_msvcrt/bin/g++.exe --driver-mode=g++ -IS:/Code/CPP/packed_variable/include -O3 -DNDEBUG -c -std=gnu++20 -std=c++20 -resource-dir=S:/Environment/Compilers/mingw64_12.0.0_gcc_14.1.0_clang_18.1.8_ucrt/lib/clang/18 -- s:/Code/CPP/packed_variable/include/PackedVariable.hpp I[20:27:32.594] --> textDocument/publishDiagnostics I[20:27:32.594] --> window/workDoneProgress/create(0) I[20:27:32.594] Enqueueing 1 commands for indexing I[20:27:32.595] <-- reply(0) I[20:27:32.595] --> $/progress I[20:27:32.595] --> $/progress I[20:27:32.595] --> $/progress I[20:27:32.595] --> $/progress I[20:27:32.595] --> $/progress I[20:27:32.596] --> textDocument/clangd.fileStatus I[20:27:32.596] --> textDocument/clangd.fileStatus I[20:27:32.597] <-- textDocument/documentLink(3) I[20:27:32.598] <-- textDocument/inlayHint(4) I[20:27:32.860] <-- textDocument/foldingRange(5) I[20:27:32.861] --> reply:textDocument/foldingRange(5) 1 ms I[20:27:32.896] <-- textDocument/documentSymbol(6) PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace. Stack dump: 0. S:/Code/CPP/packed_variable/include/PackedVariable.hpp:130:52: current parser token '{' Signalled while building preamble Filename: S:/Code/CPP/packed_variable/main.cpp Directory: S:/Code/CPP/packed_variable/build Command Line: S:/Environment/Compilers/mingw64_11.0.0_gcc_13.1.0_clang_16.0.5_msvcrt/bin/g++.exe --driver-mode=g++ -IS:/Code/CPP/packed_variable/include -O3 -DNDEBUG -std=gnu++20 -o CMakeFiles\PackedVariableTest.dir\main.cpp.obj -c -std=c++20 -resource-dir=S:/Environment/Compilers/mingw64_12.0.0_gcc_14.1.0_clang_18.1.8_ucrt/lib/clang/18 -- s:/Code/CPP/packed_variable/main.cpp Version: 7 [Error - 8:27:32 PM] The Clang Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information. [Error - 8:27:32 PM] Request textDocument/documentSymbol failed. [object Object] [Error - 8:27:32 PM] Request textDocument/codeAction failed. [object Object] [Error - 8:27:32 PM] Request textDocument/documentLink failed. [object Object] [Error - 8:27:32 PM] Request textDocument/inlayHint failed. [object Object] [Error - 8:27:32 PM] Request textDocument/documentSymbol failed. [object Object] ```Particularly interesting part:
Looks like it has problems with parsing whatever is after
requires(sizeof...(Sections) >= sizeof...(values))
.Logs mention
compile_commands.json
andmain.cpp
, where the header is included, so adding them as well:compile_commands.json (click to expand)
Generated by CMake with VSCode CMake extension. ```json [ { "directory": "S:/Code/CPP/packed_variable/build", "command": "S:\\Environment\\Compilers\\mingw64_11.0.0_gcc_13.1.0_clang_16.0.5_msvcrt\\bin\\g++.exe @CMakeFiles/PackedVariableTest.dir/includes_CXX.rsp -O3 -DNDEBUG -std=gnu++20 -o CMakeFiles\\PackedVariableTest.dir\\main.cpp.obj -c S:\\Code\\CPP\\packed_variable\\main.cpp", "file": "S:/Code/CPP/packed_variable/main.cpp", "output": "CMakeFiles/PackedVariableTest.dir/main.cpp.obj" } ] ```main.cpp (click to expand)
```cpp #include.clangd (click to expand)
```yaml --- Diagnostics: UnusedIncludes: Strict CompileFlags: Add: [ -std=c++20 ] ... ```System information
Output of
clangd --version
:VSCode version:
Editor/LSP plugin:
Operating system: Windows 11 Home 23H2 64-bit