question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Annotation variables/Better support for view maps

See original GitHub issue

It’d be awfully useful to be able to annotate transitions with a string (or other expression) to provide some extra context when interpreting error traces. This is particularly true when using PlusCal, since it takes considerable effort to link the transitions in an error trace back to the original PlusCal code.

It is clearly possible to add an annotation variable and set it to a new value on each transition, but this can make the state space significantly larger: it separates out otherwise-equivalent states at which TLC arrived by distinct paths.

One possible solution could be the ability to mark a variable as “irrelevant to state equivalence”, avoiding the increase in state space size. I see that this feature would introduce a risk of restricting the state space exploration, if such a variable were ever read, but I’m not sure if that’s a big problem or not.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
lemmycommented, Apr 8, 2018

A view can already be declared and activated on the advanced model editor page (enter its name into the view box and pass “-view” parameter to TLC). This is one area that could be enhanced at the Toolbox level.

Another enhancement would be for TLC or the PlusCal translator to be more clever when it comes to naming/generating actions.

0reactions
lemmycommented, Apr 4, 2019

@DaveCTurner Please have a look at #267 with which it should be possible to add an “annotation variable” to a trace without increasing the model’s state space.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Display geodatabase annotation—ArcGIS Pro | Documentation
When displaying geodatabase annotation with other layers, you can apply variable-depth masking to hide parts of layers that are drawn under the annotation....
Read more >
Annotating Maps - Apple Developer
Annotation views provide built-in dragging support, which makes it very easy to drag annotations around the map and to ensure that the ...
Read more >
Add Annotations - Tableau Help
You can add annotations to a visualization to call out a specific mark, a specific point, such as a location on a map,...
Read more >
Understanding type annotation in Python - LogRocket Blog
With type hints, you can annotate variables and functions with datatypes. Tools like mypy, pyright, pytypes, or pyre perform the functions ...
Read more >
typing — Support for type hints — Python 3.11.1 documentation
These include: PEP 526: Syntax for Variable Annotations. Introducing syntax for annotating variables outside of function definitions, and ClassVar.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found