clangd / vscode-clangd

Visual Studio Code extension for clangd
https://marketplace.visualstudio.com/items?itemName=llvm-vs-code-extensions.vscode-clangd
MIT License
592 stars 97 forks source link

`Property FastCheckFilter is not allowed.` even when using clangd 18 #625

Closed palapapa closed 2 months ago

palapapa commented 2 months ago

When using FastCheckFilter: None, the schema warns that Property FastCheckFilter is not allowed.. This is probably a schema issue only since the log doesn't give any errors regarding the config.

Logs

I[18:49:00.352] clangd version 18.1.3 (https://github.com/llvm/llvm-project c13b7485b87909fcf739f62cfa382b55407433c0)
I[18:49:00.352] Features: linux+grpc
I[18:49:00.352] PID: 22846
I[18:49:00.352] Working directory: /home/palapapa/c/college/system-programming/ch4-bonus
I[18:49:00.352] argv[0]: /home/palapapa/.vscode-server/data/User/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/18.1.3/clangd_18.1.3/bin/clangd
I[18:49:00.352] argv[1]: --log=verbose
I[18:49:00.352] argv[2]: --query-driver=**/*
V[18:49:00.352] User config file is /home/palapapa/.config/clangd/config.yaml
I[18:49:00.352] Starting LSP over stdin/stdout
V[18:49:00.358] <<< {"id":0,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{"general":{"markdown":{"parser":"marked","version":"1.1.0"},"positionEncodings":["utf-16"],"regularExpressions":{"engine":"ECMAScript","version":"ES2020"},"staleRequestSupport":{"cancel":true,"retryOnContentModified":["textDocument/semanticTokens/full","textDocument/semanticTokens/range","textDocument/semanticTokens/full/delta"]}},"notebookDocument":{"synchronization":{"dynamicRegistration":true,"executionSummarySupport":true}},"textDocument":{"callHierarchy":{"dynamicRegistration":true},"codeAction":{"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}},"dataSupport":true,"disabledSupport":true,"dynamicRegistration":true,"honorsChangeAnnotations":false,"isPreferredSupport":true,"resolveSupport":{"properties":["edit"]}},"codeLens":{"dynamicRegistration":true},"colorProvider":{"dynamicRegistration":true},"completion":{"completionItem":{"commitCharactersSupport":true,"deprecatedSupport":true,"documentationFormat":["markdown","plaintext"],"insertReplaceSupport":true,"insertTextModeSupport":{"valueSet":[1,2]},"labelDetailsSupport":true,"preselectSupport":true,"resolveSupport":{"properties":["documentation","detail","additionalTextEdits"]},"snippetSupport":true,"tagSupport":{"valueSet":[1]}},"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]},"completionList":{"itemDefaults":["commitCharacters","editRange","insertTextFormat","insertTextMode"]},"contextSupport":true,"dynamicRegistration":true,"editsNearCursor":true,"insertTextMode":2},"declaration":{"dynamicRegistration":true,"linkSupport":true},"definition":{"dynamicRegistration":true,"linkSupport":true},"diagnostic":{"dynamicRegistration":true,"relatedDocumentSupport":false},"documentHighlight":{"dynamicRegistration":true},"documentLink":{"dynamicRegistration":true,"tooltipSupport":true},"documentSymbol":{"dynamicRegistration":true,"hierarchicalDocumentSymbolSupport":true,"labelSupport":true,"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]},"tagSupport":{"valueSet":[1]}},"foldingRange":{"dynamicRegistration":true,"foldingRange":{"collapsedText":false},"foldingRangeKind":{"valueSet":["comment","imports","region"]},"lineFoldingOnly":true,"rangeLimit":5000},"formatting":{"dynamicRegistration":true},"hover":{"contentFormat":["markdown","plaintext"],"dynamicRegistration":true},"implementation":{"dynamicRegistration":true,"linkSupport":true},"inactiveRegionsCapabilities":{"inactiveRegions":true},"inlayHint":{"dynamicRegistration":true,"resolveSupport":{"properties":["tooltip","textEdits","label.tooltip","label.location","label.command"]}},"inlineValue":{"dynamicRegistration":true},"linkedEditingRange":{"dynamicRegistration":true},"onTypeFormatting":{"dynamicRegistration":true},"publishDiagnostics":{"codeDescriptionSupport":true,"dataSupport":true,"relatedInformation":true,"tagSupport":{"valueSet":[1,2]},"versionSupport":false},"rangeFormatting":{"dynamicRegistration":true},"references":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true,"honorsChangeAnnotations":true,"prepareSupport":true,"prepareSupportDefaultBehavior":1},"selectionRange":{"dynamicRegistration":true},"semanticTokens":{"augmentsSyntaxTokens":true,"dynamicRegistration":true,"formats":["relative"],"multilineTokenSupport":false,"overlappingTokenSupport":false,"requests":{"full":{"delta":true},"range":true},"serverCancelSupport":true,"tokenModifiers":["declaration","definition","readonly","static","deprecated","abstract","async","modification","documentation","defaultLibrary"],"tokenTypes":["namespace","type","class","enum","interface","struct","typeParameter","parameter","variable","property","enumMember","event","function","method","macro","keyword","modifier","comment","string","number","regexp","operator","decorator"]},"signatureHelp":{"contextSupport":true,"dynamicRegistration":true,"signatureInformation":{"activeParameterSupport":true,"documentationFormat":["markdown","plaintext"],"parameterInformation":{"labelOffsetSupport":true}}},"synchronization":{"didSave":true,"dynamicRegistration":true,"willSave":true,"willSaveWaitUntil":true},"typeDefinition":{"dynamicRegistration":true,"linkSupport":true},"typeHierarchy":{"dynamicRegistration":true}},"window":{"showDocument":{"support":true},"showMessage":{"messageActionItem":{"additionalPropertiesSupport":true}},"workDoneProgress":true},"workspace":{"applyEdit":true,"codeLens":{"refreshSupport":true},"configuration":true,"diagnostics":{"refreshSupport":true},"didChangeConfiguration":{"dynamicRegistration":true},"didChangeWatchedFiles":{"dynamicRegistration":true,"relativePatternSupport":true},"executeCommand":{"dynamicRegistration":true},"fileOperations":{"didCreate":true,"didDelete":true,"didRename":true,"dynamicRegistration":true,"willCreate":true,"willDelete":true,"willRename":true},"inlayHint":{"refreshSupport":true},"inlineValue":{"refreshSupport":true},"semanticTokens":{"refreshSupport":true},"symbol":{"dynamicRegistration":true,"resolveSupport":{"properties":["location.range"]},"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]},"tagSupport":{"valueSet":[1]}},"workspaceEdit":{"changeAnnotationSupport":{"groupsOnLabel":true},"documentChanges":true,"failureHandling":"textOnlyTransactional","normalizesLineEndings":true,"resourceOperations":["create","rename","delete"]},"workspaceFolders":true}},"clientInfo":{"name":"Visual Studio Code","version":"1.88.1"},"initializationOptions":{"clangdFileStatus":true,"fallbackFlags":["-Weverything","-Wno-used-but-marked-unused","-Wno-declaration-after-statement","-Wno-vla","-Wno-missing-prototypes","-Wno-c++98-compat","-Wno-reserved-macro-identifier","-Wno-padded","-Wno-unsafe-buffer-usage","-Wno-empty-translation-unit","-xc","-std=gnu17"]},"locale":"en","processId":22528,"rootPath":"/home/palapapa/c/college/system-programming/ch4-bonus","rootUri":"file:///home/palapapa/c/college/system-programming/ch4-bonus","trace":"off","workspaceFolders":[{"name":"ch4-bonus","uri":"file:///home/palapapa/c/college/system-programming/ch4-bonus"}]}}

I[18:49:00.358] <-- initialize(0)
I[18:49:00.418] --> reply:initialize(0) 59 ms
V[18:49:00.418] >>> {"id":0,"jsonrpc":"2.0","result":{"capabilities":{"astProvider":true,"callHierarchyProvider":true,"clangdInlayHintsProvider":true,"codeActionProvider":{"codeActionKinds":["quickfix","refactor","info"]},"compilationDatabase":{"automaticReload":true},"completionProvider":{"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"]},"foldingRangeProvider":true,"hoverProvider":true,"implementationProvider":true,"inactiveRegionsProvider":true,"inlayHintProvider":true,"memoryUsageProvider":true,"referencesProvider":true,"renameProvider":{"prepareProvider":true},"selectionRangeProvider":true,"semanticTokensProvider":{"full":{"delta":true},"legend":{"tokenModifiers":["declaration","definition","deprecated","deduced","readonly","static","abstract","virtual","dependentName","defaultLibrary","usedAsMutableReference","usedAsMutablePointer","constructorOrDestructor","userDefined","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","modifier","operator","bracket","label","comment"]},"range":false},"signatureHelpProvider":{"triggerCharacters":["(",")","{","}","<",">",","]},"standardTypeHierarchyProvider":true,"textDocumentSync":{"change":2,"openClose":true,"save":true},"typeDefinitionProvider":true,"typeHierarchyProvider":true,"workspaceSymbolProvider":true},"serverInfo":{"name":"clangd","version":"clangd version 18.1.3 (https://github.com/llvm/llvm-project c13b7485b87909fcf739f62cfa382b55407433c0) linux+grpc x86_64-unknown-linux-gnu"}}}

V[18:49:00.471] <<< {"jsonrpc":"2.0","method":"initialized","params":{}}

I[18:49:00.471] <-- initialized
V[18:49:00.488] <<< {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"languageId":"c","text":"#define _XOPEN_SOURCE 700\n#include <unistd.h>\n#include <sys/stat.h>\n#include <ftw.h>\n\nstatic unsigned long long regularCount,\n    directoryCount,\n    characterDeviceCount,\n    blockDeviceCount,\n    fifoCount,\n    symlinkCount,\n    socketCount;\n\ntypedef struct FTW\n{\n    int base;\n    int level;\n} FTW;\n\nint countFileTypes(const char *path, const struct stat *stat, int type, FTW *ftw)\n{\n    (void)path;\n    (void)type;\n    (void)ftw;\n    switch (stat->st_mode & S_IFMT)\n    {\n        \n    }\n}\n\nint main(void)\n{\n    \n}\n","uri":"file:///home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c","version":1}}}

I[18:49:00.488] <-- textDocument/didOpen
E[18:49:00.563] System include extraction: driver clang not found in PATH
V[18:49:00.563] <<< {"id":1,"jsonrpc":"2.0","method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"file:///home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c"}}}

I[18:49:00.563] <-- textDocument/documentSymbol(1)
V[18:49:00.563] <<< {"id":2,"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"context":{"diagnostics":[],"triggerKind":2},"range":{"end":{"character":8,"line":26},"start":{"character":8,"line":26}},"textDocument":{"uri":"file:///home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c"}}}

I[18:49:00.563] <-- textDocument/codeAction(2)
V[18:49:00.563] <<< {"id":3,"jsonrpc":"2.0","method":"textDocument/documentLink","params":{"textDocument":{"uri":"file:///home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c"}}}

I[18:49:00.563] <-- textDocument/documentLink(3)
V[18:49:00.575] config note at /home/palapapa/.config/clangd/config.yaml:1:0: Parsing config fragment
V[18:49:00.575] config note at /home/palapapa/.config/clangd/config.yaml:43:0: Parsing config fragment
V[18:49:00.575] config note at /home/palapapa/.config/clangd/config.yaml:52:0: Parsing config fragment
V[18:49:00.575] config note at /home/palapapa/.config/clangd/config.yaml:1:0: Parsed 3 fragments from file
V[18:49:00.575] Config fragment: compiling /home/palapapa/.config/clangd/config.yaml:1 -> 0x00007F4C680065F0 (trusted=true)
I[18:49:00.576] config warning at /home/palapapa/.config/clangd/config.yaml:29:8: Latency of clang-tidy check 'bugprone-switch-missing-default-case' is not known. It will only run if ClangTidy.FastCheckFilter is Loose or None
V[18:49:00.576] Config fragment: compiling /home/palapapa/.config/clangd/config.yaml:43 -> 0x00007F4C68015170 (trusted=true)
V[18:49:00.576] Config fragment: compiling /home/palapapa/.config/clangd/config.yaml:52 -> 0x00007F4C68015250 (trusted=true)
I[18:49:00.576] --> textDocument/publishDiagnostics
V[18:49:00.576] >>> {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[{"message":"Latency of clang-tidy check 'bugprone-switch-missing-default-case' is not known. It will only run if ClangTidy.FastCheckFilter is Loose or None","range":{"end":{"character":44,"line":28},"start":{"character":8,"line":28}},"relatedInformation":[],"severity":2,"source":"clangd-config"}],"uri":"file:///home/palapapa/.config/clangd/config.yaml"}}

I[18:49:00.577] Failed to find compilation database for /home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c
V[18:49:00.578] System include extraction: driver gcc expanded to /usr/bin/gcc
V[18:49:00.583] System include extraction: target extracted: "x86_64-linux-gnu"
V[18:49:00.583] System include extraction: adding  /usr/lib/gcc/x86_64-linux-gnu/11/include
V[18:49:00.583] System include extraction: adding  /usr/local/include
V[18:49:00.583] System include extraction: adding  /usr/include/x86_64-linux-gnu
V[18:49:00.583] System include extraction: adding  /usr/include
V[18:49:00.584] System includes extractor: builtin headers /usr/lib/gcc/x86_64-linux-gnu/11/include excluded
I[18:49:00.584] System includes extractor: successfully executed /usr/bin/gcc
    got includes: "/usr/local/include, /usr/include/x86_64-linux-gnu, /usr/include"
    got target: "x86_64-linux-gnu"
I[18:49:00.584] ASTWorker building file /home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c version 1 with command clangd fallback
[/home/palapapa/c/college/system-programming/ch4-bonus]
/usr/bin/gcc -Weverything -Wno-used-but-marked-unused -Wno-declaration-after-statement -Wno-vla -Wno-missing-prototypes -Wno-c++98-compat -Wno-reserved-macro-identifier -Wno-padded -Wno-unsafe-buffer-usage -Wno-empty-translation-unit -xc -std=gnu17 -Weverything -Wno-used-but-marked-unused -Wno-declaration-after-statement -Wno-vla -Wno-missing-prototypes -Wno-c++98-compat -Wno-reserved-macro-identifier -Wno-padded -Wno-unsafe-buffer-usage -Wno-empty-translation-unit -std=c17 -isystem /usr/local/include -isystem /usr/include/x86_64-linux-gnu -isystem /usr/include --target=x86_64-linux-gnu -resource-dir=/home/palapapa/.vscode-server/data/User/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/18.1.3/clangd_18.1.3/lib/clang/18 -- /home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c
V[18:49:00.586] Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name file-type-counter.c -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=all -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -tune-cpu generic -debugger-tuning=gdb -fdebug-compilation-dir=/home/palapapa/c/college/system-programming/ch4-bonus -fcoverage-compilation-dir=/home/palapapa/c/college/system-programming/ch4-bonus -resource-dir /home/palapapa/.vscode-server/data/User/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/18.1.3/clangd_18.1.3/lib/clang/18 -isystem /usr/local/include -isystem /usr/include/x86_64-linux-gnu -isystem /usr/include -internal-isystem /home/palapapa/.vscode-server/data/User/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/18.1.3/clangd_18.1.3/lib/clang/18/include -internal-isystem /usr/local/include -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -Weverything -Wno-used-but-marked-unused -Wno-declaration-after-statement -Wno-vla -Wno-missing-prototypes -Wno-c++98-compat -Wno-reserved-macro-identifier -Wno-padded -Wno-unsafe-buffer-usage -Wno-empty-translation-unit -Weverything -Wno-used-but-marked-unused -Wno-declaration-after-statement -Wno-vla -Wno-missing-prototypes -Wno-c++98-compat -Wno-reserved-macro-identifier -Wno-padded -Wno-unsafe-buffer-usage -Wno-empty-translation-unit -std=c17 -ferror-limit 19 -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -no-round-trip-args -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -x c /home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c
I[18:49:00.586] --> textDocument/clangd.fileStatus
V[18:49:00.586] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"parsing includes, running Update","uri":"file:///home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c"}}

V[18:49:00.586] Building first preamble for /home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c version 1
I[18:49:00.600] Built preamble of size 363160 for file /home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c version 1 in 0.01 seconds
I[18:49:00.600] Indexing c17 standard library in the context of /home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c
I[18:49:00.601] --> workspace/semanticTokens/refresh(0)
V[18:49:00.601] >>> {"id":0,"jsonrpc":"2.0","method":"workspace/semanticTokens/refresh","params":null}

V[18:49:00.608] indexed preamble AST for /home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c version 1:
  symbol slab: 898 symbols, 249416 bytes
  ref slab: 0 symbols, 0 refs, 128 bytes
  relations slab: 0 relations, 24 bytes
V[18:49:00.611] Dropped diagnostic: : use of a signed integer operand with a binary bitwise operator [hicpp-signed-bitwise]
V[18:49:00.612] Build dynamic index for header symbols with estimated memory usage of 1099976 bytes
V[18:49:00.612] indexed file AST for /home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c version 1:
  symbol slab: 13 symbols, 7232 bytes
  ref slab: 16 symbols, 17 refs, 4608 bytes
  relations slab: 0 relations, 24 bytes
V[18:49:00.612] Build dynamic index for main-file symbols with estimated memory usage of 17960 bytes
I[18:49:00.612] --> textDocument/publishDiagnostics
V[18:49:00.612] >>> {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[{"code":"redefinition","message":"Redefinition of 'FTW'","range":{"end":{"character":18,"line":13},"start":{"character":15,"line":13}},"relatedInformation":[{"location":{"range":{"end":{"character":10,"line":104},"start":{"character":7,"line":104}},"uri":"file:///usr/include/ftw.h"},"message":"Previous definition is here"}],"severity":1,"source":"clang"},{"code":"-Wswitch-default","message":"'switch' missing 'default' label","range":{"end":{"character":10,"line":24},"start":{"character":4,"line":24}},"relatedInformation":[],"severity":2,"source":"clang"}],"uri":"file:///home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c","version":1}}

I[18:49:00.612] --> textDocument/inactiveRegions
V[18:49:00.612] >>> {"jsonrpc":"2.0","method":"textDocument/inactiveRegions","params":{"regions":[],"textDocument":{"uri":"file:///home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c"}}}

V[18:49:00.612] ASTWorker running DocumentSymbols on version 1 of /home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c
I[18:49:00.613] --> reply:textDocument/documentSymbol(1) 49 ms
V[18:49:00.613] >>> {"id":1,"jsonrpc":"2.0","result":[{"detail":"unsigned long long","kind":13,"name":"regularCount","range":{"end":{"character":38,"line":5},"start":{"character":0,"line":5}},"selectionRange":{"end":{"character":38,"line":5},"start":{"character":26,"line":5}}},{"detail":"unsigned long long","kind":13,"name":"directoryCount","range":{"end":{"character":18,"line":6},"start":{"character":0,"line":5}},"selectionRange":{"end":{"character":18,"line":6},"start":{"character":4,"line":6}}},{"detail":"unsigned long long","kind":13,"name":"characterDeviceCount","range":{"end":{"character":24,"line":7},"start":{"character":0,"line":5}},"selectionRange":{"end":{"character":24,"line":7},"start":{"character":4,"line":7}}},{"detail":"unsigned long long","kind":13,"name":"blockDeviceCount","range":{"end":{"character":20,"line":8},"start":{"character":0,"line":5}},"selectionRange":{"end":{"character":20,"line":8},"start":{"character":4,"line":8}}},{"detail":"unsigned long long","kind":13,"name":"fifoCount","range":{"end":{"character":13,"line":9},"start":{"character":0,"line":5}},"selectionRange":{"end":{"character":13,"line":9},"start":{"character":4,"line":9}}},{"detail":"unsigned long long","kind":13,"name":"symlinkCount","range":{"end":{"character":16,"line":10},"start":{"character":0,"line":5}},"selectionRange":{"end":{"character":16,"line":10},"start":{"character":4,"line":10}}},{"detail":"unsigned long long","kind":13,"name":"socketCount","range":{"end":{"character":15,"line":11},"start":{"character":0,"line":5}},"selectionRange":{"end":{"character":15,"line":11},"start":{"character":4,"line":11}}},{"children":[{"detail":"int","kind":8,"name":"base","range":{"end":{"character":12,"line":15},"start":{"character":4,"line":15}},"selectionRange":{"end":{"character":12,"line":15},"start":{"character":8,"line":15}}},{"detail":"int","kind":8,"name":"level","range":{"end":{"character":13,"line":16},"start":{"character":4,"line":16}},"selectionRange":{"end":{"character":13,"line":16},"start":{"character":8,"line":16}}}],"detail":"struct","kind":23,"name":"(anonymous struct)","range":{"end":{"character":1,"line":17},"start":{"character":8,"line":13}},"selectionRange":{"end":{"character":18,"line":13},"start":{"character":15,"line":13}}},{"detail":"type alias","kind":5,"name":"FTW","range":{"end":{"character":5,"line":17},"start":{"character":0,"line":13}},"selectionRange":{"end":{"character":5,"line":17},"start":{"character":2,"line":17}}},{"detail":"int (const char *, const struct stat *, int, FTW *)","kind":12,"name":"countFileTypes","range":{"end":{"character":1,"line":28},"start":{"character":0,"line":19}},"selectionRange":{"end":{"character":18,"line":19},"start":{"character":4,"line":19}}},{"detail":"int (void)","kind":12,"name":"main","range":{"end":{"character":1,"line":33},"start":{"character":0,"line":30}},"selectionRange":{"end":{"character":8,"line":30},"start":{"character":4,"line":30}}}]}

V[18:49:00.613] ASTWorker running codeAction on version 1 of /home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c
I[18:49:00.613] --> reply:textDocument/codeAction(2) 49 ms
V[18:49:00.613] >>> {"id":2,"jsonrpc":"2.0","result":[]}

V[18:49:00.613] ASTWorker running DocumentLinks on version 1 of /home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c
I[18:49:00.613] --> reply:textDocument/documentLink(3) 49 ms
V[18:49:00.613] >>> {"id":3,"jsonrpc":"2.0","result":[{"range":{"end":{"character":19,"line":1},"start":{"character":9,"line":1}},"target":"file:///usr/include/unistd.h"},{"range":{"end":{"character":21,"line":2},"start":{"character":9,"line":2}},"target":"file:///usr/include/x86_64-linux-gnu/sys/stat.h"},{"range":{"end":{"character":16,"line":3},"start":{"character":9,"line":3}},"target":"file:///usr/include/ftw.h"}]}

I[18:49:00.613] --> textDocument/clangd.fileStatus
V[18:49:00.613] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c"}}

I[18:49:00.656] Indexed c17 standard library: 1861 symbols, 32 filtered
V[18:49:00.665] Build dynamic index for header symbols with estimated memory usage of 2411060 bytes
V[18:49:00.793] <<< {"jsonrpc":"2.0","method":"$/cancelRequest","params":{"id":2}}

I[18:49:00.793] <-- $/cancelRequest
V[18:49:00.793] <<< {"id":4,"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"context":{"diagnostics":[],"triggerKind":2},"range":{"end":{"character":8,"line":26},"start":{"character":8,"line":26}},"textDocument":{"uri":"file:///home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c"}}}

I[18:49:00.793] <-- textDocument/codeAction(4)
V[18:49:00.793] ASTWorker running codeAction on version 1 of /home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c
I[18:49:00.793] --> reply:textDocument/codeAction(4) 0 ms
V[18:49:00.793] >>> {"id":4,"jsonrpc":"2.0","result":[]}

I[18:49:00.793] --> textDocument/clangd.fileStatus
V[18:49:00.793] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c"}}

V[18:49:00.796] <<< {"id":5,"jsonrpc":"2.0","method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"file:///home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c"}}}

I[18:49:00.796] <-- textDocument/documentSymbol(5)
V[18:49:00.796] ASTWorker running DocumentSymbols on version 1 of /home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c
I[18:49:00.796] --> reply:textDocument/documentSymbol(5) 0 ms
V[18:49:00.796] >>> {"id":5,"jsonrpc":"2.0","result":[{"detail":"unsigned long long","kind":13,"name":"regularCount","range":{"end":{"character":38,"line":5},"start":{"character":0,"line":5}},"selectionRange":{"end":{"character":38,"line":5},"start":{"character":26,"line":5}}},{"detail":"unsigned long long","kind":13,"name":"directoryCount","range":{"end":{"character":18,"line":6},"start":{"character":0,"line":5}},"selectionRange":{"end":{"character":18,"line":6},"start":{"character":4,"line":6}}},{"detail":"unsigned long long","kind":13,"name":"characterDeviceCount","range":{"end":{"character":24,"line":7},"start":{"character":0,"line":5}},"selectionRange":{"end":{"character":24,"line":7},"start":{"character":4,"line":7}}},{"detail":"unsigned long long","kind":13,"name":"blockDeviceCount","range":{"end":{"character":20,"line":8},"start":{"character":0,"line":5}},"selectionRange":{"end":{"character":20,"line":8},"start":{"character":4,"line":8}}},{"detail":"unsigned long long","kind":13,"name":"fifoCount","range":{"end":{"character":13,"line":9},"start":{"character":0,"line":5}},"selectionRange":{"end":{"character":13,"line":9},"start":{"character":4,"line":9}}},{"detail":"unsigned long long","kind":13,"name":"symlinkCount","range":{"end":{"character":16,"line":10},"start":{"character":0,"line":5}},"selectionRange":{"end":{"character":16,"line":10},"start":{"character":4,"line":10}}},{"detail":"unsigned long long","kind":13,"name":"socketCount","range":{"end":{"character":15,"line":11},"start":{"character":0,"line":5}},"selectionRange":{"end":{"character":15,"line":11},"start":{"character":4,"line":11}}},{"children":[{"detail":"int","kind":8,"name":"base","range":{"end":{"character":12,"line":15},"start":{"character":4,"line":15}},"selectionRange":{"end":{"character":12,"line":15},"start":{"character":8,"line":15}}},{"detail":"int","kind":8,"name":"level","range":{"end":{"character":13,"line":16},"start":{"character":4,"line":16}},"selectionRange":{"end":{"character":13,"line":16},"start":{"character":8,"line":16}}}],"detail":"struct","kind":23,"name":"(anonymous struct)","range":{"end":{"character":1,"line":17},"start":{"character":8,"line":13}},"selectionRange":{"end":{"character":18,"line":13},"start":{"character":15,"line":13}}},{"detail":"type alias","kind":5,"name":"FTW","range":{"end":{"character":5,"line":17},"start":{"character":0,"line":13}},"selectionRange":{"end":{"character":5,"line":17},"start":{"character":2,"line":17}}},{"detail":"int (const char *, const struct stat *, int, FTW *)","kind":12,"name":"countFileTypes","range":{"end":{"character":1,"line":28},"start":{"character":0,"line":19}},"selectionRange":{"end":{"character":18,"line":19},"start":{"character":4,"line":19}}},{"detail":"int (void)","kind":12,"name":"main","range":{"end":{"character":1,"line":33},"start":{"character":0,"line":30}},"selectionRange":{"end":{"character":8,"line":30},"start":{"character":4,"line":30}}}]}

I[18:49:00.796] --> textDocument/clangd.fileStatus
V[18:49:00.796] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c"}}

V[18:49:00.801] <<< {"id":0,"jsonrpc":"2.0","result":null}

I[18:49:00.801] <-- reply(0)
V[18:49:00.812] <<< {"id":6,"jsonrpc":"2.0","method":"textDocument/semanticTokens/full","params":{"textDocument":{"uri":"file:///home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c"}}}

I[18:49:00.812] <-- textDocument/semanticTokens/full(6)
V[18:49:00.812] ASTWorker running SemanticHighlights on version 1 of /home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c
I[18:49:00.812] --> reply:textDocument/semanticTokens/full(6) 0 ms
V[18:49:00.812] >>> {"id":6,"jsonrpc":"2.0","result":{"data":[0,8,13,19,131073,5,26,12,0,65539,1,4,14,0,65539,1,4,20,0,65539,1,4,16,0,65539,1,4,9,0,65539,1,4,12,0,65539,1,4,11,0,65539,4,8,4,6,32769,1,8,5,6,32769,1,2,3,8,65537,2,4,14,3,131075,0,27,4,2,16403,0,19,4,8,131584,0,6,4,2,16403,0,10,4,2,16387,0,6,3,8,65536,0,5,3,2,16387,2,10,4,2,16400,1,10,4,2,16384,1,10,3,2,16384,1,12,4,2,16400,0,6,7,6,33280,0,8,1,21,0,0,2,6,19,131072,6,4,4,3,131075],"resultId":"1"}}

I[18:49:00.812] --> textDocument/clangd.fileStatus
V[18:49:00.812] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c"}}

V[18:49:00.919] <<< {"id":7,"jsonrpc":"2.0","method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"file:///home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c"}}}

I[18:49:00.919] <-- textDocument/documentSymbol(7)
V[18:49:00.919] <<< {"id":8,"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"context":{"diagnostics":[],"triggerKind":2},"range":{"end":{"character":8,"line":26},"start":{"character":8,"line":26}},"textDocument":{"uri":"file:///home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c"}}}

I[18:49:00.919] <-- textDocument/codeAction(8)
V[18:49:00.919] ASTWorker running DocumentSymbols on version 1 of /home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c
I[18:49:00.919] --> reply:textDocument/documentSymbol(7) 0 ms
V[18:49:00.919] >>> {"id":7,"jsonrpc":"2.0","result":[{"detail":"unsigned long long","kind":13,"name":"regularCount","range":{"end":{"character":38,"line":5},"start":{"character":0,"line":5}},"selectionRange":{"end":{"character":38,"line":5},"start":{"character":26,"line":5}}},{"detail":"unsigned long long","kind":13,"name":"directoryCount","range":{"end":{"character":18,"line":6},"start":{"character":0,"line":5}},"selectionRange":{"end":{"character":18,"line":6},"start":{"character":4,"line":6}}},{"detail":"unsigned long long","kind":13,"name":"characterDeviceCount","range":{"end":{"character":24,"line":7},"start":{"character":0,"line":5}},"selectionRange":{"end":{"character":24,"line":7},"start":{"character":4,"line":7}}},{"detail":"unsigned long long","kind":13,"name":"blockDeviceCount","range":{"end":{"character":20,"line":8},"start":{"character":0,"line":5}},"selectionRange":{"end":{"character":20,"line":8},"start":{"character":4,"line":8}}},{"detail":"unsigned long long","kind":13,"name":"fifoCount","range":{"end":{"character":13,"line":9},"start":{"character":0,"line":5}},"selectionRange":{"end":{"character":13,"line":9},"start":{"character":4,"line":9}}},{"detail":"unsigned long long","kind":13,"name":"symlinkCount","range":{"end":{"character":16,"line":10},"start":{"character":0,"line":5}},"selectionRange":{"end":{"character":16,"line":10},"start":{"character":4,"line":10}}},{"detail":"unsigned long long","kind":13,"name":"socketCount","range":{"end":{"character":15,"line":11},"start":{"character":0,"line":5}},"selectionRange":{"end":{"character":15,"line":11},"start":{"character":4,"line":11}}},{"children":[{"detail":"int","kind":8,"name":"base","range":{"end":{"character":12,"line":15},"start":{"character":4,"line":15}},"selectionRange":{"end":{"character":12,"line":15},"start":{"character":8,"line":15}}},{"detail":"int","kind":8,"name":"level","range":{"end":{"character":13,"line":16},"start":{"character":4,"line":16}},"selectionRange":{"end":{"character":13,"line":16},"start":{"character":8,"line":16}}}],"detail":"struct","kind":23,"name":"(anonymous struct)","range":{"end":{"character":1,"line":17},"start":{"character":8,"line":13}},"selectionRange":{"end":{"character":18,"line":13},"start":{"character":15,"line":13}}},{"detail":"type alias","kind":5,"name":"FTW","range":{"end":{"character":5,"line":17},"start":{"character":0,"line":13}},"selectionRange":{"end":{"character":5,"line":17},"start":{"character":2,"line":17}}},{"detail":"int (const char *, const struct stat *, int, FTW *)","kind":12,"name":"countFileTypes","range":{"end":{"character":1,"line":28},"start":{"character":0,"line":19}},"selectionRange":{"end":{"character":18,"line":19},"start":{"character":4,"line":19}}},{"detail":"int (void)","kind":12,"name":"main","range":{"end":{"character":1,"line":33},"start":{"character":0,"line":30}},"selectionRange":{"end":{"character":8,"line":30},"start":{"character":4,"line":30}}}]}

V[18:49:00.919] ASTWorker running codeAction on version 1 of /home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c
I[18:49:00.919] --> reply:textDocument/codeAction(8) 0 ms
V[18:49:00.919] >>> {"id":8,"jsonrpc":"2.0","result":[]}

I[18:49:00.919] --> textDocument/clangd.fileStatus
V[18:49:00.919] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c"}}

V[18:49:01.250] <<< {"id":9,"jsonrpc":"2.0","method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"file:///home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c"}}}

I[18:49:01.250] <-- textDocument/documentSymbol(9)
V[18:49:01.250] <<< {"id":10,"jsonrpc":"2.0","method":"textDocument/foldingRange","params":{"textDocument":{"uri":"file:///home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c"}}}

I[18:49:01.250] <-- textDocument/foldingRange(10)
V[18:49:01.250] ASTWorker running DocumentSymbols on version 1 of /home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c
I[18:49:01.251] --> reply:textDocument/foldingRange(10) 0 ms
V[18:49:01.251] >>> {"id":10,"jsonrpc":"2.0","result":[{"endLine":16,"kind":"region","startCharacter":1,"startLine":14},{"endLine":27,"kind":"region","startCharacter":1,"startLine":20},{"endCharacter":4,"endLine":26,"kind":"region","startCharacter":5,"startLine":25},{"endLine":32,"kind":"region","startCharacter":1,"startLine":31}]}

I[18:49:01.251] --> reply:textDocument/documentSymbol(9) 0 ms
V[18:49:01.251] >>> {"id":9,"jsonrpc":"2.0","result":[{"detail":"unsigned long long","kind":13,"name":"regularCount","range":{"end":{"character":38,"line":5},"start":{"character":0,"line":5}},"selectionRange":{"end":{"character":38,"line":5},"start":{"character":26,"line":5}}},{"detail":"unsigned long long","kind":13,"name":"directoryCount","range":{"end":{"character":18,"line":6},"start":{"character":0,"line":5}},"selectionRange":{"end":{"character":18,"line":6},"start":{"character":4,"line":6}}},{"detail":"unsigned long long","kind":13,"name":"characterDeviceCount","range":{"end":{"character":24,"line":7},"start":{"character":0,"line":5}},"selectionRange":{"end":{"character":24,"line":7},"start":{"character":4,"line":7}}},{"detail":"unsigned long long","kind":13,"name":"blockDeviceCount","range":{"end":{"character":20,"line":8},"start":{"character":0,"line":5}},"selectionRange":{"end":{"character":20,"line":8},"start":{"character":4,"line":8}}},{"detail":"unsigned long long","kind":13,"name":"fifoCount","range":{"end":{"character":13,"line":9},"start":{"character":0,"line":5}},"selectionRange":{"end":{"character":13,"line":9},"start":{"character":4,"line":9}}},{"detail":"unsigned long long","kind":13,"name":"symlinkCount","range":{"end":{"character":16,"line":10},"start":{"character":0,"line":5}},"selectionRange":{"end":{"character":16,"line":10},"start":{"character":4,"line":10}}},{"detail":"unsigned long long","kind":13,"name":"socketCount","range":{"end":{"character":15,"line":11},"start":{"character":0,"line":5}},"selectionRange":{"end":{"character":15,"line":11},"start":{"character":4,"line":11}}},{"children":[{"detail":"int","kind":8,"name":"base","range":{"end":{"character":12,"line":15},"start":{"character":4,"line":15}},"selectionRange":{"end":{"character":12,"line":15},"start":{"character":8,"line":15}}},{"detail":"int","kind":8,"name":"level","range":{"end":{"character":13,"line":16},"start":{"character":4,"line":16}},"selectionRange":{"end":{"character":13,"line":16},"start":{"character":8,"line":16}}}],"detail":"struct","kind":23,"name":"(anonymous struct)","range":{"end":{"character":1,"line":17},"start":{"character":8,"line":13}},"selectionRange":{"end":{"character":18,"line":13},"start":{"character":15,"line":13}}},{"detail":"type alias","kind":5,"name":"FTW","range":{"end":{"character":5,"line":17},"start":{"character":0,"line":13}},"selectionRange":{"end":{"character":5,"line":17},"start":{"character":2,"line":17}}},{"detail":"int (const char *, const struct stat *, int, FTW *)","kind":12,"name":"countFileTypes","range":{"end":{"character":1,"line":28},"start":{"character":0,"line":19}},"selectionRange":{"end":{"character":18,"line":19},"start":{"character":4,"line":19}}},{"detail":"int (void)","kind":12,"name":"main","range":{"end":{"character":1,"line":33},"start":{"character":0,"line":30}},"selectionRange":{"end":{"character":8,"line":30},"start":{"character":4,"line":30}}}]}

I[18:49:01.251] --> textDocument/clangd.fileStatus
V[18:49:01.251] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c"}}

V[18:49:01.372] <<< {"id":11,"jsonrpc":"2.0","method":"textDocument/semanticTokens/full/delta","params":{"previousResultId":"1","textDocument":{"uri":"file:///home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c"}}}

I[18:49:01.372] <-- textDocument/semanticTokens/full/delta(11)
V[18:49:01.372] ASTWorker running SemanticHighlights on version 1 of /home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c
I[18:49:01.373] --> reply:textDocument/semanticTokens/full/delta(11) 0 ms
V[18:49:01.373] >>> {"id":11,"jsonrpc":"2.0","result":{"edits":[],"resultId":"2"}}

I[18:49:01.373] --> textDocument/clangd.fileStatus
V[18:49:01.373] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///home/palapapa/c/college/system-programming/ch4-bonus/file-type-counter.c"}}

System information Clangd version (from the log, or clangd --version): 18.1.3 clangd extension version: 0.1.28 Operating system: WSL2 on Windows 10

HighCommander4 commented 2 months ago

This is probably a schema issue only

Right, this is just a schema issue, and the schema in question is maintained in a third-party repository.

But this is a helpful reminder for me to file an issue there: https://github.com/SchemaStore/schemastore/issues/3725