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

QtCreator cant handle absolute paths returned by the compiler

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • Qt Creator 4.14.0
    • None
    • Windows

    Description

      Using clang-tidy as external tool via cmake
      `set(CMAKE_EXPORT_COMPILE_COMMANDS ON))` and `set (CXX_CLANG_TIDY ...)`

      can result in warnings or errors.
      Those errors are printed to the compiler-tab with paths, wich may contain `..`.
      E.g.: C:\Users\<user>\<project_dir>\<build_dir>\..\project\util\src\my_sourcefile.cpp:29:7

      Trying to click on the path opens a window with an exception, that the path does not exist.
      This is wrong. It also prevents QtCreator, from highlighting the code.

      Edit:
      I got some paths, relative to the build dir containing "..", which work.
      Also I had paths like C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\deque:596:15 which does not.

      So it seems like, that the Compiler Console Window can't handle absolute paths.

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            febbe Fabian Keßler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes