Skip to content
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

Fix official sample #21

Merged
merged 31 commits into from
Nov 13, 2019
Merged

Fix official sample #21

merged 31 commits into from
Nov 13, 2019

Conversation

jdeantoni
Copy link
Contributor

second attempt :)

this is an alignment of "official" concurrent example with the last gemoc release

@jdeantoni
Copy link
Contributor Author

well...
Erwan was right I used a "git config --global user.email="julien.deantoni@univ-cotedazur.fr" unexpectedly...

So I updated it in the gemoc git folder with the correct identity.
I closed previous PR et did a new one... It seems to be the same problem (maybe because one of the commit still have the wrong committer ID).

@dvojtise not sure to know what is this squash about but If you can accept it when you have time that's perfect. No rush...

I'll try to take care about my git identity in the future....

@dvojtise
Copy link
Contributor

dvojtise commented Oct 7, 2019

the squash and commit is one of the possible actions when accepting a pull request:

  • merge, will take all commits and add all of them to the history
  • squash, rewrite the commits into a single one, doing this implies to rewrite the commit messages to synthesise all the other one. It is them possible to fix the wrong or missing signature in a single commit if I'm sure that you have the ECA 😄

We use squash for most of the GEMOC PR as it creates a cleaner history

@ebousse
Copy link
Contributor

ebousse commented Oct 7, 2019

@dvojtise if I am correct @jdeantoni would simply need to edit the description of the PR and to add the "Signed off" at the end of it? Then when doing the squash, the comment of the PR would become the description of the single resulting commit, which would thus contain the "Signed off" declaration?

@ebousse
Copy link
Contributor

ebousse commented Oct 7, 2019

EDIT: I removed this comment, I solved the error by fixing workspace issues regarding missing source folders :)

@dvojtise
Copy link
Contributor

dvojtise commented Oct 7, 2019

@ebousse I don't think the ECA test is based on PR comment, I think they are based on commit comments, this means that correctly fixing this would require to rewrite the git history and amend the commit comments

Note that when doing the squash: the default commit message proposed by the web UI is a concat of all commit messages (ie. with a lot of signed-of-by that need to be removed and make sure to keep only the last correct one) (editing the PR description has no impact on this)

@ebousse
Copy link
Contributor

ebousse commented Oct 9, 2019

@dvojtise Yes I see, I thought that the PR message was used as the default commit message, but I mixed things up. You are right.

@ebousse
Copy link
Contributor

ebousse commented Oct 9, 2019

@jdeantoni I am struggling to make the TFSM example work. I found three problems so far:

  • the name of the plugin org.eclipse.gemoc.example.moccml..tfsm has an extra dot (not a big deal)
  • the value oftoCCSLQVTOFilePath is not set in the plugin.xml file of org.eclipse.gemoc.example.moccml..tfsm, it needs to be /org.eclipse.gemoc.example.moccml.tfsm.dse/qvto-gen/modeling/TFSM.qvto
  • TFSM.ecl seems to have some problems: first the imports are still using org.gemoc and not org.eclipse.gemoc, second I have a compilatio error on line 28 (res is not recognized)

@ebousse
Copy link
Contributor

ebousse commented Oct 10, 2019

Regarding SigPML, I managed to make a model execution work! (although without animation for some reason, probably unrelated to the DSL definition itself).

A few comments on things I have seen:

  • you can remove guava from the dependencies of org.eclipse.gemoc.example.moccmlsigpml.model,
  • you can probably avoid versionning org.eclipse.gemoc.example.moccmlsigpml.model/bin, and add it in the gitignore,
  • in examples/moccmlSigPML/language_workbench/org.eclipse.gemoc.example.moccmlsigpml.model/.project you can remove the project natures fr.obeo.dsl.viewpoint.nature.modelingproject and org.eclipse.emf.ecoretools.registration.ui.ecoreAutoRegisterNature which point to nothing in today's eclipse versions,
  • in examples/moccmlSigPML/modeling_workbench/org.eclipse.gemoc.example.moccmlsigpml.simple_example/.project you can remove the xtext nature I think, and replace it with org.eclipse.sirius.nature.modelingproject since SigPML is graphical.

@ebousse
Copy link
Contributor

ebousse commented Oct 16, 2019

I made a few commits to your branch to remove all remaining *.class files from the repository, as it made the review of the diff of the PR not always easy to read. I think a lot of these were pushed a very long time ago by mistake.

bin and target are already in the root gitignore
@@ -0,0 +1,5 @@
package org.eclipse.gemoc.example.moccml.tfsm;

public class Activator {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why an activator, if it remains empty?

<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.gemoc.sample.robotml</groupId>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still need RobotML for the TFSM build? (I haven't checked but I wonder)

xtend-gen is present in the root .gitignore, so these files should not
be there
@ebousse
Copy link
Contributor

ebousse commented Oct 16, 2019

And I rapidly did the same cleanup for xtend-gen files. Sorry for making these changes unrelated to the original PR, but it helped me understand the actual changes better + to eliminate the possible cause of a bug.

As shown above, I tried using the "code review" tool of github, but the diff is very long and it slows down my firefox way too much, so I only went through a couple of files :)

@dvojtise
Copy link
Contributor

dvojtise commented Nov 5, 2019

should be handled by #19

@dvojtise dvojtise closed this Nov 5, 2019
@dvojtise dvojtise reopened this Nov 5, 2019
ie.simialr structure as other examples

+ removed extra . in folder name

Signed-off-by: Didier Vojtisek <didier.vojtisek@inria.fr>
@dvojtise
Copy link
Contributor

dvojtise commented Nov 5, 2019

(I moved the tfsm sample to a structure similar to other examples ie. language_workbench subfolder (in order to have room for model examples) )

when I tried to open the projects I have an error on K3RuntimeDataHelper which apprently rely on a generated file org.eclipse.gemoc.example.moccml.tfsm/xdsml-java-gen/oncurrenttfsm/xdsml/api/impl/OncurrentTFSMRTDAccessor.java

but with my version of GEMOC it doesn't generate the expected methods (getcurrentState and getnumberOfTicks)

Did you forget to do a PR that contributes something to the generator ? (most probably in org.eclipse.gemoc.execution.concurrent.ccsljavaxdsml.ui/src/main/java/org/eclipse/gemoc/execution/concurrent/ccsljavaxdsml/ui/builder/GemocLanguageDesignerBuilder.java ? )

Signed-off-by: Didier Vojtisek <didier.vojtisek@inria.fr>
Signed-off-by: Didier Vojtisek <didier.vojtisek@inria.fr>
Signed-off-by: Didier Vojtisek <didier.vojtisek@inria.fr>
Signed-off-by: Didier Vojtisek <didier.vojtisek@inria.fr>
Signed-off-by: Didier Vojtisek <didier.vojtisek@inria.fr>
Signed-off-by: Didier Vojtisek <didier.vojtisek@inria.fr>
Signed-off-by: Didier Vojtisek <didier.vojtisek@inria.fr>
Signed-off-by: Didier Vojtisek <didier.vojtisek@inria.fr>
Signed-off-by: Didier Vojtisek <didier.vojtisek@inria.fr>
Signed-off-by: Didier Vojtisek <didier.vojtisek@inria.fr>
Signed-off-by: Didier Vojtisek <didier.vojtisek@inria.fr>
Signed-off-by: Didier Vojtisek <didier.vojtisek@inria.fr>
Signed-off-by: Didier Vojtisek <didier.vojtisek@inria.fr>
@dvojtise
Copy link
Contributor

dvojtise commented Nov 8, 2019

I think I've fixed TFSM which seem to work now

I've also done some minor corrections in SigPML

I've also fixed the example deployer plugin so it is now in the studio with both TFSM and SigPML

some bugs remains, but they aren't directly due to the examples but to other bugs (bug when doing a clean all, breakpoint management which ideally would require some refactoring, or the fact that the project have 2 natures (concurrent and sequential) cf #24 and eclipse-gemoc/gemoc-studio-modeldebugging#131 eclipse-gemoc/gemoc-studio-modeldebugging#132

@dvojtise dvojtise merged commit 3477250 into master Nov 13, 2019
@dvojtise dvojtise deleted the fixOfficialSample branch November 14, 2019 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants