Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How to change location of .qtc_clangd folder location?
Forum Updated to NodeBB v4.3 + New Features

How to change location of .qtc_clangd folder location?

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
10 Posts 6 Posters 3.0k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Asperamanca
    wrote on last edited by
    #1

    With recent versions, Qt Creator seems to create some cache files for clangd, located in .qtc_clangd.
    This folder currently pollutes my source tree. Is there any way to move it to a different location?

    1 Reply Last reply
    0
    • JohanSoloJ Offline
      JohanSoloJ Offline
      JohanSolo
      wrote on last edited by
      #2

      @Asperamanca said in How to change location of .qtc_clangd folder location?:

      With recent versions, Qt Creator seems to create some cache files for clangd, located in .qtc_clangd.
      This folder currently pollutes my source tree. Is there any way to move it to a different location?

      I don't want to sound harsh, but it's not a big deal: it's a hidden folder (at least on Unices), and the proper setting in your RCS ignore list will simply make it disappear from the list of added files. You should even not notice its existence.

      `They did not know it was impossible, so they did it.'
      -- Mark Twain

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Asperamanca
        wrote on last edited by
        #3

        And what would be the big deal in making temporary folder locations configurable?

        1 Reply Last reply
        0
        • cristian-adamC Offline
          cristian-adamC Offline
          cristian-adam
          wrote on last edited by
          #4

          Please open a bug report / feature request at https://bugreports.qt.io/

          1 Reply Last reply
          0
          • R Offline
            R Offline
            RobertZamora52
            Banned
            wrote on last edited by
            #5
            This post is deleted!
            1 Reply Last reply
            0
            • cristian-adamC Offline
              cristian-adamC Offline
              cristian-adam
              wrote on last edited by
              #6

              I've created QTCREATORBUG-27346: No ability to configure the path to the .qtc_clangd folder.

              1 Reply Last reply
              1
              • Z Offline
                Z Offline
                ziller
                wrote on last edited by
                #7

                "This folder currently pollutes my source tree."

                Qt Creator creates this folder (at least it is supposed to) in the build directory. Do you have an in-source build, or why is that ending up in the source tree?

                A 1 Reply Last reply
                2
                • Z ziller

                  "This folder currently pollutes my source tree."

                  Qt Creator creates this folder (at least it is supposed to) in the build directory. Do you have an in-source build, or why is that ending up in the source tree?

                  A Offline
                  A Offline
                  Asperamanca
                  wrote on last edited by Asperamanca
                  #8

                  @ziller
                  I am not building at all, I am using Creator as a great code editor, but build with external tools.

                  EDIT: So shadow build is disabled. I had issues with it many years ago; haven't tried it since.

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    Asperamanca
                    wrote on last edited by
                    #9

                    Turning on shadow build seems to have solved it for me. Thanks for the hint!

                    1 Reply Last reply
                    1
                    • M Offline
                      M Offline
                      mickae1
                      wrote on last edited by
                      #10

                      In my case I would like to tell Qt creator to stop generating compile_commands.json and using the one generating by cmake.

                      It could be done automatically by detecting CMAKE_EXPORT_COMPILE_COMMANDS is on.

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved