Error while creating Acceleo project [message #1816243] |
Thu, 24 October 2019 15:12  |
Eclipse User |
|
|
|
I followed all the steps in the tutorial below to create my first project in Acceleo:
https://wiki.eclipse.org/Acceleo/Getting_Started
Everything is OK and i have started writting my templates
The probleme is when i run the project i got the errors :
-An exception occurred while dispatching debug events.
-Problems occurred when invoking code from plug-in: "org.eclipse.debug.core".
Note that i followed all the steps in the tutorial , i do all necessary modifications in the generate and manifeste file
I can't understand what is the cause of those errors and i prefer to fix the problem before i complete the writting of my templates.
I am really confused, waiting for your suggestions
In advance thanks for your help
Attachment: Capture.PNG
(Size: 87.02KB, Downloaded 156 times)
|
|
|
Re: Error while creating Acceleo project [message #1816384 is a reply to message #1816243] |
Mon, 28 October 2019 20:31   |
Eclipse User |
|
|
|
Hi
Your report contains very little information beyond "it doesn't work". Which of "all the steps" failed? How did you do the modifications? What versions are you using? Your screen shot suggests Acceleo 3.3.0 which is seriously old. 3.7.8 is current. Java 11 suggests a much more recent Eclipse.
org.eclipse.debug.core suggests you were doing some debugging which is certainly not an early step. You can find threads identifying debugging problems.
You might find https://wiki.eclipse.org/OCL/ForumNetiquette helpful.
Regards
Ed Willink
|
|
|
Re: Error while creating Acceleo project [message #1816385 is a reply to message #1816384] |
Mon, 28 October 2019 21:30   |
Eclipse User |
|
|
|
Hello,
Thanks Ed Willink for your reply.
I am using the acceleo 3.7.8, i didn't notice that the version mentionned in the manifeste file is 3.3.0. I corrected it imediately.
Before writting my templates i tried first to generate a file which contains the name of my model and a simple text" I hope it works".
The file was generated correctly. When i use Java strategy for the generation i don't have any error but when i use Acceleo Plug in strategy i have errors.
In the manifeste file i added:
- org.eclipse.uml2.uml.resources,
-Automatic-Module-Name: IPselection
In the generate.java
- i discommented : UMLResourcesUtil.init(resourceSet)
- i changed @generated to @ NOT generated
also in the class path i added the bin directory
Best regards
Attachment: error12.txt
(Size: 1.15KB, Downloaded 153 times)
Attachment: error22.txt
(Size: 1.18KB, Downloaded 140 times)
|
|
|
|
Re: Error while creating Acceleo project [message #1816429 is a reply to message #1816385] |
Tue, 29 October 2019 11:27   |
Eclipse User |
|
|
|
rima learnerinf wrote on Mon, 28 October 2019 17:30
I am using the acceleo 3.7.8, i didn't notice that the version mentionned in the manifeste file is 3.3.0. I corrected it imediately.
It probably doesn't need correcting. To a casual reader the 3.3.0 is ambiguous as exact/minimum/compatible match. My dependencies are always two-ended such as bundle-version="[2.9.0,3.0.0)" . If I read the spec or was able to load your MANIFEST.MF, I could tell what it actually specifies.
Regards
Ed Willink
|
|
|
|
Powered by
FUDForum. Page generated in 0.03594 seconds