Skip to content
Snippets Groups Projects
Commit 80631d19 authored by dgelessus's avatar dgelessus
Browse files

Fix :trace sometimes displaying transitions as null

parent 6db07123
No related branches found
No related tags found
No related merge requests found
Pipeline #62875 passed
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
* This is an internal change and should not affect any user-visible behavior. That is, all inputs that were accepted by previous versions should still be accepted - if any previously valid inputs are no longer accepted, this is a bug. * This is an internal change and should not affect any user-visible behavior. That is, all inputs that were accepted by previous versions should still be accepted - if any previously valid inputs are no longer accepted, this is a bug.
* As a side effect, the inspection and code completion features now work better in a few edge cases. * As a side effect, the inspection and code completion features now work better in a few edge cases.
* Fixed a bug where interrupting a command could make the kernel completely stop responding, requiring a manual restart. * Fixed a bug where interrupting a command could make the kernel completely stop responding, requiring a manual restart.
* Fixed the `:trace` command sometimes displaying transitions as `null`.
## [1.2.0](https://www3.hhu.de/stups/downloads/prob2-jupyter/prob2-jupyter-kernel-1.2.0-all.jar) ## [1.2.0](https://www3.hhu.de/stups/downloads/prob2-jupyter/prob2-jupyter-kernel-1.2.0-all.jar)
......
...@@ -4,6 +4,7 @@ import java.util.List; ...@@ -4,6 +4,7 @@ import java.util.List;
import com.google.inject.Inject; import com.google.inject.Inject;
import de.prob.animator.domainobjects.FormulaExpand;
import de.prob.statespace.AnimationSelector; import de.prob.statespace.AnimationSelector;
import de.prob.statespace.Trace; import de.prob.statespace.Trace;
import de.prob.statespace.Transition; import de.prob.statespace.Transition;
...@@ -66,7 +67,7 @@ public final class TraceCommand implements Command { ...@@ -66,7 +67,7 @@ public final class TraceCommand implements Command {
final List<Transition> transitionList = trace.getTransitionList(); final List<Transition> transitionList = trace.getTransitionList();
for (int i = 0; i < transitionList.size(); i++) { for (int i = 0; i < transitionList.size(); i++) {
final Transition transition = transitionList.get(i); final Transition transition = transitionList.get(i).evaluate(FormulaExpand.TRUNCATE);
sbPlain.append('\n'); sbPlain.append('\n');
sbPlain.append(i); sbPlain.append(i);
sbPlain.append(": "); sbPlain.append(": ");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment