Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Pop-Up box with FileNotFoundException when including directory #19
When using the
This breaks the typing flow since users have to click away the pop-up in order to be able to type again.
When using the include feature this happens regularly since you typically stop a part of the path trying to remember the rest.
Steps to Reproduce
Eclipse 4.6.0, PlantUML Feature 220.127.116.1158, Linux (Ubuntu)
Also observed in older versions of the plug-in, other versions of Eclipse and on Windows.
I've never seen this, but haven't used include either. I agree a less intrusive message is best, unfortunately there isn't an obvious place to put it, besides in the diagram (like what happens now, if there is a syntax error). My suggestion is to write the stack trace into an image in the diagram, as shown in the screenshot below.
There needs to be an indication that the diagram cannot be generated. This happens now, if you type a file name that doesn't exist at all, but in the "usual" way as with syntax errors: You get an image with the error message. I suggest that the library should do the same with this case, to make it uniform.
There may still be errors that we don't know of, that could be reported as shown above. Summarising:
A new beta is available with better error handling :
Right now, we just catch the exception and generate an error image.
The rendered image also tries to render a class diagram from the error message which looks kind of funny and is probably not intended.
I still get the pop-up when I exchange the