ProjectExplorer
ProjectExplorer copied to clipboard
Project Explorer doesn't work from Thor
📝 Provide detailed reproduction steps (if any)
- Navigate to a folder that has a project but no solution. Open the project. Make sure, no solution file is in the path
- Run Thor Tools > Applications > Project Explorer
Project Explorer opens with the main form and a dialog asking for a solution file. The dialog contains a Save button
- Hit Enter
✔️ Expected result
Since there is no solution in the folder, Project Explorer should do one of two things:
- Create an empty solution. If there is no such thing as an empty solution, then follow the first dialog with a dialog asking for a project and add that project to the solution.
- If there is no Solution in the current folder, ask the user wether they want to create a new solution or open an existing one for an existing project or for a new project, similar to how Visual Studio is doing this when it's launched.
❌ Actual result
An error message: "A solution file was not specified". Project Explorer closes, once the error message is confirmed.
Work around
- Go to the Project Explorer repository on GitHub (might require Google to find it)
- Find the white paper in the Readme.MD
- Read the first four pages of the white paper to figure out how to call it
- Search the entire Thor folder for everything that has "Project Explorer" in it
- Figure out that "Thor_Tool_ProjectExplorer.prg" is the code that is called from the menu
- Open the prg and copy the line in DoTools into the command window
- Add with _vfp.activeProject or with "whatever.pjx" to the command line
- Hit enter
It's obviously easier if you exactly know and remember how Thor works, where everything is located and how Project Explorer is called.