Error-Trace Exploration can't resolve definitions in other modules
See original GitHub issueBug repro steps:
- Open below specs in the TLA Toolbox (tested in version 1.5.6 on Windows 10 64-bit)
- Create a model for the SystemMC spec
- Define MaxCounterValue as 5 (or any number you want), ensure deadlock is being checked
- Run TLC
- When deadlock is reached, open the Error-Trace Exploration window
- Add some expression to check (for example, MaxCounterValue)
- Click “Explore”; the following error box pops up, unable to find the definition of Null:
------------------------------- MODULE System -------------------------------
EXTENDS
Naturals
VARIABLES
Counter
-----------------------------------------------------------------------------
Null == CHOOSE n : n \notin Nat
TypeInvariant ==
/\ Counter \in Nat \cup {Null}
Init ==
/\ Counter = Null
FirstIncrement ==
/\ Counter = Null
/\ Counter' = 0
Increment ==
/\ Counter /= Null
/\ Counter' = Counter + 1
Next ==
\/ FirstIncrement
\/ Increment
=============================================================================
------------------------------ MODULE SystemMC ------------------------------
EXTENDS
Naturals
CONSTANTS
MaxCounterValue
VARIABLES
Counter
ASSUME MaxCounterValue \in Nat
-----------------------------------------------------------------------------
S == INSTANCE System
TypeInvariant ==
/\ S!TypeInvariant
Init ==
/\ S!Init
Next ==
IF Counter = S!Null
THEN S!Next
ELSE
/\ Counter < MaxCounterValue
/\ S!Next
=============================================================================
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
resolve-module-path doesn't load the module #4498 - GitHub
'errortrace) should be #t . However, the implementation of resolve-module-path doesn't ask module-path-index-resolve to load the module.
Read more >Receiving 'Error: Can't resolve <custom_module_name ...
I am attempting to import a module that I have created locally and linked / installed to another module which is built and...
Read more >Racket Mode
As a result, to find a definition, it is necessary to know exactly which identifier is meant — either by expanding the module...
Read more >The TLA Toolbox - Leslie Lamport
View the pretty-printed versions of your modules. Run the TLC model checker. The Toolbox allows you to explorer an error trace produced by ......
Read more >Error: Can't resolve '@nativescript/geolocation' | SAP Community
Hey all, Like others, I've been following the tutorial here: ... ModuleNotFoundError: Module not found: Error: Can't resolve ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@lemmy I checked and can confirm that ALIAS-style trace expressions work perfectly when using definitions from other modules.
@ahelwer Can you check how this is handled by SpecTE?