saros
saros copied to clipboard
Weird and truncated error message in AddProjectsToSessionWizard
When selecting Create new Directory and that directory/project already exists the displayed error message is
- Truncated and only displayed if you either wait for the tooltip or "scroll" down.
- Contains letters that are not even part of the directory that should be created.
See attached image.

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.
My bad for prematurely closing this with the merged commit.
@srossbach What are your opinions on the remaining issues with the overlong error message?
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.