DPM icon indicating copy to clipboard operation
DPM copied to clipboard

Dock the DPM Messages Window

Open malcolmgroves opened this issue 1 year ago • 3 comments

I saw in the ADUG video from a few years ago that you had the DPM Messages window docked. However, regardless of what modifier key incantations I make I can't get it to dock.

Am I missing something obvious.

Cheers Malcolm

malcolmgroves avatar Jun 20 '24 01:06 malcolmgroves

I did have it using the IDE Messages window, however there is no way (that I could find at least) to make it show up before a project is loaded. Since we're doing things during the project load process I wanted to see the log - that's why I added the log window. I guess we could just use that for restore during project load and use the messages window after that.

vincentparrett avatar Jun 20 '24 07:06 vincentparrett

Ah, ok. At least I can stop trying different approaches to getting it to dock.

It was actually the project load window that I was trying to dock, as it's a little distracting popping up. But if that's how it needs to be, it's not a deal breaker.

So the issue was the messages that needed to be logged prior to Project Load? Is there ever a scenario where the Project would not load and you'd need to see those messages? Or is it just that at the time you need to log them the Messages window is not available? Just wondering if they could be logged to a temp list and held until the Messages view is available, then dumped out before further logging.

malcolmgroves avatar Jun 21 '24 00:06 malcolmgroves

Just realised I never answered the question above.

Messages need to be logged during project load - package restoration might fail, for example

  • if the package is not available on any of the sources
  • if the package reference is invalid (manually edited dproj)
  • if package compilation fails
  • if a package dependency conflict occurs.

We don't stop the project from loading when a failure occurs.

Also if the package is not already in the package cache (for example loading project on new dev machine or CI agent) then compilation may take some time (Spring4D for example takes a while with older compiler versions) - we need to show the dev that something is happening and the IDE hasn't hung.

I would love to find a cleaner solution to the logging - but that's an improvement for further down the track.

vincentparrett avatar Jul 22 '24 04:07 vincentparrett