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

Reloaded Meson project has wrong paths

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • Qt Creator 17.0.0
    • Qt Creator 17.0.0, Qt Creator 18.0 (master branch)
    • None
    • Meson version: 1.8.1
      Qt Creator build: cb6c5cfad5d0e79221b8ad66abb28c8681c5cf64
    • Linux/Wayland
    • 54a0c74ff (master), 4983f08c4 (17.0)

    Description

      When a Meson project with a some subdirs is re-loaded from a saved session, the paths to some files in subdirs are wrong. Wiping the project and recreating solves the problem.

      I'm not sure how long this has been happening.

      To reproduce:

      1. clone https://github.com/opendcdiag/opendcdiag
      2. configure (may require to be on Linux)
      3. switch sessions to something else or close the project
      4. switch back or reopen the project

      Expected behaviour:
      All source files are correctly found.

      Actual behaviour:
      Files with the wrong path are loaded in the project, resulting in their not being found.

      See the file listing:

      If you hover over one of the files greyed out, it shows a full path with "opendcdiag/framework/<filename>" with the "sysdeps/win32/" portion missing.

      Also note how it's showing the Windows files on Linux, which can't be right. That may be caused by:

      framework/meson.build
      sysdeps_dir = 'sysdeps/' + target_machine.system()
      
      if target_machine.system() == 'cygwin'
          sysdeps_dir = 'sysdeps/windows'
      endif
      ...
      if target_machine.system() != 'windows' and target_machine.system() != 'cygwin'
          subdir('sysdeps/unix')
      endif
      subdir(sysdeps_dir)
      

      Attachments

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

        Activity

          People

            hjk hjk
            thiago Thiago Macieira
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes