Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-33188

Changing compiler in kit doesn't update Clangd

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • Qt Creator 17.0.0
    • C/C++/Obj-C++ Support
    • None
    • macOS

      If the compiler from Xcode.app directly is set up for the kit (instead of /usr/bin/...), Clangd misses the sysroot setting and shows errors. So far that is probably expected.

      After changing the compiler in the kit, the errors persist. Restarting Clangd doesn't fix it either. I guess the reason is that the compiler_commands.json is not updated. I also do not find a way to trigger that manually.

      Things go back to normal after restarting Qt Creator or switching sessions, or closing/reopening the project.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kandeler Christian Kandeler
            con Eike Ziller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes