eclipse-gemoc / eclipse-gemoc/gemoc-studio-modeldebugging

Sirius animator view does not refresh the "current instruction" when clicking in the stack view

Open
#56 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
6
Forks
14
PR merge metrics
No merged PRs in 30d

Description

The "current instruction" service is supposed to change according to the selected element in the stack view (see [AbstractGemocDebuggerServices.java](https://github.com/eclipse/gemoc-studio-modeldebugging/blob/master/framework/execution_framework/plugins/org.eclipse.gemoc.executionframework.extensions.sirius/src/org/eclipse/gemoc/executionframework/extensions/sirius/services/AbstractGemocDebuggerServices.java) and [AbstractDSLDebuggerServices.java](https://github.com/eclipse/gemoc-studio-modeldebugging/blob/master/simulationmodelanimation/plugins/org.eclipse.gemoc.dsl.debug.ide.sirius.ui/src/org/eclipse/gemoc/dsl/debug/ide/sirius/ui/services/AbstractDSLDebuggerServices.java))

This is particularly visible in language having both xtext and sirius concrete syntaxes (such as K3FSM official example) since clicking in the stack correctly set the line in the xtext editor but does not change the color in sirius. (Not: The color does changes but only when stepping and is thus mostly incorrect)

Step to reproduce:
* install K3FSM example
* debug down to "transition.fire()" and click in the stack view

(note: "current instruction" must not be confused with "hasbeenanimated" which corresponds to the latest element called)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with AbstractGemocDebuggerServices.java and AbstractDSLDebuggerServices.java, then reproduce the issue with the K3FSM example by debugging to transition.fire() and clicking an item in the stack view. Compare the selected instruction in the Xtext editor with the Sirius animator view. Done means the Sirius current-instruction color refreshes to match the selected stack element, independently of stepping or hasbeenanimated.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.