Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variables should be updated after session.evaluate() or repl #936

Open
domi-eck opened this issue Apr 27, 2023 · 1 comment
Open

Variables should be updated after session.evaluate() or repl #936

domi-eck opened this issue Apr 27, 2023 · 1 comment

Comments

@domi-eck
Copy link

Problem Statement

The variables in my widgets.scope or nvim-dap-text are not updated, if i changed them with the repl or with session.evaluate().
But they get updated, if do one further debuggin step.

I think the current behavior is confusing, because the shown variables are wrong after a repl command or a session.evaluate().

Possible Solutions

Is there an API function to update this variables and an API call to check if some statements were inserted in the repl?

Considered Alternatives

No response

@mfussenegger
Copy link
Owner

This is a bit tricky as the client doesn't know for sure if an evaluate is changing values or not.
The scopes widget uses the cached variables and they're currently only updated on a new stopped event.

It would be possible to update them on each evaluate too but I kinda don't want to have to pay the costs for that given how often it's not needed.

Might make this configurable but would like to see more feedback about this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants