saros icon indicating copy to clipboard operation
saros copied to clipboard

Weird and truncated error message in AddProjectsToSessionWizard

Open srossbach opened this issue 5 years ago • 3 comments
trafficstars

When selecting Create new Directory and that directory/project already exists the displayed error message is

  1. Truncated and only displayed if you either wait for the tooltip or "scroll" down.
  2. Contains letters that are not even part of the directory that should be created.

See attached image.

wizard_misleading_error_message

srossbach avatar Oct 30 '20 08:10 srossbach

The first issue is easily solvable. I directly used the toString of the IContainer, which includes the type of the resource as part of the path. Instead using getFullPath.toOSString() fixes the issue.

But I am not sure what to do about the size issue. I could shorten the message (which would be kind of hard as I would like to still provide all the necessary information), but this would not really resolve the issue. The issue will still occur with longer paths. I am not sure how to avoid this.

tobous avatar Nov 09 '20 12:11 tobous

My bad for prematurely closing this with the merged commit.

@srossbach What are your opinions on the remaining issues with the overlong error message?

tobous avatar Nov 10 '20 19:11 tobous

I have not found anything regarding the Wizard API that let you give the possibility to specify any hints regarding the sizing of the affected wizard part.

srossbach avatar Nov 13 '20 20:11 srossbach