Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Updated to 2021-03 and lost C++ code generation!
Updated to 2021-03 and lost C++ code generation! [message #1840800] Sat, 24 April 2021 18:00 Go to next message
Manuel Malagon is currently offline Manuel MalagonFriend
Messages: 81
Registered: December 2011
Member
I don't know what is going on. I updated my eclipse installation to 2021-03 and installed papyrus from https://download.eclipse.org/modeling/mdt/papyrus/updates/releases/2021-03/ but I can't generate C++ code anymore.

Is there something missing? Eclipse is telling me that everything is installed.
index.php/fa/40385/0/

What is going on?
Re: Updated to 2021-03 and lost C++ code generation! [message #1840820 is a reply to message #1840800] Mon, 26 April 2021 07:00 Go to previous messageGo to next message
Yoann Farré is currently offline Yoann FarréFriend
Messages: 235
Registered: November 2017
Senior Member
Hello,
The C++ code generation feature for a Papyrus model comes with the Papyrus Software Designer module. As far as I know, you'll have to install this module to be able to generate C++ code.
HTH.
Yoann.
Re: Updated to 2021-03 and lost C++ code generation! [message #1840838 is a reply to message #1840820] Mon, 26 April 2021 13:06 Go to previous messageGo to next message
Manuel Malagon is currently offline Manuel MalagonFriend
Messages: 81
Registered: December 2011
Member
Yoann Farré wrote on Mon, 26 April 2021 03:00
Hello,
The C++ code generation feature for a Papyrus model comes with the Papyrus Software Designer module. As far as I know, you'll have to install this module to be able to generate C++ code.
HTH.
Yoann.


Yoann

But why wasn't that option presented along with all others when I installed papyrus v2021-03? And how do I install the Software Designer module if it is not found in 2021-03 releases?
Re: Updated to 2021-03 and lost C++ code generation! [message #1840840 is a reply to message #1840820] Mon, 26 April 2021 13:35 Go to previous messageGo to next message
Manuel Malagon is currently offline Manuel MalagonFriend
Messages: 81
Registered: December 2011
Member
Never mind I figured it out.

I use this link to download it directly from eclipse:

https://download.eclipse.org/modeling/mdt/papyrus/components/designer/

Is that ok? I mean, is this the link I should use?
Re: Updated to 2021-03 and lost C++ code generation! [message #1840884 is a reply to message #1840840] Wed, 28 April 2021 07:30 Go to previous messageGo to next message
Yoann Farré is currently offline Yoann FarréFriend
Messages: 235
Registered: November 2017
Senior Member
Hello,

Sorry for the delay, I just see your message.

You can install Software Designer from the update site you mentioned or from a nightly update site. I personally use the following link : https://ci.eclipse.org/papyrus/view/Designer/job/papyrus-designer-2020-12/lastSuccessfulBuild/artifact/releng/org.eclipse.papyrus.designer.p2/target/repository/
It is indicated as the nightly update site on the CI website of the project : https://ci.eclipse.org/papyrus/job/papyrus-designer-2020-12/
The link you use is valid too but it doesn't include the last developments.

HTH.
Yoann.
Re: Updated to 2021-03 and lost C++ code generation! [message #1840894 is a reply to message #1840884] Wed, 28 April 2021 10:21 Go to previous messageGo to next message
Ansgar Radermacher is currently offline Ansgar RadermacherFriend
Messages: 461
Registered: March 2011
Location: Paris Saclay, France
Senior Member
Thanks for answering Yoann,

I'm currently preparing a new release, but it has not been done yet. In the meantime, please use the nightly update site of Papyrus SW designer, as indicated by Yoann. The release is currently not working with 2020-12 or newer.
Re: Updated to 2021-03 and lost C++ code generation! [message #1840984 is a reply to message #1840894] Thu, 29 April 2021 19:42 Go to previous messageGo to next message
Manuel Malagon is currently offline Manuel MalagonFriend
Messages: 81
Registered: December 2011
Member
I can't install from https://ci.eclipse.org/papyrus/view/Designer/job/papyrus-designer-2020-12/lastSuccessfulBuild/artifact/releng/org.eclipse.papyrus.designer.p2/target/repository/

I'm getting this:

An error occurred while collecting items to be installed
session context was:(profile=_home_m4l490n_eclipse_cpp-2021-03_eclipse, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,org.aspectj.runtime,1.9.6.202103162301
No repository found containing: osgi.bundle,org.eclipse.papyrus.moka.engine.schedulable,4.1.0.202103181239
No repository found containing: osgi.bundle,org.eclipse.papyrus.moka.fuml.interfaces,4.1.0.202103181239
No repository found containing: osgi.bundle,org.eclipse.papyrus.moka.kernel,4.1.0.202103181239
No repository found containing: osgi.bundle,org.eclipse.papyrus.moka.kernel.animation,4.1.0.202103181239
No repository found containing: osgi.bundle,org.eclipse.papyrus.moka.kernel.debug,4.1.0.202103181239
No repository found containing: osgi.bundle,org.eclipse.papyrus.moka.kernel.scheduling,4.1.0.202103181239
No repository found containing: osgi.bundle,org.eclipse.papyrus.moka.pscs.interfaces,4.1.0.202103181239
No repository found containing: osgi.bundle,org.eclipse.papyrus.moka.pssm.interfaces,4.1.0.202103181239
No repository found containing: osgi.bundle,org.eclipse.papyrus.moka.tracepoint.service,4.1.0.202103181239
No repository found containing: osgi.bundle,org.eclipse.papyrus.moka.utils,4.1.0.202103181239
No repository found containing: osgi.bundle,org.eclipse.papyrus.moka.utils.ui,4.1.0.202103181239

Does that mean I have to use eclipse 2020-12?
Re: Updated to 2021-03 and lost C++ code generation! [message #1841001 is a reply to message #1840984] Fri, 30 April 2021 07:08 Go to previous messageGo to next message
Ansgar Radermacher is currently offline Ansgar RadermacherFriend
Messages: 461
Registered: March 2011
Location: Paris Saclay, France
Senior Member
Hi,

I can install Designer in a fresh eclipse-2021-03 (tested today). I tested whether the problem is caused by a previous attempt to install the designer release: I could install from the nightly site afterwards. As the problem is related to MOKA (on which Designer depends), you can remove any existing MOKA installation and update sites and retry. You can also explicitly add the nightly MOKA update site (https://ci.eclipse.org/papyrus/job/papyrus-moka-master/lastSuccessfulBuild/artifact/releng/org.eclipse.papyrus.moka.p2/target/repository/) but normally Designer should take care of that.

It's probably easier to retry with a fresh 2021-03 version.

[Updated on: Fri, 30 April 2021 07:44]

Report message to a moderator

Re: Updated to 2021-03 and lost C++ code generation! [message #1841045 is a reply to message #1841001] Sat, 01 May 2021 16:51 Go to previous messageGo to next message
Manuel Malagon is currently offline Manuel MalagonFriend
Messages: 81
Registered: December 2011
Member
Ansgar

Changing the MOKA update site on a fresh 2021-03 install allowed me to install from the papyrus nightly update site.

It was https://ci.eclipse.org/papyrus/job/papyrus-moka-master/lastSuccessfulBuild/artifact/releng/org.eclipse.papyrus.moka.p2/target/repository/ when I received the errors and couldn't install but changing it to the one you specify fixed the installation.

I can now generate the C++ code but I can't open a CDT editor. I'm getting this in the error log view
index.php/fa/40449/0/

I attach the full error log for reference and my eclipse configurations if that's useful.
  • Attachment: cantOpenCDT.jpeg
    (Size: 48.00KB, Downloaded 278 times)
  • Attachment: .log
    (Size: 16.23KB, Downloaded 55 times)
  • Attachment: eclipse.conf
    (Size: 0.99MB, Downloaded 55 times)
Re: Updated to 2021-03 and lost C++ code generation! [message #1841160 is a reply to message #1841045] Wed, 05 May 2021 10:23 Go to previous messageGo to next message
Ansgar Radermacher is currently offline Ansgar RadermacherFriend
Messages: 461
Registered: March 2011
Location: Paris Saclay, France
Senior Member
Manuel,

the log was indeed helpful, thanks! A "null" name is passed to obtain a project from the workspace which causes the exception. It seems the problem is the following: the "Project" stereotype is applied, but the parameter "projectName" is not assigned. This is "legal" and should normally indicate to use the default project name, but the current code uses the attribute even if it is unset (i.e. null). Can you please confirm by un-applying the Project stereotype?

A bit off-topic: I could not reproduce several earlier exceptions "contributed an invalid extension for org.eclipse.papyrus.infra.properties.contexts"
Re: Updated to 2021-03 and lost C++ code generation! [message #1841161 is a reply to message #1841160] Wed, 05 May 2021 10:41 Go to previous messageGo to next message
Ansgar Radermacher is currently offline Ansgar RadermacherFriend
Messages: 461
Registered: March 2011
Location: Paris Saclay, France
Senior Member
I've created bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=573374

Btw. the behavior of the synchronisation with the editor has changed with a recent commit for bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=573160

It's described on the WIKI and should avoid an unwanted signature modification:
https://wiki.eclipse.org/Papyrus/Codegen/Cpp_description#CDT_integration

[Updated on: Wed, 05 May 2021 10:45]

Report message to a moderator

Re: Updated to 2021-03 and lost C++ code generation! [message #1841176 is a reply to message #1841160] Wed, 05 May 2021 16:53 Go to previous messageGo to next message
Manuel Malagon is currently offline Manuel MalagonFriend
Messages: 81
Registered: December 2011
Member
Ansgar Radermacher wrote on Wed, 05 May 2021 06:23
Can you please confirm by un-applying the Project stereotype?


Ansgar,

I removed the Project stereotype and the CDT can be opened just fine (after re-generating the code without the Project Stereotype).

I tested again with the stereotype and filled all three fields, so there was no null fields, and it doesn't work either. The Project stereotype is very broken. It used to work fine.

Thanks for creating the bug and following up on this. I need the Project stereotype is something really important and useful.

Also, the project generation doesn't work even if you don't have the Project stereotype and you modify either the default name or location where the project will be generated. Maybe you can perform that test on that scenario

I attach the logs for all I tried since I read this last message of yours in case it is useful.
Re: Updated to 2021-03 and lost C++ code generation! [message #1841217 is a reply to message #1841176] Thu, 06 May 2021 16:52 Go to previous messageGo to next message
Ansgar Radermacher is currently offline Ansgar RadermacherFriend
Messages: 461
Registered: March 2011
Location: Paris Saclay, France
Senior Member
Can you please updated with the nightly to give feedback on the patch already applied.
I can not reproduce that filling the three fields causes a problem.

>Also, the project generation doesn't work even if you don't have the Project stereotype and you modify either the default name or location where the project will be generated. Maybe you can perform that test on that scenario
Can you please detail what you did? I cannot reproduce a problem when changing either the suffix for body files or the prefix for generated projects.

Re: Updated to 2021-03 and lost C++ code generation! [message #1841220 is a reply to message #1841217] Thu, 06 May 2021 20:38 Go to previous messageGo to next message
Manuel Malagon is currently offline Manuel MalagonFriend
Messages: 81
Registered: December 2011
Member
Ansgar Radermacher wrote on Thu, 06 May 2021 12:52
Can you please updated with the nightly to give feedback on the patch already applied.


I can't see any updates. I'm using this URL https://ci.eclipse.org/papyrus/view/Designer/job/papyrus-designer-2020-12/lastSuccessfulBuild/artifact/releng/org.eclipse.papyrus.designer.p2/target/repository/

I attach my installation details for you to see if I'm running the latest version.

Quote:
Can you please detail what you did? I cannot reproduce a problem when changing either the suffix for body files or the prefix for generated projects.


Never mind, please ignore that. I should have gotten confused. I was trying to reproduce this and I don't see it. Maybe I did something wrong before. I can generate a project just fine without the Project stereotype.
Re: Updated to 2021-03 and lost C++ code generation! [message #1841236 is a reply to message #1841220] Fri, 07 May 2021 11:34 Go to previous messageGo to next message
Ansgar Radermacher is currently offline Ansgar RadermacherFriend
Messages: 461
Registered: March 2011
Location: Paris Saclay, France
Senior Member
Just execute a "Help -> Check for Updates".
Re: Updated to 2021-03 and lost C++ code generation! [message #1841240 is a reply to message #1841236] Fri, 07 May 2021 13:01 Go to previous message
Manuel Malagon is currently offline Manuel MalagonFriend
Messages: 81
Registered: December 2011
Member
I did, and I'm getting this
index.php/fa/40471/0/

With these available software sites
index.php/fa/40472/0/
Previous Topic:Installing Moka
Next Topic:SysML diagram creation "frozen" on Papyrus 5.2.0
Goto Forum:
  


Current Time: Thu Apr 25 21:04:36 GMT 2024

Powered by FUDForum. Page generated in 0.04077 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top