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

CompilationDatabaseProjectManager: Symbolic link source files added with their real path

    XMLWordPrintable

Details

    • 2e4ed0696ba3aba95d189c7de80853c8a1f53aca (qt-creator/qt-creator/4.12)

    Description

      I have a project where a lot of my source files are linked to a different directory.

      My "compile_commands.json" file has the symbolic link path, but when I open the project in Qt Creator the file will be shown with the "real" path, as if

      realpath --relative-to=$(pwd) /full/path/taken/from/compile_commands.json/file
      

      had been called on the file.

      This is confusing, as the filenames is not always the same, i.e.

      src/source.cpp -> ../path/to/some_feature.cpp
      

      The above example will show up in Qt Creator as

      path/to/some_feature.cpp
      

      where I expect

      src/source.cpp
      

      Attachments

        1. almost_right.png
          almost_right.png
          5 kB
        2. bug.png
          bug.png
          4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            carstenmikkelsen Carsten Mikkelsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes