raspberrypi / debugprobe

748 stars 201 forks source link

clangd doesn't index the project properly, can't find macros like __unused and __printflike #149

Open s1syph0s opened 3 weeks ago

s1syph0s commented 3 weeks ago

Hi,

I want to play around with the source code, but my clangd LSP doesn't seem to index the pico-sdk properly. I can build successfully, but if I open src/main.c for example, clangd will say that there are too many errors omitted. The errors are coming from <pico/stdlib.h> and bsp/board_api.h.

from bsp/board_api.h: screenshot_24-08-2024-185316

example from diving into <pico/stdlib.h>'s header files: screenshot_24-08-2024-100927 screenshot_24-08-2024-100958

Looking at my Lsp Log, it points to the correct pico-sdk's pico_platform_compiler to get these informations -isystem path/to/pico-sdk/src/rp2_common/pico_platform_compiler/include, but it still don't index the file properly. Here's the log:

[START][2024-08-24 18:56:33] LSP logging initiated
[ERROR][2024-08-24 18:56:33] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:32.998] clangd version 18.1.8\nI[18:56:32.998] Features: linux\nI[18:56:32.998] PID: 189558\nI[18:56:32.998] Working directory: /home/sisyph0s/src/co/debugprobe\nI[18:56:32.998] argv[0]: /nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd\nI[18:56:32.998] argv[1]: --query-driver=*\nI[18:56:32.998] Starting LSP over stdin/stdout\nI[18:56:32.998] <-- initialize(1)\nI[18:56:32.999] --> reply:initialize(1) 0 ms\n"
[ERROR][2024-08-24 18:56:33] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    'I[18:56:33.093] <-- initialized\nI[18:56:33.097] <-- textDocument/didOpen\nE[18:56:33.097] System include extraction: driver clang not found in PATH\nI[18:56:33.098] --> textDocument/publishDiagnostics\nI[18:56:33.100] Loaded compilation database from /home/sisyph0s/src/co/debugprobe/compile_commands.json\nI[18:56:33.100] ASTWorker building file /home/sisyph0s/src/co/debugprobe/src/main.c version 0 with command \n[/home/sisyph0s/src/co/debugprobe/build]\n/nix/store/gmxsj86p3cqyj3js0aksz3gl2g2lc523-gcc-arm-embedded-13.2.rel1/bin/arm-none-eabi-gcc --target=arm-none-eabi -DCFG_TUSB_DEBUG=0 -DCFG_TUSB_MCU=OPT_MCU_RP2040 -DCFG_TUSB_OS=OPT_OS_PICO -DFREE_RTOS_KERNEL_SMP=1 -DLIB_FREERTOS_KERNEL=1 -DLIB_PICO_ATOMIC=1 -DLIB_PICO_BIT_OPS=1 -DLIB_PICO_BIT_OPS_PICO=1 -DLIB_PICO_CLIB_INTERFACE=1 -DLIB_PICO_CRT0=1 -DLIB_PICO_CXX_OPTIONS=1 -DLIB_PICO_DIVIDER=1 -DLIB_PICO_DIVIDER_HARDWARE=1 -DLIB_PICO_DOUBLE=1 -DLIB_PICO_DOUBLE_PICO=1 -DLIB_PICO_FIX_RP2040_USB_DEVICE_ENUMERATION=1 -DLIB_PICO_FLOAT=1 -DLIB_PICO_FLOAT_PICO=1 -DLIB_PICO_INT64_OPS=1 -DLIB_PICO_INT64_OPS_PICO=1 -DLIB_PICO_MALLOC=1 -DLIB_PICO_MEM_OPS=1 -DLIB_PICO_MEM_OPS_PICO=1 -DLIB_PICO_MULTICORE=1 -DLIB_PICO_NEWLIB_INTERFACE=1 -DLIB_PICO_PLATFORM=1 -DLIB_PICO_PLATFORM_COMPILER=1 -DLIB_PICO_PLATFORM_PANIC=1 -DLIB_PICO_PLATFORM_SECTIONS=1 -DLIB_PICO_PRINTF=1 -DLIB_PICO_PRINTF_PICO=1 -DLIB_PICO_RUNTIME=1 -DLIB_PICO_RUNTIME_INIT=1 -DLIB_PICO_STANDARD_BINARY_INFO=1 -DLIB_PICO_STANDARD_LINK=1 -DLIB_PICO_STDIO=1 -DLIB_PICO_STDIO_UART=1 -DLIB_PICO_STDLIB=1 -DLIB_PICO_SYNC=1 -DLIB_PICO_SYNC_CRITICAL_SECTION=1 -DLIB_PICO_SYNC_MUTEX=1 -DLIB_PICO_SYNC_SEM=1 -DLIB_PICO_TIME=1 -DLIB_PICO_TIME_ADAPTER=1 -DLIB_PICO_UNIQUE_ID=1 -DLIB_PICO_UTIL=1 -DLIB_TINYUSB_BOARD=1 -DLIB_TINYUSB_DEVICE=1 -DPICO_32BIT=1 "-DPICO_BOARD=\\"pico\\"" -DPICO_BUILD=1 "-DPICO_CMAKE_BUILD_TYPE=\\"Release\\"" -DPICO_CONFIG_RTOS_ADAPTER_HEADER=/home/sisyph0s/src/co/debugprobe/freertos/portable/ThirdParty/GCC/RP2040/include/freertos_sdk_config.h -DPICO_COPY_TO_RAM=1 -DPICO_CXX_ENABLE_EXCEPTIONS=0 -DPICO_NO_FLASH=0 -DPICO_NO_HARDWARE=0 -DPICO_ON_DEVICE=1 -DPICO_RP2040=1 -DPICO_RP2040_USB_DEVICE_ENUMERATION_FIX=1 -DPICO_RP2040_USB_DEVICE_UFRAME_FIX=1 "-DPICO_TARGET_NAME=\\"debugprobe\\"" -DPICO_USE_BLOCKED_RAM=0 -I/home/sisyph0s/src/co/debugprobe/CMSIS_5/CMSIS/DAP/Firmware/Include -I/home/sisyph0s/src/co/debugprobe/CMSIS_5/CMSIS/Core/Include -I/home/sisyph0s/src/co/debugprobe/include -I/home/sisyph0s/src/co/debugprobe/build -I/home/sisyph0s/src/co/debugprobe/src -I/nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_atomic/include -I/nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/lib/tinyusb/src -I/nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/tinyusb/include -I/nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/lib/tinyusb/hw -I/home/sisyph0s/src/co/debugprobe/freertos/portable/ThirdParty/GCC/RP2040/include -I/home/sisyph0s/src/co/debugprobe/freertos/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_multicore/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_sync/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_sync/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_base_headers/include -isystem /home/sisyph0s/src/co/debugprobe/build/generated/pico_base -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/boards/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2040/pico_platform/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2040/hardware_regs/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_base/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_platform_compiler/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_platform_panic/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_platform_sections/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2040/hardware_structs/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/hardware_claim/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_sync_spin_lock/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_time/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_timer/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_irq/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_util/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_time_adapter/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_stdlib_headers/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_gpio/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_uart/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_resets/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_clocks/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_pll/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_vreg/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_watchdog/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_ticks/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_xosc/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_divider/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_runtime/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_runtime_init/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_bit_ops_headers/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_divider_headers/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_double/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_float/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_malloc/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_binary_info/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_printf/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_stdio/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_stdio_uart/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_bootrom/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/boot_picoboot_headers/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_boot_lock/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_int64_ops/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_mem_ops/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2040/boot_stage2/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/boot_picobin_headers/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_unique_id/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_flash/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_fix/rp2040_usb_device_enumeration/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_pio/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_exception/include -mcpu=cortex-m0plus -mthumb -g -O3 -DNDEBUG -Wall -ffunction-sections -fdata-sections -o CMakeFiles/debugprobe.dir/src/main.c.obj -c -D__unused -resource-dir=/nix/store/8cw3113rgdyalw43s87aajh56p604k3j-clang-18.1.8/lib/clang/18 -- /home/sisyph0s/src/co/debugprobe/src/main.c\n'
[ERROR][2024-08-24 18:56:33] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:33.104] --> window/workDoneProgress/create(0)\nI[18:56:33.104] Enqueueing 22 commands for indexing\n"
[ERROR][2024-08-24 18:56:33] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:33.110] Loaded compilation database from /home/sisyph0s/src/co/debugprobe/build/compile_commands.json\n"
[ERROR][2024-08-24 18:56:33] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:33.116] <-- textDocument/semanticTokens/full(2)\n"
[ERROR][2024-08-24 18:56:33] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:33.116] <-- reply(0)\nI[18:56:33.116] --> $/progress\nI[18:56:33.116] --> $/progress\n"
[ERROR][2024-08-24 18:56:33] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:33.180] --> $/progress\n"
[ERROR][2024-08-24 18:56:33] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:33.180] --> $/progress\n"
[ERROR][2024-08-24 18:56:33] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:33.204] Built preamble of size 3006412 for file /home/sisyph0s/src/co/debugprobe/src/main.c version 0 in 0.10 seconds\n"
[ERROR][2024-08-24 18:56:33] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:33.205] --> workspace/semanticTokens/refresh(1)\n"
[ERROR][2024-08-24 18:56:33] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:33.205] Indexing c17 standard library in the context of /home/sisyph0s/src/co/debugprobe/src/main.c\nI[18:56:33.205] <-- $/cancelRequest\nI[18:56:33.205] <-- textDocument/semanticTokens/full(3)\n"
[ERROR][2024-08-24 18:56:33] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:33.205] <-- reply(1)\n"
[ERROR][2024-08-24 18:56:33] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:33.216] --> textDocument/publishDiagnostics\n"
[ERROR][2024-08-24 18:56:33] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:33.216] --> reply:textDocument/semanticTokens/full(2) 100 ms, error: Task was cancelled.\nI[18:56:33.217] --> reply:textDocument/semanticTokens/full(3) 11 ms\n"
[ERROR][2024-08-24 18:56:33] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:33.289] Indexed c17 standard library: 3489 symbols, 1131 filtered\n"
[ERROR][2024-08-24 18:56:33] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:33.416] <-- textDocument/documentHighlight(4)\n"
[ERROR][2024-08-24 18:56:33] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:33.416] --> reply:textDocument/documentHighlight(4) 0 ms\n"
[ERROR][2024-08-24 18:56:34] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:34.340] <-- textDocument/documentHighlight(5)\n"
[ERROR][2024-08-24 18:56:34] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:34.340] --> reply:textDocument/documentHighlight(5) 0 ms\n"
[ERROR][2024-08-24 18:56:35] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:35.938] <-- textDocument/documentHighlight(6)\n"
[ERROR][2024-08-24 18:56:35] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:35.938] --> reply:textDocument/documentHighlight(6) 0 ms\n"
[ERROR][2024-08-24 18:56:36] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:36.745] <-- textDocument/definition(7)\nI[18:56:36.745] --> reply:textDocument/definition(7) 0 ms\n"
[ERROR][2024-08-24 18:56:36] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    'I[18:56:36.762] <-- textDocument/didOpen\nE[18:56:36.763] System include extraction: driver clang not found in PATH\nI[18:56:36.763] Failed to find compilation database for /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_stdlib_headers/include/pico/stdlib.h\nI[18:56:36.764] ASTWorker building file /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_stdlib_headers/include/pico/stdlib.h version 0 with command inferred from /home/sisyph0s/src/co/debugprobe/src/main.c\n[/home/sisyph0s/src/co/debugprobe/build]\n/nix/store/gmxsj86p3cqyj3js0aksz3gl2g2lc523-gcc-arm-embedded-13.2.rel1/bin/arm-none-eabi-gcc --target=arm-none-eabi -DCFG_TUSB_DEBUG=0 -DCFG_TUSB_MCU=OPT_MCU_RP2040 -DCFG_TUSB_OS=OPT_OS_PICO -DFREE_RTOS_KERNEL_SMP=1 -DLIB_FREERTOS_KERNEL=1 -DLIB_PICO_ATOMIC=1 -DLIB_PICO_BIT_OPS=1 -DLIB_PICO_BIT_OPS_PICO=1 -DLIB_PICO_CLIB_INTERFACE=1 -DLIB_PICO_CRT0=1 -DLIB_PICO_CXX_OPTIONS=1 -DLIB_PICO_DIVIDER=1 -DLIB_PICO_DIVIDER_HARDWARE=1 -DLIB_PICO_DOUBLE=1 -DLIB_PICO_DOUBLE_PICO=1 -DLIB_PICO_FIX_RP2040_USB_DEVICE_ENUMERATION=1 -DLIB_PICO_FLOAT=1 -DLIB_PICO_FLOAT_PICO=1 -DLIB_PICO_INT64_OPS=1 -DLIB_PICO_INT64_OPS_PICO=1 -DLIB_PICO_MALLOC=1 -DLIB_PICO_MEM_OPS=1 -DLIB_PICO_MEM_OPS_PICO=1 -DLIB_PICO_MULTICORE=1 -DLIB_PICO_NEWLIB_INTERFACE=1 -DLIB_PICO_PLATFORM=1 -DLIB_PICO_PLATFORM_COMPILER=1 -DLIB_PICO_PLATFORM_PANIC=1 -DLIB_PICO_PLATFORM_SECTIONS=1 -DLIB_PICO_PRINTF=1 -DLIB_PICO_PRINTF_PICO=1 -DLIB_PICO_RUNTIME=1 -DLIB_PICO_RUNTIME_INIT=1 -DLIB_PICO_STANDARD_BINARY_INFO=1 -DLIB_PICO_STANDARD_LINK=1 -DLIB_PICO_STDIO=1 -DLIB_PICO_STDIO_UART=1 -DLIB_PICO_STDLIB=1 -DLIB_PICO_SYNC=1 -DLIB_PICO_SYNC_CRITICAL_SECTION=1 -DLIB_PICO_SYNC_MUTEX=1 -DLIB_PICO_SYNC_SEM=1 -DLIB_PICO_TIME=1 -DLIB_PICO_TIME_ADAPTER=1 -DLIB_PICO_UNIQUE_ID=1 -DLIB_PICO_UTIL=1 -DLIB_TINYUSB_BOARD=1 -DLIB_TINYUSB_DEVICE=1 -DPICO_32BIT=1 "-DPICO_BOARD=\\"pico\\"" -DPICO_BUILD=1 "-DPICO_CMAKE_BUILD_TYPE=\\"Release\\"" -DPICO_CONFIG_RTOS_ADAPTER_HEADER=/home/sisyph0s/src/co/debugprobe/freertos/portable/ThirdParty/GCC/RP2040/include/freertos_sdk_config.h -DPICO_COPY_TO_RAM=1 -DPICO_CXX_ENABLE_EXCEPTIONS=0 -DPICO_NO_FLASH=0 -DPICO_NO_HARDWARE=0 -DPICO_ON_DEVICE=1 -DPICO_RP2040=1 -DPICO_RP2040_USB_DEVICE_ENUMERATION_FIX=1 -DPICO_RP2040_USB_DEVICE_UFRAME_FIX=1 "-DPICO_TARGET_NAME=\\"debugprobe\\"" -DPICO_USE_BLOCKED_RAM=0 -I/home/sisyph0s/src/co/debugprobe/CMSIS_5/CMSIS/DAP/Firmware/Include -I/home/sisyph0s/src/co/debugprobe/CMSIS_5/CMSIS/Core/Include -I/home/sisyph0s/src/co/debugprobe/include -I/home/sisyph0s/src/co/debugprobe/build -I/home/sisyph0s/src/co/debugprobe/src -I/nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_atomic/include -I/nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/lib/tinyusb/src -I/nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/tinyusb/include -I/nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/lib/tinyusb/hw -I/home/sisyph0s/src/co/debugprobe/freertos/portable/ThirdParty/GCC/RP2040/include -I/home/sisyph0s/src/co/debugprobe/freertos/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_multicore/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_sync/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_sync/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_base_headers/include -isystem /home/sisyph0s/src/co/debugprobe/build/generated/pico_base -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/boards/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2040/pico_platform/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2040/hardware_regs/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_base/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_platform_compiler/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_platform_panic/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_platform_sections/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2040/hardware_structs/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/hardware_claim/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_sync_spin_lock/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_time/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_timer/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_irq/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_util/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_time_adapter/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_stdlib_headers/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_gpio/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_uart/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_resets/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_clocks/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_pll/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_vreg/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_watchdog/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_ticks/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_xosc/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_divider/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_runtime/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_runtime_init/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_bit_ops_headers/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_divider_headers/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_double/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_float/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_malloc/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_binary_info/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_printf/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_stdio/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_stdio_uart/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_bootrom/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/boot_picoboot_headers/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_boot_lock/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_int64_ops/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_mem_ops/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2040/boot_stage2/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/boot_picobin_headers/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_unique_id/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_flash/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_fix/rp2040_usb_device_enumeration/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_pio/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_exception/include -mcpu=cortex-m0plus -mthumb -g -O3 -DNDEBUG -Wall -ffunction-sections -fdata-sections -c -resource-dir=/nix/store/8cw3113rgdyalw43s87aajh56p604k3j-clang-18.1.8/lib/clang/18 -x c-header -- /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_stdlib_headers/include/pico/stdlib.h\n'
[ERROR][2024-08-24 18:56:36] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:36.800] <-- textDocument/semanticTokens/full(8)\n"
[ERROR][2024-08-24 18:56:36] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:36.813] Built preamble of size 2178892 for file /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_stdlib_headers/include/pico/stdlib.h version 0 in 0.05 seconds\n"
[ERROR][2024-08-24 18:56:36] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:36.813] --> workspace/semanticTokens/refresh(2)\n"
[ERROR][2024-08-24 18:56:36] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:36.813] <-- $/cancelRequest\nI[18:56:36.814] <-- textDocument/semanticTokens/full(9)\n"
[ERROR][2024-08-24 18:56:36] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:36.814] <-- reply(2)\n"
[ERROR][2024-08-24 18:56:36] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:36.824] --> textDocument/publishDiagnostics\n"
[ERROR][2024-08-24 18:56:36] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:36.824] --> reply:textDocument/semanticTokens/full(8) 23 ms, error: Task was cancelled.\nI[18:56:36.824] --> reply:textDocument/semanticTokens/full(9) 10 ms\n"
[ERROR][2024-08-24 18:56:37] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:37.062] <-- textDocument/documentHighlight(10)\n"
[ERROR][2024-08-24 18:56:37] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:37.062] --> reply:textDocument/documentHighlight(10) 0 ms\n"
[ERROR][2024-08-24 18:56:37] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:37.413] <-- textDocument/documentHighlight(11)\n"
[ERROR][2024-08-24 18:56:37] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:37.414] --> reply:textDocument/documentHighlight(11) 0 ms\n"
[ERROR][2024-08-24 18:56:38] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:38.847] <-- textDocument/documentHighlight(12)\n"
[ERROR][2024-08-24 18:56:38] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:38.847] --> reply:textDocument/documentHighlight(12) 0 ms\n"
[ERROR][2024-08-24 18:56:38] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:38.981] <-- textDocument/definition(13)\nI[18:56:38.982] --> reply:textDocument/definition(13) 0 ms\n"
[ERROR][2024-08-24 18:56:39] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    'I[18:56:39.000] <-- textDocument/didOpen\nI[18:56:39.001] Failed to find compilation database for /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_stdio/include/pico/stdio.h\nI[18:56:39.002] ASTWorker building file /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_stdio/include/pico/stdio.h version 0 with command inferred from /home/sisyph0s/src/co/debugprobe/src/main.c\n[/home/sisyph0s/src/co/debugprobe/build]\n/nix/store/gmxsj86p3cqyj3js0aksz3gl2g2lc523-gcc-arm-embedded-13.2.rel1/bin/arm-none-eabi-gcc --target=arm-none-eabi -DCFG_TUSB_DEBUG=0 -DCFG_TUSB_MCU=OPT_MCU_RP2040 -DCFG_TUSB_OS=OPT_OS_PICO -DFREE_RTOS_KERNEL_SMP=1 -DLIB_FREERTOS_KERNEL=1 -DLIB_PICO_ATOMIC=1 -DLIB_PICO_BIT_OPS=1 -DLIB_PICO_BIT_OPS_PICO=1 -DLIB_PICO_CLIB_INTERFACE=1 -DLIB_PICO_CRT0=1 -DLIB_PICO_CXX_OPTIONS=1 -DLIB_PICO_DIVIDER=1 -DLIB_PICO_DIVIDER_HARDWARE=1 -DLIB_PICO_DOUBLE=1 -DLIB_PICO_DOUBLE_PICO=1 -DLIB_PICO_FIX_RP2040_USB_DEVICE_ENUMERATION=1 -DLIB_PICO_FLOAT=1 -DLIB_PICO_FLOAT_PICO=1 -DLIB_PICO_INT64_OPS=1 -DLIB_PICO_INT64_OPS_PICO=1 -DLIB_PICO_MALLOC=1 -DLIB_PICO_MEM_OPS=1 -DLIB_PICO_MEM_OPS_PICO=1 -DLIB_PICO_MULTICORE=1 -DLIB_PICO_NEWLIB_INTERFACE=1 -DLIB_PICO_PLATFORM=1 -DLIB_PICO_PLATFORM_COMPILER=1 -DLIB_PICO_PLATFORM_PANIC=1 -DLIB_PICO_PLATFORM_SECTIONS=1 -DLIB_PICO_PRINTF=1 -DLIB_PICO_PRINTF_PICO=1 -DLIB_PICO_RUNTIME=1 -DLIB_PICO_RUNTIME_INIT=1 -DLIB_PICO_STANDARD_BINARY_INFO=1 -DLIB_PICO_STANDARD_LINK=1 -DLIB_PICO_STDIO=1 -DLIB_PICO_STDIO_UART=1 -DLIB_PICO_STDLIB=1 -DLIB_PICO_SYNC=1 -DLIB_PICO_SYNC_CRITICAL_SECTION=1 -DLIB_PICO_SYNC_MUTEX=1 -DLIB_PICO_SYNC_SEM=1 -DLIB_PICO_TIME=1 -DLIB_PICO_TIME_ADAPTER=1 -DLIB_PICO_UNIQUE_ID=1 -DLIB_PICO_UTIL=1 -DLIB_TINYUSB_BOARD=1 -DLIB_TINYUSB_DEVICE=1 -DPICO_32BIT=1 "-DPICO_BOARD=\\"pico\\"" -DPICO_BUILD=1 "-DPICO_CMAKE_BUILD_TYPE=\\"Release\\"" -DPICO_CONFIG_RTOS_ADAPTER_HEADER=/home/sisyph0s/src/co/debugprobe/freertos/portable/ThirdParty/GCC/RP2040/include/freertos_sdk_config.h -DPICO_COPY_TO_RAM=1 -DPICO_CXX_ENABLE_EXCEPTIONS=0 -DPICO_NO_FLASH=0 -DPICO_NO_HARDWARE=0 -DPICO_ON_DEVICE=1 -DPICO_RP2040=1 -DPICO_RP2040_USB_DEVICE_ENUMERATION_FIX=1 -DPICO_RP2040_USB_DEVICE_UFRAME_FIX=1 "-DPICO_TARGET_NAME=\\"debugprobe\\"" -DPICO_USE_BLOCKED_RAM=0 -I/home/sisyph0s/src/co/debugprobe/CMSIS_5/CMSIS/DAP/Firmware/Include -I/home/sisyph0s/src/co/debugprobe/CMSIS_5/CMSIS/Core/Include -I/home/sisyph0s/src/co/debugprobe/include -I/home/sisyph0s/src/co/debugprobe/build -I/home/sisyph0s/src/co/debugprobe/src -I/nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_atomic/include -I/nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/lib/tinyusb/src -I/nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/tinyusb/include -I/nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/lib/tinyusb/hw -I/home/sisyph0s/src/co/debugprobe/freertos/portable/ThirdParty/GCC/RP2040/include -I/home/sisyph0s/src/co/debugprobe/freertos/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_multicore/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_sync/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_sync/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_base_headers/include -isystem /home/sisyph0s/src/co/debugprobe/build/generated/pico_base -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/boards/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2040/pico_platform/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2040/hardware_regs/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_base/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_platform_compiler/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_platform_panic/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_platform_sections/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2040/hardware_structs/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/hardware_claim/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_sync_spin_lock/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_time/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_timer/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_irq/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_util/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_time_adapter/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_stdlib_headers/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_gpio/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_uart/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_resets/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_clocks/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_pll/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_vreg/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_watchdog/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_ticks/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_xosc/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_divider/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_runtime/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_runtime_init/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_bit_ops_headers/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_divider_headers/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_double/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_float/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_malloc/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_binary_info/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_printf/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_stdio/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_stdio_uart/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_bootrom/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/boot_picoboot_headers/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_boot_lock/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_int64_ops/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_mem_ops/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2040/boot_stage2/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/boot_picobin_headers/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_unique_id/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_flash/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_fix/rp2040_usb_device_enumeration/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_pio/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_exception/include -mcpu=cortex-m0plus -mthumb -g -O3 -DNDEBUG -Wall -ffunction-sections -fdata-sections -c -resource-dir=/nix/store/8cw3113rgdyalw43s87aajh56p604k3j-clang-18.1.8/lib/clang/18 -x c-header -- /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_stdio/include/pico/stdio.h\n'
[ERROR][2024-08-24 18:56:39] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:39.032] Built preamble of size 565436 for file /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_stdio/include/pico/stdio.h version 0 in 0.03 seconds\nI[18:56:39.032] --> workspace/semanticTokens/refresh(3)\n"
[ERROR][2024-08-24 18:56:39] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:39.039] --> textDocument/publishDiagnostics\n"
[ERROR][2024-08-24 18:56:39] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:39.045] <-- textDocument/semanticTokens/full(14)\nI[18:56:39.045] --> reply:textDocument/semanticTokens/full(14) 0 ms\n"
[ERROR][2024-08-24 18:56:39] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:39.047] <-- $/cancelRequest\nI[18:56:39.047] <-- textDocument/semanticTokens/full(15)\n"
[ERROR][2024-08-24 18:56:39] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:39.047] <-- reply(3)\nI[18:56:39.047] --> reply:textDocument/semanticTokens/full(15) 0 ms\n"
[ERROR][2024-08-24 18:56:39] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:39.315] <-- textDocument/documentHighlight(16)\n"
[ERROR][2024-08-24 18:56:39] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:39.315] --> reply:textDocument/documentHighlight(16) 0 ms\n"
[ERROR][2024-08-24 18:56:41] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:41.540] <-- textDocument/documentHighlight(17)\n"
[ERROR][2024-08-24 18:56:41] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:41.540] --> reply:textDocument/documentHighlight(17) 0 ms\n"
[ERROR][2024-08-24 18:56:43] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:43.310] <-- textDocument/documentHighlight(18)\n"
[ERROR][2024-08-24 18:56:43] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:43.310] --> reply:textDocument/documentHighlight(18) 0 ms\n"
[ERROR][2024-08-24 18:56:43] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:43.451] <-- textDocument/definition(19)\nI[18:56:43.451] --> reply:textDocument/definition(19) 0 ms\n"
[ERROR][2024-08-24 18:56:43] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    'I[18:56:43.470] <-- textDocument/didOpen\nI[18:56:43.470] Failed to find compilation database for /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_base_headers/include/pico.h\nI[18:56:43.471] ASTWorker building file /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_base_headers/include/pico.h version 0 with command inferred from /home/sisyph0s/src/co/debugprobe/src/main.c\n[/home/sisyph0s/src/co/debugprobe/build]\n/nix/store/gmxsj86p3cqyj3js0aksz3gl2g2lc523-gcc-arm-embedded-13.2.rel1/bin/arm-none-eabi-gcc --target=arm-none-eabi -DCFG_TUSB_DEBUG=0 -DCFG_TUSB_MCU=OPT_MCU_RP2040 -DCFG_TUSB_OS=OPT_OS_PICO -DFREE_RTOS_KERNEL_SMP=1 -DLIB_FREERTOS_KERNEL=1 -DLIB_PICO_ATOMIC=1 -DLIB_PICO_BIT_OPS=1 -DLIB_PICO_BIT_OPS_PICO=1 -DLIB_PICO_CLIB_INTERFACE=1 -DLIB_PICO_CRT0=1 -DLIB_PICO_CXX_OPTIONS=1 -DLIB_PICO_DIVIDER=1 -DLIB_PICO_DIVIDER_HARDWARE=1 -DLIB_PICO_DOUBLE=1 -DLIB_PICO_DOUBLE_PICO=1 -DLIB_PICO_FIX_RP2040_USB_DEVICE_ENUMERATION=1 -DLIB_PICO_FLOAT=1 -DLIB_PICO_FLOAT_PICO=1 -DLIB_PICO_INT64_OPS=1 -DLIB_PICO_INT64_OPS_PICO=1 -DLIB_PICO_MALLOC=1 -DLIB_PICO_MEM_OPS=1 -DLIB_PICO_MEM_OPS_PICO=1 -DLIB_PICO_MULTICORE=1 -DLIB_PICO_NEWLIB_INTERFACE=1 -DLIB_PICO_PLATFORM=1 -DLIB_PICO_PLATFORM_COMPILER=1 -DLIB_PICO_PLATFORM_PANIC=1 -DLIB_PICO_PLATFORM_SECTIONS=1 -DLIB_PICO_PRINTF=1 -DLIB_PICO_PRINTF_PICO=1 -DLIB_PICO_RUNTIME=1 -DLIB_PICO_RUNTIME_INIT=1 -DLIB_PICO_STANDARD_BINARY_INFO=1 -DLIB_PICO_STANDARD_LINK=1 -DLIB_PICO_STDIO=1 -DLIB_PICO_STDIO_UART=1 -DLIB_PICO_STDLIB=1 -DLIB_PICO_SYNC=1 -DLIB_PICO_SYNC_CRITICAL_SECTION=1 -DLIB_PICO_SYNC_MUTEX=1 -DLIB_PICO_SYNC_SEM=1 -DLIB_PICO_TIME=1 -DLIB_PICO_TIME_ADAPTER=1 -DLIB_PICO_UNIQUE_ID=1 -DLIB_PICO_UTIL=1 -DLIB_TINYUSB_BOARD=1 -DLIB_TINYUSB_DEVICE=1 -DPICO_32BIT=1 "-DPICO_BOARD=\\"pico\\"" -DPICO_BUILD=1 "-DPICO_CMAKE_BUILD_TYPE=\\"Release\\"" -DPICO_CONFIG_RTOS_ADAPTER_HEADER=/home/sisyph0s/src/co/debugprobe/freertos/portable/ThirdParty/GCC/RP2040/include/freertos_sdk_config.h -DPICO_COPY_TO_RAM=1 -DPICO_CXX_ENABLE_EXCEPTIONS=0 -DPICO_NO_FLASH=0 -DPICO_NO_HARDWARE=0 -DPICO_ON_DEVICE=1 -DPICO_RP2040=1 -DPICO_RP2040_USB_DEVICE_ENUMERATION_FIX=1 -DPICO_RP2040_USB_DEVICE_UFRAME_FIX=1 "-DPICO_TARGET_NAME=\\"debugprobe\\"" -DPICO_USE_BLOCKED_RAM=0 -I/home/sisyph0s/src/co/debugprobe/CMSIS_5/CMSIS/DAP/Firmware/Include -I/home/sisyph0s/src/co/debugprobe/CMSIS_5/CMSIS/Core/Include -I/home/sisyph0s/src/co/debugprobe/include -I/home/sisyph0s/src/co/debugprobe/build -I/home/sisyph0s/src/co/debugprobe/src -I/nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_atomic/include -I/nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/lib/tinyusb/src -I/nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/tinyusb/include -I/nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/lib/tinyusb/hw -I/home/sisyph0s/src/co/debugprobe/freertos/portable/ThirdParty/GCC/RP2040/include -I/home/sisyph0s/src/co/debugprobe/freertos/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_multicore/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_sync/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_sync/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_base_headers/include -isystem /home/sisyph0s/src/co/debugprobe/build/generated/pico_base -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/boards/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2040/pico_platform/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2040/hardware_regs/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_base/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_platform_compiler/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_platform_panic/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_platform_sections/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2040/hardware_structs/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/hardware_claim/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_sync_spin_lock/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_time/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_timer/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_irq/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_util/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_time_adapter/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_stdlib_headers/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_gpio/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_uart/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_resets/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_clocks/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_pll/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_vreg/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_watchdog/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_ticks/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_xosc/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_divider/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_runtime/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_runtime_init/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_bit_ops_headers/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_divider_headers/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_double/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_float/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_malloc/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_binary_info/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_printf/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_stdio/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_stdio_uart/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_bootrom/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/boot_picoboot_headers/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_boot_lock/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_int64_ops/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_mem_ops/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2040/boot_stage2/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/boot_picobin_headers/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_unique_id/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_flash/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/pico_fix/rp2040_usb_device_enumeration/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_pio/include -isystem /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/rp2_common/hardware_exception/include -mcpu=cortex-m0plus -mthumb -g -O3 -DNDEBUG -Wall -ffunction-sections -fdata-sections -c -resource-dir=/nix/store/8cw3113rgdyalw43s87aajh56p604k3j-clang-18.1.8/lib/clang/18 -x c-header -- /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_base_headers/include/pico.h\n'
[ERROR][2024-08-24 18:56:43] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:43.504] Built preamble of size 564256 for file /nix/store/ra0mgrfm1n9hqsc87wbnl0jaxxapnypi-pico-sdk-2.0.0/lib/pico-sdk/src/common/pico_base_headers/include/pico.h version 0 in 0.03 seconds\nI[18:56:43.504] --> workspace/semanticTokens/refresh(4)\n"
[ERROR][2024-08-24 18:56:43] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:43.510] --> textDocument/publishDiagnostics\n"
[ERROR][2024-08-24 18:56:43] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:43.519] <-- textDocument/semanticTokens/full(20)\nI[18:56:43.519] --> reply:textDocument/semanticTokens/full(20) 0 ms\n"
[ERROR][2024-08-24 18:56:43] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:43.523] <-- $/cancelRequest\nI[18:56:43.523] <-- textDocument/semanticTokens/full(21)\nI[18:56:43.523] --> reply:textDocument/semanticTokens/full(21) 0 ms\n"
[ERROR][2024-08-24 18:56:43] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:43.523] <-- reply(4)\n"
[ERROR][2024-08-24 18:56:43] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:43.792] <-- textDocument/documentHighlight(22)\n"
[ERROR][2024-08-24 18:56:43] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:43.792] --> reply:textDocument/documentHighlight(22) 0 ms\n"
[ERROR][2024-08-24 18:56:44] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:44.094] <-- textDocument/semanticTokens/full/delta(23)\n"
[ERROR][2024-08-24 18:56:44] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:44.094] --> reply:textDocument/semanticTokens/full/delta(23) 0 ms\n"
[ERROR][2024-08-24 18:56:44] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:44.364] <-- textDocument/documentHighlight(24)\n"
[ERROR][2024-08-24 18:56:44] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:44.364] --> reply:textDocument/documentHighlight(24) 0 ms\n"
[ERROR][2024-08-24 18:56:45] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:45.300] <-- textDocument/documentHighlight(25)\n"
[ERROR][2024-08-24 18:56:45] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:45.300] --> reply:textDocument/documentHighlight(25) 0 ms\n"
[ERROR][2024-08-24 18:56:47] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:47.937] <-- textDocument/documentHighlight(26)\n"
[ERROR][2024-08-24 18:56:47] .../vim/lsp/rpc.lua:770    "rpc"   "/nix/store/vabg4f8hkgf2jyii647ix9h6cpbp200g-clang-tools-18.1.8/bin/clangd" "stderr"    "I[18:56:47.938] --> reply:textDocument/documentHighlight(26) 0 ms\n"

What could be the problem here?

lurch commented 2 weeks ago

What could be the problem here?

I dunno if we have any in-house familiarity with clangd LSP, but https://github.com/clangd/clangd/blob/master/README.md suggests that https://llvm.discourse.group/c/llvm-project/clangd/34 might be a good place to ask for help?

BTW tusb.h comes from the TinyUSB submodule. Ah, and bsp/board_api.h is a TinyUSB file too.