New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to create "New detail: Class Diagram" #72
Comments
|
I tried to reproduce your issue on windows and it worked for me. I'll try to reproduce it on a mac to see if it is a mac-specific issue. After the context menu closes, do you have a new diagram visible in the Model Explorer view under the Class Diagram category? (I think that you don't but just to be sure). |
|
Another question (regarding both this bug and bug #71, did you download a Dart Designer bundle or did you install it on an Eclipse? If you did install it on an Eclipse, which version of Eclipse are you using? Are you using the modeling perspective or did you change the perspective? Can you create the diagram if you right click on the Package (under the file project.dartspec in the Model Explorer view (in my screenshot the element "Package Dart Package with the blue triangle)? Does anything appear in the Error Log view? Did you try the creation of this representation before or after encountering the previous bug (#71). Could you try with a freshly started Eclipse while trying not to encountered the other bug. Thanks a lot! |
|
Thanks for looking into it. Regarding your questions: (1) I've downloaded a Dart Designer bundle from https://github.com/dartdesigner/Dart-Designer/releases/tag/v0.4.0 (2) Both bugs occured within the Modelling Perspective (3) I don't have a new diagram visible when the context menu closes. But I have to apologize, there are indeed Errors in Error Log View (I was just checking the log at .metadata/.plugins/org.eclipse.ui.workbench/log). I will paste them in the next comments. (4) When trying to create a Class Diagram by right-clicking on the package in Model Explorer, I get an eternal "Operation in Progress" window (as opposed to seeing nothing at (3)). (5) I was able to reproduce both issues several times, independently, with freshly started Dart Designer and a new, clean workspace directory. |
|
Follow up as stated above. This is the 1st error in Error Log View after right-click New Detail -> Class Diagram: |
|
Follow up as stated above. This is the 2nd error in Error Log View after right-click New Detail -> Class Diagram: |
|
Follow up as stated above. This is the 3rd error in Error Log View after right-click New Detail -> Class Diagram: |
|
Follow up as stated above. This is the 4th error in Error Log View after right-click New Detail -> Class Diagram: |
|
Follow up as stated above. This is the 5th error in Error Log View after right-click New Detail -> Class Diagram: |
|
Follow up as stated above. This is the 6th (and last) error in Error Log View after right-click New Detail -> Class Diagram: |
|
phew. |
|
Thanks for the additional details! To display SVG images, Eclipse uses Apache Batik which uses Apache Xerces. The dependency between Batik and Xerces is supposed to be optional but sometimes it seems to be required. Nobody seems to really know why this issue appear on some specific environment with SVG images. It seems to be a bit complex. Since I am only using one and only one SVG image in the whole application (compared to dozens of png), I will replace this SVG with a png to get rid of this issue. The product is already containing one version of Xerces and I could add other versions (there seems to be two) in the product but I am not sure that it would fix the issue without any side effect. |
Bug-Url: #72 Change-Id: I6784bfc75aa0a73077bb4a95382dab6637637c11
|
I have contributed a fix on the master branch, could you try to install it to see if it fixes your issues. For that, go to Help -> Install New Software -> Add. In the location part of the popup, type "http://dartdesigner.github.io/p2/nightly" without the quotes and then OK. Select the Dart Designer in the main part and then click on "Next" -> "Next" (you may have to accept the license) and "Finish". The new version of Dart Designer will be installed, Eclipse will ask you to restart. Restart and you should be able to tell me if the fix is working. If everything works fine for you after that, I'll publish a version 0.4.1 including this fix. |
|
Update not possible due to conflicting dependencies, see below. Seems the only thing I could do is installing the updated plugin into a freshly downloaded Eclipse – I can try that tomorrow. Cannot complete the install because of a conflicting dependency. |
|
Hi, The Sirius team tries to identify the root of the original issue and we tried to reproduce your problem on Windows, Linux and Mac OS without success. Could you try to use an original Dart Designer (downloaded from the release page) and import the project referenced here. To import the project, just right click in the Model Explorer view and select import, then select "General -> Existing project into the workspace", then select the project in your file system. Once imported, expand the content of the file My.ecore until you see "sampleDiagramWithSVG" then double click on it to open this diagram. It should display only a picture stating that the diagram is empty etc. Thanks |
|
https://bugs.eclipse.org/bugs/show_bug.cgi?id=439095 (and https://bugs.eclipse.org/bugs/show_bug.cgi?id=441755) have been corrected for Sirius 2.0 (released on 2014-10-24) The correction has also been reported (https://bugs.eclipse.org/bugs/show_bug.cgi?id=448495) on the Sirius 1.0.x branch, Sirius 1.0.2 has not been released yet, but the correction is available it the nightly builds (http://download.eclipse.org/sirius/updates/nightly/1.0.x/luna, https://wiki.eclipse.org/Sirius/Update_Sites) Regards, Maxime |



Environment:
DartDesigner MacOS build, OSX 10.9, Java 1.7.0_65
Steps to Reproduce:
Screenshot:

The text was updated successfully, but these errors were encountered: