vscode-clangd icon indicating copy to clipboard operation
vscode-clangd copied to clipboard

clangd stopped recognizing standard library includes after update

Open Trucoto opened this issue 1 year ago • 4 comments

After a general update today in my Ubuntu 22.04.1, during which both gcc and vscode were updated to 11.3.0 and 1.74.0-insider respectively, vscode stopped finding the standard library include files (<algorithm>, <string>, etc.). The error is as succinct as "'string' file not found clang(pp_file_not_found)" clangd is 15.0.3. I don't know if this has any relevance, but from the output I see:

/usr/bin/g++ --driver-mode=g++ -c -DP_LINUX -DP_64 -ggdb -O0 -I../../../ -I../../..//../../hsl2/working -Wall -x c++-header -std=c++17 "-resource-dir=/home/leandro/.config/Code - Insiders/User/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/15.0.3/clangd_15.0.3/lib/clang/15.0.3" -- /home/leandro/Desarrollo/hrl/working/hrl/promotions.h

If I try to execute that, I get:

g++: error: unrecognized command-line option ‘--driver-mode=g++’
g++: error: unrecognized command-line option ‘-resource-dir=/home/leandro/.config/Code - Insiders/User/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/15.0.3/clangd_15.0.3/lib/clang/15.0.3’
g++: error: unrecognized command-line option ‘--’

Trucoto avatar Nov 26 '22 18:11 Trucoto

Could you share clangd logs taken with --log=verbose in "clangd.arguments"?

If I try to execute that, I get:

g++: error: unrecognized command-line option ‘--driver-mode=g++’
g++: error: unrecognized command-line option ‘-resource-dir=/home/leandro/.config/Code - Insiders/User/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/15.0.3/clangd_15.0.3/lib/clang/15.0.3’
g++: error: unrecognized command-line option ‘--’

(This part is expected, the command is not meant to be executed verbatim.)

HighCommander4 avatar Nov 27 '22 05:11 HighCommander4

I don't know if I understood quite well, but is this what you requested me?

I[09:50:47.479] clangd version 15.0.3 (https://github.com/llvm/llvm-project 4a2c05b05ed07f1f620e94f6524a8b4b2760a0b1)
I[09:50:47.479] Features: linux+grpc
I[09:50:47.479] PID: 437994
I[09:50:47.479] Working directory: /home/leandro/Desarrollo/hrl/working
I[09:50:47.479] argv[0]: /home/leandro/.config/Code - Insiders/User/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/15.0.3/clangd_15.0.3/bin/clangd
I[09:50:47.479] argv[1]: --log=verbose
V[09:50:47.479] User config file is /home/leandro/.config/clangd/config.yaml
I[09:50:47.479] Starting LSP over stdin/stdout
V[09:50:47.479] <<< {"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},"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 - Insiders","version":"1.74.0-insider"},"initializationOptions":{"clangdFileStatus":true,"fallbackFlags":[]},"locale":"en-us","processId":437910,"rootPath":"/home/leandro/Desarrollo/hrl/working","rootUri":"file:///home/leandro/Desarrollo/hrl/working","trace":"off","workspaceFolders":[{"name":"working","uri":"file:///home/leandro/Desarrollo/hrl/working"}]}}

I[09:50:47.479] <-- initialize(0)
I[09:50:47.480] --> reply:initialize(0) 0 ms
V[09:50:47.480] >>> {"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"]},"hoverProvider":true,"implementationProvider":true,"inlayHintProvider":true,"memoryUsageProvider":true,"referencesProvider":true,"renameProvider":{"prepareProvider":true},"selectionRangeProvider":true,"semanticTokensProvider":{"full":{"delta":true},"legend":{"tokenModifiers":["declaration","deprecated","deduced","readonly","static","abstract","virtual","dependentName","defaultLibrary","usedAsMutableReference","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","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 15.0.3 (https://github.com/llvm/llvm-project 4a2c05b05ed07f1f620e94f6524a8b4b2760a0b1) linux+grpc x86_64-unknown-linux-gnu"}}}

V[09:50:47.499] <<< {"jsonrpc":"2.0","method":"initialized","params":{}}

I[09:50:47.499] <-- initialized
V[09:50:47.505] <<< {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"languageId":"cpp","text":"#pragma once\n\n#include <algorithm>\n#include <string>\n#include <map>\n#include <vector>\n#include <hrl/types.h>\n#include <hsl/date_time.h>\n\nnamespace hrl\n{\n\tusing receipt_index = unsigned; // index of item or payment in receipt\n\tusing payment_id = unsigned; // unique identifier of a payment type\n\tusing pattern_id = unsigned; // unique identifier of a promotion pattern\n\tusing pattern_instance = unsigned; // unique identifier of an instance of a pattern already applied\n\n\tnamespace promotions\n\t{\n\t\tclass item_condition\n\t\t{\n\t\tpublic:\n\t\t\tenum class types\n\t\t\t{\n\t\t\t\t// any item will match. \"codes\" is empty.\n\t\t\t\tall_items,\n\n\t\t\t\t// \"codes\" has only one item to match\n\t\t\t\tsingle_item,\n\n\t\t\t\t// \"codes\" has a list of items and any can be matched\n\t\t\t\t// looking to fulfill \"quantity\"\n\t\t\t\tinterchangeable_items,\n\n\t\t\t\t// \"codes\" has a list of items and once one is matched\n\t\t\t\t// the others (up to \"quantity\") has to be the same as\n\t\t\t\t// the first.\n\t\t\t\tequal_items\n\t\t\t};\n\n\t\t\ttypes type;\n\t\t\tquantity_t quantity;\n\t\t\tpercentage_t percentage_discount;\n\t\t\tamount_t amount_discount;\n\t\t\tstd::vector<std::string> codes;\n\t\t};\n\n\t\tstruct payment_condition\n\t\t{\n\t\t\tpayment_id id;\n\t\t\tunsigned installments;\n\t\t};\n\n\t\tstruct final_process\n\t\t{\n\t\t\tenum class types\n\t\t\t{\n\t\t\t\t// solved in each item rule. No further action needed.\n\t\t\t\tsolved_by_items,\n\n\t\t\t\t// discount on all items once all conditions are met.\n\t\t\t\t// Field \"percentage_discount\" used on all items; any previous\n\t\t\t\t// discounts made on items are discarded.\n\t\t\t\tglobal_discount,\n\n\t\t\t\t// All items sum a fixed amount, regardless of individual prices.\n\t\t\t\t// The new price is divided proportionally among all items. Any\n\t\t\t\t// discount previously present is discarded. The field \"amount\"\n\t\t\t\t// is used.\n\t\t\t\tfixed_price,\n\n\t\t\t\t// A fixed discount on a group of the cheapest items. Any discount\n\t\t\t\t// previously present is discarded. How many cheapest items are used\n\t\t\t\t// is specified in the field \"quantity\". How much to discount is specified\n\t\t\t\t// in the field \"percentage_discount\".\n\t\t\t\tdiscount_on_cheapest_items\n\t\t\t};\n\n\t\t\ttypes type;\n\t\t\tint_quantity_t quantity;\n\t\t\tamount_t amount;\n\t\t\tpercentage_t percentage_discount;\n\t\t};\n\n\t\t// To be fulfilled, a pattern must match all items conditions,\n\t\t// all payment conditions and, once everything matched,\n\t\t// if all restrictions are passed,\n\t\t// is processed with a final process.\n\t\tstruct promotion_pattern\n\t\t{\n\t\t\tpattern_id id;\n\t\t\tstd::vector<item_condition> item_conditions; // all conditions must be met. It cannot be empty.\n\t\t\tstd::vector<payment_condition> payment_conditions; // any one condition should be met. It can be empty.\n\t\t\tfinal_process process;\n\n\t\t\t// restrictions:\n\t\t\tamount_t minimum; // checked against the sum of items matched, before applying any promotion\n\t\t\thsl::types::date date_from, date_to; // if a date is invalid, is not checked\n\t\t\tstd::vector<bool> allowed_days; // if a day is not in the array, is not checked\n\t\t\tbool mixable; // mixable promotions are applied one upon the other.\n\t\t};\n\n\t\tstruct item\n\t\t{\n\t\t\treceipt_index index;\n\t\t\tstd::string code;\n\t\t\tint_quantity_t quantity; // only integral quantities are allowed\n\t\t\tprice_t price;\n\t\t\tamount_t amount;\n\t\t};\n\n\t\tstruct payment\n\t\t{\n\t\t\treceipt_index index;\n\t\t\tpayment_id id;\n\t\t\tunsigned installments;\n\t\t\tamount_t amount;\n\t\t};\n\n\t\t// this is a representation of the receipt to evaluate.\n\t\t// Conditions are:\n\t\t// * No item should have discounts previous to evaluation.\n\t\t// * No other global discounts or surcharges should modify the total.\n\t\t// * There must be at least one item.\n\t\t// If payments promotions/surcharges are intended:\n\t\t// * There must be at least one payment, or intended payment.\n\t\t// * There must be at least one intended, not fulfilled payment.\n\t\t// * The sum of all payments should equal the sum of all items.\n\t\t// This means that the last (or only) payment should not be fixed\n\t\t// beforehand (for instance, already authorized if a credit card)\n\t\t// because its amount could be modified: shrinked because of\n\t\t// promotions/discounts, or expanded because of surcharges.\n\t\t// This intended payment should have its data (id, index, installments)\n\t\t// but its amount should be tentively set at the subtotal, or\n\t\t// what is left to complete the subtotal if there are other\n\t\t// previous, fixed payments.\n\t\tstruct receipt\n\t\t{\n\t\t\tstd::vector<item> items;\n\t\t\tstd::vector<payment> payments;\n\t\t};\n\n\t\tstruct applied_pattern\n\t\t{\n\t\t\tstruct item_information\n\t\t\t{\n\t\t\t\treceipt_index index;\n\t\t\t\tpattern_id pattern;\n\t\t\t\tpattern_instance instance_id;\n\t\t\t\tint_quantity_t quantity_matched;\n\t\t\t\tint_quantity_t quantity_applied;\n\t\t\t\tamount_t total_discount;\n\t\t\t};\n\n\t\t\titem_information item;\n\n\t\t\tstruct payment_information\n\t\t\t{\n\t\t\t\tbool applied;\n\t\t\t\treceipt_index index;\n\t\t\t\tpayment_id id;\n\t\t\t\tunsigned installments;\n\t\t\t};\n\n\t\t\tpayment_information payment;\n\t\t};\n\t\tstruct result\n\t\t{\n\t\t\t// item index to promotion applied\n\t\t\tstd::map<receipt_index, std::vector<applied_pattern>> applied_patterns;\n\t\t\tamount_t new_total;\n\t\t\tamount_t last_payment_amount;\n\t\t};\n\n\t\tusing patterns_collection = std::map<unsigned, promotion_pattern>;\n\t\tresult get_applied_patterns(const receipt &r, const patterns_collection &patterns);\n\t}\n}","uri":"file:///home/leandro/Desarrollo/hrl/working/hrl/promotions.h","version":1}}}

I[09:50:47.505] <-- textDocument/didOpen
I[09:50:47.505] Loaded compilation database from /home/leandro/Desarrollo/hrl/working/compile_commands.json
V[09:50:47.505] Broadcasting compilation database from /home/leandro/Desarrollo/hrl/working
I[09:50:47.505] --> window/workDoneProgress/create(0)
V[09:50:47.505] >>> {"id":0,"jsonrpc":"2.0","method":"window/workDoneProgress/create","params":{"token":"backgroundIndexProgress"}}

I[09:50:47.505] ASTWorker building file /home/leandro/Desarrollo/hrl/working/hrl/promotions.h version 1 with command inferred from /home/leandro/Desarrollo/hrl/working/promotions.cpp
[/home/leandro/Desarrollo/hrl/working/linux/x86_64/devel]
/usr/bin/g++ --driver-mode=g++ -c -DP_LINUX -DP_64 -ggdb -O0 -I../../../ -I../../..//../../hsl2/working -Wall -x c++-header -std=c++17 "-resource-dir=/home/leandro/.config/Code - Insiders/User/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/15.0.3/clangd_15.0.3/lib/clang/15.0.3" -- /home/leandro/Desarrollo/hrl/working/hrl/promotions.h
I[09:50:47.505] Enqueueing 4 commands for indexing
V[09:50:47.506] <<< {"id":0,"jsonrpc":"2.0","result":null}

I[09:50:47.506] <-- reply(0)
I[09:50:47.506] --> $/progress
V[09:50:47.506] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"begin","percentage":0,"title":"indexing"}}}

I[09:50:47.506] --> $/progress
V[09:50:47.506] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"0/1","percentage":0}}}

V[09:50:47.506] 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 promotions.h -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 -debug-info-kind=constructor -dwarf-version=5 -debugger-tuning=gdb -fcoverage-compilation-dir=/home/leandro/Desarrollo/hrl/working/linux/x86_64/devel -resource-dir "/home/leandro/.config/Code - Insiders/User/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/15.0.3/clangd_15.0.3/lib/clang/15.0.3" -D P_LINUX -D P_64 -I ../../../ -I ../../..//../../hsl2/working -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++ -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/x86_64-linux-gnu -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/backward -internal-isystem "/home/leandro/.config/Code - Insiders/User/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/15.0.3/clangd_15.0.3/lib/clang/15.0.3/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 -O0 -Wall -std=c++17 -fdeprecated-macro -fdebug-compilation-dir=/home/leandro/Desarrollo/hrl/working/linux/x86_64/devel -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -no-round-trip-args -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -x c++-header /home/leandro/Desarrollo/hrl/working/hrl/promotions.h
I[09:50:47.506] Loaded compilation database from /home/leandro/Desarrollo/hsl2/working/compile_commands.json
I[09:50:47.506] --> textDocument/clangd.fileStatus
V[09:50:47.506] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"parsing includes, running Update","uri":"file:///home/leandro/Desarrollo/hrl/working/hrl/promotions.h"}}

V[09:50:47.506] Building first preamble for /home/leandro/Desarrollo/hrl/working/hrl/promotions.h version 1
V[09:50:47.559] BackgroundIndex: building version 1 after loading index from disk
V[09:50:47.566] indexed preamble AST for /home/leandro/Desarrollo/hrl/working/hrl/promotions.h version 1:
  symbol slab: 1201 symbols, 319712 bytes
  ref slab: 0 symbols, 0 refs, 128 bytes
  relations slab: 1 relations, 41 bytes
V[09:50:47.578] Build dynamic index for header symbols with estimated memory usage of 1736524 bytes
V[09:50:47.579] Built preamble of size 468320 for file /home/leandro/Desarrollo/hrl/working/hrl/promotions.h version 1 in 0.07 seconds
I[09:50:47.579] --> workspace/semanticTokens/refresh(1)
I[09:50:47.579] --> textDocument/clangd.fileStatus
V[09:50:47.579] >>> {"id":1,"jsonrpc":"2.0","method":"workspace/semanticTokens/refresh","params":null}

V[09:50:47.579] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"parsing includes, running Build AST","uri":"file:///home/leandro/Desarrollo/hrl/working/hrl/promotions.h"}}

V[09:50:47.580] <<< {"id":1,"jsonrpc":"2.0","result":null}

I[09:50:47.580] <-- reply(1)
V[09:50:47.585] Trying to fix unresolved name "vector" in scopes: [std::, hrl::std::, hrl::promotions::std::]
V[09:50:47.586] Dex query tree: false
V[09:50:47.586] Trying to fix unresolved name "string" in scopes: [std::, hrl::std::, hrl::promotions::std::]
V[09:50:47.586] Dex query tree: false
V[09:50:47.586] Trying to fix unresolved name "vector" in scopes: [std::, hrl::std::, hrl::promotions::std::]
V[09:50:47.586] Trying to fix unresolved name "vector" in scopes: [std::, hrl::std::, hrl::promotions::std::]
V[09:50:47.587] Trying to fix unresolved name "vector" in scopes: [std::, hrl::std::, hrl::promotions::std::]
V[09:50:47.587] Trying to fix unresolved name "string" in scopes: [std::, hrl::std::, hrl::promotions::std::]
V[09:50:47.587] Trying to fix unresolved name "vector" in scopes: [std::, hrl::std::, hrl::promotions::std::]
V[09:50:47.588] Trying to fix unresolved name "vector" in scopes: [std::, hrl::std::, hrl::promotions::std::]
V[09:50:47.588] Trying to fix unresolved name "map" in scopes: [std::, hrl::std::, hrl::promotions::std::]
V[09:50:47.588] Dex query tree: false
V[09:50:47.588] Trying to fix unresolved name "vector" in scopes: [std::, hrl::std::, hrl::promotions::std::]
V[09:50:47.588] Trying to fix unresolved name "map" in scopes: [std::, hrl::std::, hrl::promotions::std::]
V[09:50:47.590] Trying to fix unresolved name "patterns_collection" in scopes: [, hrl::, hrl::promotions::]
V[09:50:47.590] Dex query tree: (LIMIT 10000 (& T=sco T=cti T=ern T=rns T=pat T=tte T=nsc T=oll T=col T=lle T=lec T=ect T=att T=ion T=ter T=tio (| S= S=hrl::) ?=Restricted For Code Completion))
V[09:50:47.591] indexed file AST for /home/leandro/Desarrollo/hrl/working/hrl/promotions.h version 1:
  symbol slab: 73 symbols, 21152 bytes
  ref slab: 77 symbols, 105 refs, 7296 bytes
  relations slab: 0 relations, 24 bytes
V[09:50:47.591] Build dynamic index for main-file symbols with estimated memory usage of 53864 bytes
I[09:50:47.591] --> textDocument/publishDiagnostics
V[09:50:47.591] >>> {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[{"code":"pp_file_not_found","message":"'algorithm' file not found","range":{"end":{"character":20,"line":2},"start":{"character":9,"line":2}},"relatedInformation":[],"severity":1,"source":"clang"},{"code":"undeclared_var_use","message":"Use of undeclared identifier 'std'","range":{"end":{"character":6,"line":43},"start":{"character":3,"line":43}},"relatedInformation":[],"severity":1,"source":"clang"},{"code":"undeclared_var_use","message":"Use of undeclared identifier 'std'","range":{"end":{"character":18,"line":43},"start":{"character":15,"line":43}},"relatedInformation":[],"severity":1,"source":"clang"},{"code":"undeclared_var_use","message":"Use of undeclared identifier 'std'","range":{"end":{"character":6,"line":90},"start":{"character":3,"line":90}},"relatedInformation":[],"severity":1,"source":"clang"},{"code":"undeclared_var_use","message":"Use of undeclared identifier 'std'","range":{"end":{"character":6,"line":91},"start":{"character":3,"line":91}},"relatedInformation":[],"severity":1,"source":"clang"},{"code":"undeclared_var_use","message":"Use of undeclared identifier 'std'","range":{"end":{"character":6,"line":97},"start":{"character":3,"line":97}},"relatedInformation":[],"severity":1,"source":"clang"},{"code":"undeclared_var_use","message":"Use of undeclared identifier 'std'","range":{"end":{"character":6,"line":104},"start":{"character":3,"line":104}},"relatedInformation":[],"severity":1,"source":"clang"},{"code":"undeclared_var_use","message":"Use of undeclared identifier 'std'","range":{"end":{"character":6,"line":137},"start":{"character":3,"line":137}},"relatedInformation":[],"severity":1,"source":"clang"},{"code":"undeclared_var_use","message":"Use of undeclared identifier 'std'","range":{"end":{"character":6,"line":138},"start":{"character":3,"line":138}},"relatedInformation":[],"severity":1,"source":"clang"},{"code":"undeclared_var_use","message":"Use of undeclared identifier 'std'","range":{"end":{"character":6,"line":168},"start":{"character":3,"line":168}},"relatedInformation":[],"severity":1,"source":"clang"},{"code":"undeclared_var_use","message":"Use of undeclared identifier 'std'","range":{"end":{"character":30,"line":168},"start":{"character":27,"line":168}},"relatedInformation":[],"severity":1,"source":"clang"},{"code":"expected_member_name_or_semi","message":"Expected member name or ';' after declaration specifiers","range":{"end":{"character":56,"line":168},"start":{"character":55,"line":168}},"relatedInformation":[],"severity":1,"source":"clang"},{"code":"undeclared_var_use","message":"Use of undeclared identifier 'std'","range":{"end":{"character":33,"line":173},"start":{"character":30,"line":173}},"relatedInformation":[],"severity":1,"source":"clang"},{"code":"unknown_typename","message":"Unknown type name 'patterns_collection'","range":{"end":{"character":73,"line":174},"start":{"character":54,"line":174}},"relatedInformation":[],"severity":1,"source":"clang"}],"uri":"file:///home/leandro/Desarrollo/hrl/working/hrl/promotions.h","version":1}}

I[09:50:47.591] --> textDocument/clangd.fileStatus
V[09:50:47.591] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///home/leandro/Desarrollo/hrl/working/hrl/promotions.h"}}

V[09:50:47.604] BackgroundIndex: serving version 1 (12197533 bytes)
I[09:50:47.607] --> $/progress
V[09:50:47.607] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"0/1","percentage":0}}}

I[09:50:47.607] --> $/progress
V[09:50:47.607] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"end"}}}

V[09:50:47.682] <<< {"jsonrpc":"2.0","method":"$/setTrace","params":{"value":"off"}}

I[09:50:47.682] <-- $/setTrace
I[09:50:47.682] unhandled notification $/setTrace
V[09:50:47.790] <<< {"id":1,"jsonrpc":"2.0","method":"textDocument/documentLink","params":{"textDocument":{"uri":"file:///home/leandro/Desarrollo/hrl/working/hrl/promotions.h"}}}

I[09:50:47.790] <-- textDocument/documentLink(1)
V[09:50:47.791] <<< {"id":2,"jsonrpc":"2.0","method":"textDocument/inlayHint","params":{"range":{"end":{"character":0,"line":93},"start":{"character":0,"line":0}},"textDocument":{"uri":"file:///home/leandro/Desarrollo/hrl/working/hrl/promotions.h"}}}

I[09:50:47.791] <-- textDocument/inlayHint(2)
V[09:50:47.791] ASTWorker running DocumentLinks on version 1 of /home/leandro/Desarrollo/hrl/working/hrl/promotions.h
I[09:50:47.791] --> reply:textDocument/documentLink(1) 0 ms
V[09:50:47.791] >>> {"id":1,"jsonrpc":"2.0","result":[{"range":{"end":{"character":22,"line":6},"start":{"character":9,"line":6}},"target":"file:///home/leandro/Desarrollo/hrl/working/hrl/types.h"},{"range":{"end":{"character":26,"line":7},"start":{"character":9,"line":7}},"target":"file:///home/leandro/Desarrollo/hsl2/working/hsl/date_time.h"}]}

V[09:50:47.791] ASTWorker running InlayHints on version 1 of /home/leandro/Desarrollo/hrl/working/hrl/promotions.h
I[09:50:47.791] --> reply:textDocument/inlayHint(2) 0 ms
V[09:50:47.791] >>> {"id":2,"jsonrpc":"2.0","result":[]}

I[09:50:47.791] --> textDocument/clangd.fileStatus
V[09:50:47.791] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///home/leandro/Desarrollo/hrl/working/hrl/promotions.h"}}

V[09:50:47.802] <<< {"id":3,"jsonrpc":"2.0","method":"textDocument/semanticTokens/full","params":{"textDocument":{"uri":"file:///home/leandro/Desarrollo/hrl/working/hrl/promotions.h"}}}

I[09:50:47.802] <-- textDocument/semanticTokens/full(3)
V[09:50:47.803] ASTWorker running SemanticHighlights on version 1 of /home/leandro/Desarrollo/hrl/working/hrl/promotions.h
V[09:50:47.803] <<< {"jsonrpc":"2.0","method":"$/cancelRequest","params":{"id":1}}

I[09:50:47.803] <-- $/cancelRequest
I[09:50:47.803] --> reply:textDocument/semanticTokens/full(3) 0 ms
V[09:50:47.803] >>> {"id":3,"jsonrpc":"2.0","result":{"data":[9,10,3,15,8193,2,7,13,18,4097,1,7,10,18,4097,1,7,10,18,4097,1,7,16,18,4097,2,11,10,15,8193,2,8,14,8,8193,3,14,5,10,2049,3,4,9,11,2057,3,4,11,11,2057,4,4,21,11,2057,5,4,11,11,2057,3,3,5,10,2048,0,6,4,6,2049,1,3,10,8,4096,0,11,8,6,2049,1,3,12,8,4096,0,13,19,6,2049,1,3,8,8,4096,0,9,15,6,2049,1,28,5,6,2049,3,9,17,8,8193,2,3,10,18,4096,0,11,2,6,2049,1,12,12,6,2049,3,9,13,8,8193,2,14,5,10,2049,3,4,15,11,2057,5,4,15,11,2057,6,4,11,11,2057,6,4,26,11,2057,3,3,5,10,2048,0,6,4,6,2049,1,3,14,18,4096,0,15,8,6,2049,1,3,8,8,4096,0,9,6,6,2049,1,3,12,8,4096,0,13,19,6,2049,7,9,17,8,8193,2,3,10,18,4096,0,11,2,6,2049,1,31,15,6,2049,1,34,18,6,2049,1,3,13,8,8192,0,14,7,6,2049,3,3,8,8,4096,0,9,7,6,2049,1,3,3,15,8192,0,5,5,15,8192,0,7,4,8,8192,0,5,9,6,2049,0,11,7,6,2049,1,21,12,6,2049,1,8,7,6,2049,3,9,4,8,8193,2,3,13,18,4096,0,14,5,6,2049,1,15,4,6,2049,1,3,14,18,4096,0,15,8,6,2049,1,3,7,8,4096,0,8,5,6,2049,1,3,8,8,4096,0,9,6,6,2049,3,9,7,8,8193,2,3,13,18,4096,0,14,5,6,2049,1,3,10,18,4096,0,11,2,6,2049,1,12,12,6,2049,1,3,8,8,4096,0,9,6,6,2049,20,9,7,8,8193,2,21,5,6,2049,1,24,8,6,2049,3,9,15,8,8193,2,10,16,8,2049,2,4,13,18,4096,0,14,5,6,2049,1,4,10,18,4096,0,11,7,6,2049,1,4,16,18,4096,0,17,11,6,2049,1,4,14,18,4096,0,15,16,6,2049,1,4,14,18,4096,0,15,16,6,2049,1,4,8,8,4096,0,9,14,6,2049,3,3,16,8,2048,0,17,4,6,2049,2,10,19,8,2049,2,9,7,6,2049,1,4,13,18,4096,0,14,5,6,2049,1,4,10,18,4096,0,11,2,6,2049,1,13,12,6,2049,3,3,19,8,2048,0,20,7,6,2049,2,9,6,8,8193,4,3,8,8,4096,0,9,9,6,2049,1,3,8,8,4096,0,9,19,6,2049,4,2,6,8,8192,0,7,20,3,8193,0,27,7,8,8192,0,9,1,2,1033,0,30,8,2,1033],"resultId":"1"}}

I[09:50:47.803] --> textDocument/clangd.fileStatus
V[09:50:47.803] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///home/leandro/Desarrollo/hrl/working/hrl/promotions.h"}}

V[09:50:47.856] <<< {"id":4,"jsonrpc":"2.0","method":"textDocument/documentLink","params":{"textDocument":{"uri":"file:///home/leandro/Desarrollo/hrl/working/hrl/promotions.h"}}}

I[09:50:47.856] <-- textDocument/documentLink(4)
V[09:50:47.856] ASTWorker running DocumentLinks on version 1 of /home/leandro/Desarrollo/hrl/working/hrl/promotions.h
I[09:50:47.856] --> reply:textDocument/documentLink(4) 0 ms
V[09:50:47.856] >>> {"id":4,"jsonrpc":"2.0","result":[{"range":{"end":{"character":22,"line":6},"start":{"character":9,"line":6}},"target":"file:///home/leandro/Desarrollo/hrl/working/hrl/types.h"},{"range":{"end":{"character":26,"line":7},"start":{"character":9,"line":7}},"target":"file:///home/leandro/Desarrollo/hsl2/working/hsl/date_time.h"}]}

I[09:50:47.856] --> textDocument/clangd.fileStatus
V[09:50:47.856] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///home/leandro/Desarrollo/hrl/working/hrl/promotions.h"}}

V[09:50:48.192] <<< {"id":5,"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"context":{"diagnostics":[{"code":"pp_file_not_found","message":"'algorithm' file not found","range":{"end":{"character":20,"line":2},"start":{"character":9,"line":2}},"relatedInformation":[],"severity":1,"source":"clang"}],"triggerKind":2},"range":{"end":{"character":20,"line":2},"start":{"character":9,"line":2}},"textDocument":{"uri":"file:///home/leandro/Desarrollo/hrl/working/hrl/promotions.h"}}}

I[09:50:48.192] <-- textDocument/codeAction(5)
V[09:50:48.192] <<< {"jsonrpc":"2.0","method":"$/setTrace","params":{"value":"off"}}

I[09:50:48.192] <-- $/setTrace
I[09:50:48.192] unhandled notification $/setTrace
V[09:50:48.192] ASTWorker running EnumerateTweaks on version 1 of /home/leandro/Desarrollo/hrl/working/hrl/promotions.h
I[09:50:48.192] --> reply:textDocument/codeAction(5) 0 ms
V[09:50:48.192] >>> {"id":5,"jsonrpc":"2.0","result":[]}

I[09:50:48.192] --> textDocument/clangd.fileStatus
V[09:50:48.192] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///home/leandro/Desarrollo/hrl/working/hrl/promotions.h"}}

V[09:50:48.232] <<< {"id":6,"jsonrpc":"2.0","method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"file:///home/leandro/Desarrollo/hrl/working/hrl/promotions.h"}}}

I[09:50:48.232] <-- textDocument/documentSymbol(6)
V[09:50:48.232] ASTWorker running DocumentSymbols on version 1 of /home/leandro/Desarrollo/hrl/working/hrl/promotions.h
I[09:50:48.237] --> reply:textDocument/documentSymbol(6) 4 ms
V[09:50:48.237] >>> {"id":6,"jsonrpc":"2.0","result":[{"children":[{"detail":"type alias","kind":5,"name":"receipt_index","range":{"end":{"character":31,"line":11},"start":{"character":1,"line":11}},"selectionRange":{"end":{"character":20,"line":11},"start":{"character":7,"line":11}}},{"detail":"type alias","kind":5,"name":"payment_id","range":{"end":{"character":28,"line":12},"start":{"character":1,"line":12}},"selectionRange":{"end":{"character":17,"line":12},"start":{"character":7,"line":12}}},{"detail":"type alias","kind":5,"name":"pattern_id","range":{"end":{"character":28,"line":13},"start":{"character":1,"line":13}},"selectionRange":{"end":{"character":17,"line":13},"start":{"character":7,"line":13}}},{"detail":"type alias","kind":5,"name":"pattern_instance","range":{"end":{"character":34,"line":14},"start":{"character":1,"line":14}},"selectionRange":{"end":{"character":23,"line":14},"start":{"character":7,"line":14}}},{"children":[{"children":[{"children":[{"detail":"types","kind":22,"name":"all_items","range":{"end":{"character":13,"line":24},"start":{"character":4,"line":24}},"selectionRange":{"end":{"character":13,"line":24},"start":{"character":4,"line":24}}},{"detail":"types","kind":22,"name":"single_item","range":{"end":{"character":15,"line":27},"start":{"character":4,"line":27}},"selectionRange":{"end":{"character":15,"line":27},"start":{"character":4,"line":27}}},{"detail":"types","kind":22,"name":"interchangeable_items","range":{"end":{"character":25,"line":31},"start":{"character":4,"line":31}},"selectionRange":{"end":{"character":25,"line":31},"start":{"character":4,"line":31}}},{"detail":"types","kind":22,"name":"equal_items","range":{"end":{"character":15,"line":36},"start":{"character":4,"line":36}},"selectionRange":{"end":{"character":15,"line":36},"start":{"character":4,"line":36}}}],"detail":"enum","kind":10,"name":"types","range":{"end":{"character":4,"line":37},"start":{"character":3,"line":21}},"selectionRange":{"end":{"character":19,"line":21},"start":{"character":14,"line":21}}},{"detail":"types","kind":8,"name":"type","range":{"end":{"character":13,"line":39},"start":{"character":3,"line":39}},"selectionRange":{"end":{"character":13,"line":39},"start":{"character":9,"line":39}}},{"detail":"quantity_t","kind":8,"name":"quantity","range":{"end":{"character":22,"line":40},"start":{"character":3,"line":40}},"selectionRange":{"end":{"character":22,"line":40},"start":{"character":14,"line":40}}},{"detail":"percentage_t","kind":8,"name":"percentage_discount","range":{"end":{"character":35,"line":41},"start":{"character":3,"line":41}},"selectionRange":{"end":{"character":35,"line":41},"start":{"character":16,"line":41}}},{"detail":"amount_t","kind":8,"name":"amount_discount","range":{"end":{"character":27,"line":42},"start":{"character":3,"line":42}},"selectionRange":{"end":{"character":27,"line":42},"start":{"character":12,"line":42}}},{"detail":"int","kind":8,"name":"codes","range":{"end":{"character":33,"line":43},"start":{"character":3,"line":43}},"selectionRange":{"end":{"character":33,"line":43},"start":{"character":28,"line":43}}}],"detail":"class","kind":5,"name":"item_condition","range":{"end":{"character":3,"line":44},"start":{"character":2,"line":18}},"selectionRange":{"end":{"character":22,"line":18},"start":{"character":8,"line":18}}},{"children":[{"detail":"payment_id","kind":8,"name":"id","range":{"end":{"character":16,"line":48},"start":{"character":3,"line":48}},"selectionRange":{"end":{"character":16,"line":48},"start":{"character":14,"line":48}}},{"detail":"unsigned int","kind":8,"name":"installments","range":{"end":{"character":24,"line":49},"start":{"character":3,"line":49}},"selectionRange":{"end":{"character":24,"line":49},"start":{"character":12,"line":49}}}],"detail":"struct","kind":23,"name":"payment_condition","range":{"end":{"character":3,"line":50},"start":{"character":2,"line":46}},"selectionRange":{"end":{"character":26,"line":46},"start":{"character":9,"line":46}}},{"children":[{"children":[{"detail":"types","kind":22,"name":"solved_by_items","range":{"end":{"character":19,"line":57},"start":{"character":4,"line":57}},"selectionRange":{"end":{"character":19,"line":57},"start":{"character":4,"line":57}}},{"detail":"types","kind":22,"name":"global_discount","range":{"end":{"character":19,"line":62},"start":{"character":4,"line":62}},"selectionRange":{"end":{"character":19,"line":62},"start":{"character":4,"line":62}}},{"detail":"types","kind":22,"name":"fixed_price","range":{"end":{"character":15,"line":68},"start":{"character":4,"line":68}},"selectionRange":{"end":{"character":15,"line":68},"start":{"character":4,"line":68}}},{"detail":"types","kind":22,"name":"discount_on_cheapest_items","range":{"end":{"character":30,"line":74},"start":{"character":4,"line":74}},"selectionRange":{"end":{"character":30,"line":74},"start":{"character":4,"line":74}}}],"detail":"enum","kind":10,"name":"types","range":{"end":{"character":4,"line":75},"start":{"character":3,"line":54}},"selectionRange":{"end":{"character":19,"line":54},"start":{"character":14,"line":54}}},{"detail":"types","kind":8,"name":"type","range":{"end":{"character":13,"line":77},"start":{"character":3,"line":77}},"selectionRange":{"end":{"character":13,"line":77},"start":{"character":9,"line":77}}},{"detail":"int_quantity_t","kind":8,"name":"quantity","range":{"end":{"character":26,"line":78},"start":{"character":3,"line":78}},"selectionRange":{"end":{"character":26,"line":78},"start":{"character":18,"line":78}}},{"detail":"amount_t","kind":8,"name":"amount","range":{"end":{"character":18,"line":79},"start":{"character":3,"line":79}},"selectionRange":{"end":{"character":18,"line":79},"start":{"character":12,"line":79}}},{"detail":"percentage_t","kind":8,"name":"percentage_discount","range":{"end":{"character":35,"line":80},"start":{"character":3,"line":80}},"selectionRange":{"end":{"character":35,"line":80},"start":{"character":16,"line":80}}}],"detail":"struct","kind":23,"name":"final_process","range":{"end":{"character":3,"line":81},"start":{"character":2,"line":52}},"selectionRange":{"end":{"character":22,"line":52},"start":{"character":9,"line":52}}},{"children":[{"detail":"pattern_id","kind":8,"name":"id","range":{"end":{"character":16,"line":89},"start":{"character":3,"line":89}},"selectionRange":{"end":{"character":16,"line":89},"start":{"character":14,"line":89}}},{"detail":"int","kind":8,"name":"item_conditions","range":{"end":{"character":46,"line":90},"start":{"character":3,"line":90}},"selectionRange":{"end":{"character":46,"line":90},"start":{"character":31,"line":90}}},{"detail":"int","kind":8,"name":"payment_conditions","range":{"end":{"character":52,"line":91},"start":{"character":3,"line":91}},"selectionRange":{"end":{"character":52,"line":91},"start":{"character":34,"line":91}}},{"detail":"final_process","kind":8,"name":"process","range":{"end":{"character":24,"line":92},"start":{"character":3,"line":92}},"selectionRange":{"end":{"character":24,"line":92},"start":{"character":17,"line":92}}},{"detail":"amount_t","kind":8,"name":"minimum","range":{"end":{"character":19,"line":95},"start":{"character":3,"line":95}},"selectionRange":{"end":{"character":19,"line":95},"start":{"character":12,"line":95}}},{"detail":"hsl::types::date","kind":8,"name":"date_from","range":{"end":{"character":29,"line":96},"start":{"character":3,"line":96}},"selectionRange":{"end":{"character":29,"line":96},"start":{"character":20,"line":96}}},{"detail":"hsl::types::date","kind":8,"name":"date_to","range":{"end":{"character":38,"line":96},"start":{"character":3,"line":96}},"selectionRange":{"end":{"character":38,"line":96},"start":{"character":31,"line":96}}},{"detail":"int","kind":8,"name":"allowed_days","range":{"end":{"character":33,"line":97},"start":{"character":3,"line":97}},"selectionRange":{"end":{"character":33,"line":97},"start":{"character":21,"line":97}}},{"detail":"bool","kind":8,"name":"mixable","range":{"end":{"character":15,"line":98},"start":{"character":3,"line":98}},"selectionRange":{"end":{"character":15,"line":98},"start":{"character":8,"line":98}}}],"detail":"struct","kind":23,"name":"promotion_pattern","range":{"end":{"character":3,"line":99},"start":{"character":2,"line":87}},"selectionRange":{"end":{"character":26,"line":87},"start":{"character":9,"line":87}}},{"children":[{"detail":"receipt_index","kind":8,"name":"index","range":{"end":{"character":22,"line":103},"start":{"character":3,"line":103}},"selectionRange":{"end":{"character":22,"line":103},"start":{"character":17,"line":103}}},{"detail":"int","kind":8,"name":"code","range":{"end":{"character":19,"line":104},"start":{"character":3,"line":104}},"selectionRange":{"end":{"character":19,"line":104},"start":{"character":15,"line":104}}},{"detail":"int_quantity_t","kind":8,"name":"quantity","range":{"end":{"character":26,"line":105},"start":{"character":3,"line":105}},"selectionRange":{"end":{"character":26,"line":105},"start":{"character":18,"line":105}}},{"detail":"price_t","kind":8,"name":"price","range":{"end":{"character":16,"line":106},"start":{"character":3,"line":106}},"selectionRange":{"end":{"character":16,"line":106},"start":{"character":11,"line":106}}},{"detail":"amount_t","kind":8,"name":"amount","range":{"end":{"character":18,"line":107},"start":{"character":3,"line":107}},"selectionRange":{"end":{"character":18,"line":107},"start":{"character":12,"line":107}}}],"detail":"struct","kind":23,"name":"item","range":{"end":{"character":3,"line":108},"start":{"character":2,"line":101}},"selectionRange":{"end":{"character":13,"line":101},"start":{"character":9,"line":101}}},{"children":[{"detail":"receipt_index","kind":8,"name":"index","range":{"end":{"character":22,"line":112},"start":{"character":3,"line":112}},"selectionRange":{"end":{"character":22,"line":112},"start":{"character":17,"line":112}}},{"detail":"payment_id","kind":8,"name":"id","range":{"end":{"character":16,"line":113},"start":{"character":3,"line":113}},"selectionRange":{"end":{"character":16,"line":113},"start":{"character":14,"line":113}}},{"detail":"unsigned int","kind":8,"name":"installments","range":{"end":{"character":24,"line":114},"start":{"character":3,"line":114}},"selectionRange":{"end":{"character":24,"line":114},"start":{"character":12,"line":114}}},{"detail":"amount_t","kind":8,"name":"amount","range":{"end":{"character":18,"line":115},"start":{"character":3,"line":115}},"selectionRange":{"end":{"character":18,"line":115},"start":{"character":12,"line":115}}}],"detail":"struct","kind":23,"name":"payment","range":{"end":{"character":3,"line":116},"start":{"character":2,"line":110}},"selectionRange":{"end":{"character":16,"line":110},"start":{"character":9,"line":110}}},{"children":[{"detail":"int","kind":8,"name":"items","range":{"end":{"character":26,"line":137},"start":{"character":3,"line":137}},"selectionRange":{"end":{"character":26,"line":137},"start":{"character":21,"line":137}}},{"detail":"int","kind":8,"name":"payments","range":{"end":{"character":32,"line":138},"start":{"character":3,"line":138}},"selectionRange":{"end":{"character":32,"line":138},"start":{"character":24,"line":138}}}],"detail":"struct","kind":23,"name":"receipt","range":{"end":{"character":3,"line":139},"start":{"character":2,"line":135}},"selectionRange":{"end":{"character":16,"line":135},"start":{"character":9,"line":135}}},{"children":[{"children":[{"detail":"receipt_index","kind":8,"name":"index","range":{"end":{"character":23,"line":145},"start":{"character":4,"line":145}},"selectionRange":{"end":{"character":23,"line":145},"start":{"character":18,"line":145}}},{"detail":"pattern_id","kind":8,"name":"pattern","range":{"end":{"character":22,"line":146},"start":{"character":4,"line":146}},"selectionRange":{"end":{"character":22,"line":146},"start":{"character":15,"line":146}}},{"detail":"pattern_instance","kind":8,"name":"instance_id","range":{"end":{"character":32,"line":147},"start":{"character":4,"line":147}},"selectionRange":{"end":{"character":32,"line":147},"start":{"character":21,"line":147}}},{"detail":"int_quantity_t","kind":8,"name":"quantity_matched","range":{"end":{"character":35,"line":148},"start":{"character":4,"line":148}},"selectionRange":{"end":{"character":35,"line":148},"start":{"character":19,"line":148}}},{"detail":"int_quantity_t","kind":8,"name":"quantity_applied","range":{"end":{"character":35,"line":149},"start":{"character":4,"line":149}},"selectionRange":{"end":{"character":35,"line":149},"start":{"character":19,"line":149}}},{"detail":"amount_t","kind":8,"name":"total_discount","range":{"end":{"character":27,"line":150},"start":{"character":4,"line":150}},"selectionRange":{"end":{"character":27,"line":150},"start":{"character":13,"line":150}}}],"detail":"struct","kind":23,"name":"item_information","range":{"end":{"character":4,"line":151},"start":{"character":3,"line":143}},"selectionRange":{"end":{"character":26,"line":143},"start":{"character":10,"line":143}}},{"detail":"item_information","kind":8,"name":"item","range":{"end":{"character":24,"line":153},"start":{"character":3,"line":153}},"selectionRange":{"end":{"character":24,"line":153},"start":{"character":20,"line":153}}},{"children":[{"detail":"bool","kind":8,"name":"applied","range":{"end":{"character":16,"line":157},"start":{"character":4,"line":157}},"selectionRange":{"end":{"character":16,"line":157},"start":{"character":9,"line":157}}},{"detail":"receipt_index","kind":8,"name":"index","range":{"end":{"character":23,"line":158},"start":{"character":4,"line":158}},"selectionRange":{"end":{"character":23,"line":158},"start":{"character":18,"line":158}}},{"detail":"payment_id","kind":8,"name":"id","range":{"end":{"character":17,"line":159},"start":{"character":4,"line":159}},"selectionRange":{"end":{"character":17,"line":159},"start":{"character":15,"line":159}}},{"detail":"unsigned int","kind":8,"name":"installments","range":{"end":{"character":25,"line":160},"start":{"character":4,"line":160}},"selectionRange":{"end":{"character":25,"line":160},"start":{"character":13,"line":160}}}],"detail":"struct","kind":23,"name":"payment_information","range":{"end":{"character":4,"line":161},"start":{"character":3,"line":155}},"selectionRange":{"end":{"character":29,"line":155},"start":{"character":10,"line":155}}},{"detail":"payment_information","kind":8,"name":"payment","range":{"end":{"character":30,"line":163},"start":{"character":3,"line":163}},"selectionRange":{"end":{"character":30,"line":163},"start":{"character":23,"line":163}}}],"detail":"struct","kind":23,"name":"applied_pattern","range":{"end":{"character":3,"line":164},"start":{"character":2,"line":141}},"selectionRange":{"end":{"character":24,"line":141},"start":{"character":9,"line":141}}},{"children":[{"detail":"amount_t","kind":8,"name":"new_total","range":{"end":{"character":21,"line":169},"start":{"character":3,"line":169}},"selectionRange":{"end":{"character":21,"line":169},"start":{"character":12,"line":169}}},{"detail":"amount_t","kind":8,"name":"last_payment_amount","range":{"end":{"character":31,"line":170},"start":{"character":3,"line":170}},"selectionRange":{"end":{"character":31,"line":170},"start":{"character":12,"line":170}}}],"detail":"struct","kind":23,"name":"result","range":{"end":{"character":3,"line":171},"start":{"character":2,"line":165}},"selectionRange":{"end":{"character":15,"line":165},"start":{"character":9,"line":165}}},{"detail":"result (const receipt &, const int &)","kind":12,"name":"get_applied_patterns","range":{"end":{"character":84,"line":174},"start":{"character":2,"line":174}},"selectionRange":{"end":{"character":29,"line":174},"start":{"character":9,"line":174}}}],"kind":3,"name":"promotions","range":{"end":{"character":2,"line":175},"start":{"character":1,"line":16}},"selectionRange":{"end":{"character":21,"line":16},"start":{"character":11,"line":16}}}],"kind":3,"name":"hrl","range":{"end":{"character":1,"line":176},"start":{"character":0,"line":9}},"selectionRange":{"end":{"character":13,"line":9},"start":{"character":10,"line":9}}}]}

I[09:50:48.238] --> textDocument/clangd.fileStatus
V[09:50:48.238] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///home/leandro/Desarrollo/hrl/working/hrl/promotions.h"}}

V[09:50:48.389] <<< {"id":7,"jsonrpc":"2.0","method":"textDocument/documentLink","params":{"textDocument":{"uri":"file:///home/leandro/Desarrollo/hrl/working/hrl/promotions.h"}}}

I[09:50:48.389] <-- textDocument/documentLink(7)
V[09:50:48.389] ASTWorker running DocumentLinks on version 1 of /home/leandro/Desarrollo/hrl/working/hrl/promotions.h
I[09:50:48.389] --> reply:textDocument/documentLink(7) 0 ms
V[09:50:48.389] >>> {"id":7,"jsonrpc":"2.0","result":[{"range":{"end":{"character":22,"line":6},"start":{"character":9,"line":6}},"target":"file:///home/leandro/Desarrollo/hrl/working/hrl/types.h"},{"range":{"end":{"character":26,"line":7},"start":{"character":9,"line":7}},"target":"file:///home/leandro/Desarrollo/hsl2/working/hsl/date_time.h"}]}

I[09:50:48.389] --> textDocument/clangd.fileStatus
V[09:50:48.389] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///home/leandro/Desarrollo/hrl/working/hrl/promotions.h"}}

V[09:50:48.464] <<< {"id":8,"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"context":{"diagnostics":[{"code":"pp_file_not_found","message":"'algorithm' file not found","range":{"end":{"character":20,"line":2},"start":{"character":9,"line":2}},"relatedInformation":[],"severity":1,"source":"clang"}],"triggerKind":2},"range":{"end":{"character":20,"line":2},"start":{"character":9,"line":2}},"textDocument":{"uri":"file:///home/leandro/Desarrollo/hrl/working/hrl/promotions.h"}}}

I[09:50:48.464] <-- textDocument/codeAction(8)
V[09:50:48.464] ASTWorker running EnumerateTweaks on version 1 of /home/leandro/Desarrollo/hrl/working/hrl/promotions.h
I[09:50:48.464] --> reply:textDocument/codeAction(8) 0 ms
V[09:50:48.464] >>> {"id":8,"jsonrpc":"2.0","result":[]}

I[09:50:48.464] --> textDocument/clangd.fileStatus
V[09:50:48.464] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///home/leandro/Desarrollo/hrl/working/hrl/promotions.h"}}

V[09:50:49.133] <<< {"id":9,"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"context":{"diagnostics":[{"code":"pp_file_not_found","message":"'algorithm' file not found","range":{"end":{"character":20,"line":2},"start":{"character":9,"line":2}},"relatedInformation":[],"severity":1,"source":"clang"}],"triggerKind":2},"range":{"end":{"character":20,"line":2},"start":{"character":9,"line":2}},"textDocument":{"uri":"file:///home/leandro/Desarrollo/hrl/working/hrl/promotions.h"}}}

I[09:50:49.133] <-- textDocument/codeAction(9)
V[09:50:49.133] ASTWorker running EnumerateTweaks on version 1 of /home/leandro/Desarrollo/hrl/working/hrl/promotions.h
I[09:50:49.133] --> reply:textDocument/codeAction(9) 0 ms
V[09:50:49.133] >>> {"id":9,"jsonrpc":"2.0","result":[]}

I[09:50:49.133] --> textDocument/clangd.fileStatus
V[09:50:49.133] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///home/leandro/Desarrollo/hrl/working/hrl/promotions.h"}}


Trucoto avatar Nov 27 '22 12:11 Trucoto

Potential workaround here

HighCommander4 avatar Nov 27 '22 14:11 HighCommander4

Potential workaround here

It worked, thank you.

Trucoto avatar Nov 27 '22 18:11 Trucoto