ProjectExplorer icon indicating copy to clipboard operation
ProjectExplorer copied to clipboard

Project Explorer doesn't work from Thor

Open cwollenhaupt opened this issue 4 months ago • 0 comments

📝 Provide detailed reproduction steps (if any)

  1. Navigate to a folder that has a project but no solution. Open the project. Make sure, no solution file is in the path
  2. 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

  1. Hit Enter

✔️ Expected result

Since there is no solution in the folder, Project Explorer should do one of two things:

  1. 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.
  2. 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

  1. Go to the Project Explorer repository on GitHub (might require Google to find it)
  2. Find the white paper in the Readme.MD
  3. Read the first four pages of the white paper to figure out how to call it
  4. Search the entire Thor folder for everything that has "Project Explorer" in it
  5. Figure out that "Thor_Tool_ProjectExplorer.prg" is the code that is called from the menu
  6. Open the prg and copy the line in DoTools into the command window
  7. Add with _vfp.activeProject or with "whatever.pjx" to the command line
  8. 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.

cwollenhaupt avatar Oct 10 '24 08:10 cwollenhaupt