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

ProjectExplorer truncates "Source Files" filepaths

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 5.0.3
    • None
    • - Cmake 3.21.4 (latest)
      - Windows 10
      - VirtualBox v6.1.26_Pop r145957
      -- with shared folder (complicates detection?)
    • Windows

    Description

      In the project explorer sidebar, under "Source File" file paths miss their first character as shown in the attachment (and below). Double-clicking on the file results in a "file error, path not found" message. Compiling works fine however.

      In CMakeLists.txt these are defined as, and shown in project explorer as:

      ${PROJECT_SOURCE_DIR}/src/main.cpp ---> P:\rc\main.cpp ("src" is truncated)

      Printing the CMAKE variable using MESSAGE shows no truncation.

      When a full path is supplied in CMakeLists.txt, the issue does not occur, i.e:
      C:\sourcedir\src\main.cpp ---> C:\sourcedir\src\main.cpp (CORRECT)
      Given cross-platform development I prefer the former setup.

      Best guess:
      The treelist path generator expected a double dash in the drivename (i.e. "C:\ \"
      ), got "C:\" and truncates the path string instead. Using a VM shared folder may contribute.

      Attachments

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

        Activity

          People

            cadam Cristian Adam
            wold5 W O
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes