Comments (6)
Sorry I spoke too fast. It does work for defined parameterless operators. If I define Votep1 == vote[p1]
in my spec, then watching Votep1
works.
from vscode-tlaplus.
Indeed, variables don't work as watch expressions. I was assuming that users would prefer to see the variables in the debugger's "View" section. Can you explain why that's not satisfactory? Please try the next nightly that includes tlaplus/tlaplus@503a1e4
from vscode-tlaplus.
Thanks! Now it works for variables but seemingly not anything else (this is strictly better than before, where didn't work at all). Let's say I add the watch expression vote[p1]
, where p1
is a model value, then I only get vote[p1]:
with nothing after.
By the way, I think it's nice to be able to watch a variable as it's more readable than have to open up the state and scroll to find the variable of interest.
from vscode-tlaplus.
Closing, hoping my commit addresses your itch. By the way, Watch expressions don't support anything that requires parsing such as vote[p1]
. :-(
from vscode-tlaplus.
Thanks! Maybe just displaying vote[p1]: unsupported expression
would help users.
from vscode-tlaplus.
Do you want to provide a patch? :-)
from vscode-tlaplus.
Related Issues (20)
- Show model/spec name in VSCode status bar
- "Check Again" no-op if TLA+ debugger currently running HOT 1
- Error-Trace modification/addition annotations broken HOT 6
- Check model with TLC is a no-op if there is no PlusCal in the file HOT 2
- Check Again should reuse the current window HOT 3
- Add Wiki documentation for TLC options HOT 3
- Using the extension with remote-ssh HOT 1
- "Output" tab on top of "Errors" tab
- Rename second column of states table from "Diameter" to "Depth" HOT 1
- The `tlaplus.tlaps.check-step` key-binding breaks VSCode's "go to line number" binding HOT 2
- Is there a way to add invariants as in the GUI? HOT 3
- LSP: Document annotations are sometimes lost. HOT 2
- LSP: TLAPS integration makes the IDE crash sometimes. HOT 1
- LSP: Proof step decorations look too distractive. HOT 1
- LSP: Add option to download the TLAPM/LSP.
- Merge "alygin.vscode-tlaplus" and "alygin.vscode-tlaplus-nightly" on Marketplace HOT 3
- Support ANSI escape sequence in trace explorer web view HOT 2
- LSP: Share module search paths between the TLAPS and SANY. HOT 4
- VSCode status panel stuck in computing initial states when using simulation mode HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-tlaplus.