Giter Site home page Giter Site logo

Comments (6)

nano-o avatar nano-o commented on May 24, 2024 1

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.

lemmy avatar lemmy commented on May 24, 2024

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

IState-level watch expressions

from vscode-tlaplus.

nano-o avatar nano-o commented on May 24, 2024

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.

lemmy avatar lemmy commented on May 24, 2024

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.

nano-o avatar nano-o commented on May 24, 2024

Thanks! Maybe just displaying vote[p1]: unsupported expression would help users.

from vscode-tlaplus.

lemmy avatar lemmy commented on May 24, 2024

Do you want to provide a patch? :-)

https://github.com/tlaplus/tlaplus/blob/503a1e483a1909e15fe027043a4db719c8ad8021/tlatools/org.lamport.tlatools/src/tlc2/debug/TLCStackFrame.java#L536-L563

from vscode-tlaplus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.