Bug : Import folder recursively has been broken for ages

Sysprogs forums Forums VisualGDB Bug : Import folder recursively has been broken for ages

Tagged: ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #32160
    Rob Belcham
    Participant

    Can I please request that fixing the recursive folder import be added to the TODO list ? It has been broken for some time now.

    You used to be able to right click an existing folder (filter) in the solution explorer and select Add -> Import Folder Recursively  and the selected files / folders would then appear underneath the folder you originally clicked. This doesn’t happen any more and all the files / folders get added to the root level of the solution so you have to go through manually moving them all.

    Thanks

    #32161
    support
    Keymaster

    Unfortunately, it is hard to suggest anything specific based on the description you provided.
    In order for us to provide any help with this, we need to be able to reproduce the problem on our side.
    Please provide complete and detailed steps to reproduce the issue as described below:

    1. The steps should begin with launching Visual Studio. They should include every step necessary to create the project from scratch and reproduce the issue.
    2. Please make sure the steps do not involve any 3rd-party code as we will not be able to review it. If the problem only happens with a specific project, please make sure you can reproduce it on a clean project created from scratch.
    3. The steps should include uncropped screenshots of all wizard pages, VisualGDB Project Properties pages and any other GUI involved in reproducing the problem. This is critical for us to be able to reproduce the problem on our side.

    You can read more about the best way to report VisualGDB issues in our problem reporting guidelines, If you do not wish to document the repro steps and save the screenshots, please consider recording a screen video instead and sending us a link to it.

    Please note that many VisualGDB issues are caused by selecting an incompatible combination of settings at some point. We are generally not able to review specific projects and find the specific settings that were set incorrectly. We recommend checking the projects into source control and keeping a track of all changed settings to avoid breaking the projects.

    You can also try checking various diagnostic output from various parts of VisualGDB as described on this page. Although we won’t be able to review it for a specific project unless the we can reproduce the problem from scratch, checking it might provide some clues on what is causing the unexpected behavior.

    #32192
    Rob Belcham
    Participant

    Apologies for the terrible bug report! Here’s a clearer description of the issue.

    1. Open VS
    2. Create a new VGDB project with Custom Project Wizard
    3. Click Next / Finish to create an empty project
    4. Delete the empty Header files and Source files folders
    5. Create an empty folder in File Explorer and call it Project
    6. Inside the Project folder, create a folder called A
    7. Inside the A folder, create a couple of empty files eg A1.h and A2.h
    8. Inside the A folder still, create a folder called B
    9. Inside the Bfolder, create a couple of files e.g B1.h and B2.h
    10. Right click the project and click Add -> import folder recursively
    11. Leaving “the folder is located on this computer” selected, browse to the Projectfolder created above and select it
    12. EnableBypass "Source Files" and "Header Files" folders
    13. Click OK
    14. File tree is successfully imported as expected. (see Screenshot 1)
    15. Inside the A folder in Windows File explorer, now create a C folder with c1.h and c2.hinside it.
    16. Right click the A folder in the VS solution explorer and repeat steps 10,11&12 but selecting the C folder created in 15. (Screenshot 2)
    17. At this point, I would expect the C folder to be created underneath the A folder in the project window but it doesn’t, it puts the c1.h files at the root of the project (screenshot 3)
    18. What I would expect is to see screenshot 4. I think part of the issue is that the folder you select does not get created, only it’s contents, and it doesn’t place the contents at the level you selected in the tree.
    19. The use case for this is working with a large project, where someone adds a new submodule, or folder and you want to import it into the project in a single step.
    Attachments:
    You must be logged in to view attached files.
    #32233
    support
    Keymaster

    Thanks for the detailed repro steps. The issue was triggered by adding folders to first-level Solution Explorer nodes with source/header filters disabled. As it is a relatively rare scenario, it makes sense why it wasn’t caught by our tests or reported by anyone else.

    We have fixed the issue in the following build (and also added a checkbox for creating an extra node for the imported folder itself): VisualGDB-5.6.104.4538.msi

    #32282
    Rob Belcham
    Participant

    Amazing, thankyou! Works perfectly 🙂

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.