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

CMake: Detect error if source file doe snot exist anymore.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • Qt Creator 14.0.2
    • None

    Description

      Opening an old session, the loading of the project failed.

      THis is what the Issues Pane showed:

      :-1: error: The command "C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe -S C:/dev/tmp/untitled42 -B C:/dev/tmp/untitled42/build/Qt_6_8_0_MSVC2022_64bit_644973-Debug "-DCMAKE_GENERATOR:STRING=Ninja" "-DCMAKE_C_COMPILER:FILEPATH=C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.41.34120/bin/HostX64/x64/cl.exe" "-DCMAKE_PREFIX_PATH:PATH=" "-DQT_QMAKE_EXECUTABLE:FILEPATH=" "-DCMAKE_BUILD_TYPE:STRING=Debug" "-DCMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=C:\dev\tmp\untitled42\build\Qt_6_8_0_MSVC2022_64bit_644973-Debug/.qtc/package-manager/auto-setup.cmake" "-DCMAKE_CXX_COMPILER:FILEPATH=C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.41.34120/bin/HostX64/x64/cl.exe"" terminated with exit code 1.
      :-1: error: CMake project configuration failed. No CMake configuration for build type "Debug" found. Check General Messages for more information.
      

      As indicated, the actual error was in General Messages

      [cmake] CMake Error: The source directory "C:/dev/tmp/untitled42" does not appear to contain CMakeLists.txt.
      

      Coudl the actual CMake error being shown under Issues, instead of leaving it to the user to parse General Messages?

      Attachments

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

        Activity

          People

            cadam Cristian Adam
            kkohne Kai Köhne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes