Details
-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
Qt Creator 4.13.1
-
None
Description
I tried to create a sub-directory in a current project.
Creating it in the Qt Creator "system" view or creating it in a linux command line terminal,
the new folder does not appear in the project directory unless I exit Qt Creator.
Opening and closing the project does not seem to fix the problem.
The same situation occurs when I rename a folder in the existing project folder.
The new name is not displayed as a result of the rename. When I select the folder
to open after the rename, an error occurs saying the element no longer
exists. This is true because it has a new name. The only way I found to have the
new name displayed is to exit Qt Creator and reopen the project.
Attached is a snapshot that shows the result of adding a new folder. The upper panel shows
the system state after a new folder is added and the lower panel shows the unchanged
project folder. The same failure to refresh the display occurs when changes occur to the
underlying OS file structure. Creating new files in Qt Creator under the "project/add new"
works correctly because it has to do the file creation.
I tried searching for the new directory hoping this would cause a refresh.
Sadly you can not search for a directory and the refresh never happened without
exiting Qt Creator.
Second symptom of related error.
I tried to create a new file within the "system" view where the new directory is displayed.
I used "add new"; I followed the prompts (general/Empty file) and selected the name "testing.txt".
When a pressed the button to cause the file to be created I received an error message that
says it could not create the file. (see attached screen shot ).
Then after clearing the error message, There the file was listed in the directory And
I verified it using linux command line. (see attached screen shot).
After returning to the project view there was the missing sub-directory with the new file
appearing in the subdirectory. It seems as if the new empty directory is not detected, unless you create a new file in it with the "add new" option. It would be nice to know that creating an empty directory does not require placing a file in it to have it appear in the list of directories of the project directory.