Skip to content

[clangd] [lrt] [Vulkan-hpp] LanguageClient clangd for lrt crashes in a project with vulkan-hpp #141749

Closed as duplicate of#139019
@Txordi00

Description

@Txordi00

I constantly get the following crashes:

LanguageClient clangd for lrt: The command "/usr/lib64/llvm20/bin/clangd --background-index --header-insertion=never --limit-results=100 --limit-references=0 --clang-tidy=0 --background-index-priority=low --rename-file-limit=0 --compile-commands-dir=/home/jordi/Documents/lrt/build/Desktop-Debug/.qtc_clangd --use-dirty-headers" terminated abnormally. (see logs in "/tmp/QtCreator-lBaaPB/lspclient.ghxeeY.log")
LanguageClient clangd for lrt: Unexpectedly finished. Restarting in 5 seconds.

in a project which uses the vulkan-hpp helper library. It happens when trying to autocomplete functions from certain headers, in this case, vulkan_funcs.hpp. I know when it's about to happen because the autocompletion preview shows the functions without arguments. It makes Qt Creator crash and it's extremely annoying. I attach the log here. Maybe the mistake is on my end and I have something not properly configured? The code compiles alright both with gcc and clang.

lspclient.ghxeeY.log

My setup is Fedora 42 + cmake 3.31.6 + gpp-15.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    clangdcrashPrefer [crash-on-valid] or [crash-on-invalid]duplicateResolved as duplicate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions