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

File does not exists in project while being part of the compile_commands.json project tree

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 18.0.0
    • None
    • Windows

      I'm using QtCreator 18 on Windows 11

      I have created a remote device of type remote Linux which works as expected. I can connect to it and the state is ok  

      Afterwards, I manually added a GCC toolchain pointing to my remote Linux device

      Then, I created a kit in which I set:

      • Build device: my remote Linux device
      • Run device: my remote Linux device
      • Compiler: the compiler I created in previously pointing to my remote Linux device

      Now I'm opening the compile_command.json on my remote Linux device.

      I select the kit I added and I click on "configure project"

      I can see that the project seems to load properly and the project tree is ok i.e. the expected folder are properly shown. However all the C and C++ source file in the source tree are marked with the icon

      When I double click on it, I have the error message 

      File "/path/to/my/file.c" does not exists 

      When I hover on the supposedly non existing file in the project pane, I notice that it shows path using `\` iso `/` i.e. it show `\path\to\my\file.c`

      If I open a terminal inside Qt creator to my remote Linux device, I notice that `ls -l /path/to/my/file.c` is ok.

      The bug is that I cannot open the source files.

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

            kandeler Christian Kandeler
            lcarlier Laurent Carlier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes