chocolatey / ChocolateyGUI

A delicious GUI for Chocolatey
https://docs.chocolatey.org/en-us/chocolatey-gui/
Apache License 2.0
1.65k stars 251 forks source link

Should be able to copy the text of failure messages #805

Open eyalroz opened 3 years ago

eyalroz commented 3 years ago

Currently, when you get a failure message - e.g. a package update failure message - you cannot select and copy the text in the dialog. That is inconvenient, and particularly troublesome for getting support: Both in order to search for relevant substrings, and to provide the error message text to a supporting person.

punker76 commented 3 years ago

@eyalroz The message text inside the message dialog can be copied with the standard windows key short cut Ctrl+C. /cc @gep13 Is this good enough or should we add a button or context menu to allow that?

eyalroz commented 3 years ago

@punker76 : But Ctrl+C copies the selection, and I'm complaining about non-selectability. Maybe I'm missing something?

punker76 commented 3 years ago

@eyalroz You can use Ctrl+C without selecting any text after the dialog came up.

punker76 commented 3 years ago

@eyalroz Here is an example. If you use Ctrl+C when this message dialog came up you will get the same in the clipboard.

image

Failed to install package "glyphr-studio-desktop", version "0.5.6".
Error: ERROR: Running ["C:\Users\jkarger\AppData\Local\Temp\chocolatey\glyphr-studio-desktop\0.5.6\Glyphr.Studio.Setup.0.5.6.exe" /S /nolaunch ] was not successful. Exit code was '-1073741819'. See log for possible error messages.
The install of glyphr-studio-desktop was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\glyphr-studio-desktop\tools\chocolateyinstall.ps1'.
 See log for details.

Chocolatey installed 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
 - glyphr-studio-desktop (exited -1073741819) - Error while running 'C:\ProgramData\chocolatey\lib\glyphr-studio-desktop\tools\chocolateyinstall.ps1'.
 See log for details.
eyalroz commented 3 years ago

Ok... I guess it's the intuition of "if you can't select it, you can't copy it".

punker76 commented 3 years ago

@eyalroz This functionality comes with MahApps itself. I'm with you that we should make this message dialog a little bit better to help users.

eyalroz commented 3 years ago

@punker76 : "MahApps"? You mean, this?

Anyway, an effective, if not super-elegant improvement AFAIK is adding another button near 'OK' which says 'Copy Message'.

It would also not hurt if files and URLs would be "linkified", so that clicking them would open a viewer or editor.