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

service/dap: use reloaded value #3349

Merged
merged 1 commit into from
Apr 29, 2023
Merged

service/dap: use reloaded value #3349

merged 1 commit into from
Apr 29, 2023

Conversation

suzmue
Copy link
Contributor

@suzmue suzmue commented Apr 28, 2023

The only part of the reloaded value that was used was the Children. This caused a bug where the Time format string was reloaded, but it was not being displayed.

Fixes #3342

The only part of the reloaded value that was used was the
Children. This caused a bug where the Time format string was
reloaded, but it was not being displayed.

Fixes go-delve#3342
@suzmue
Copy link
Contributor Author

suzmue commented Apr 28, 2023

This is a super minimal change to fix the issue. I think we should probably prioritize reloading in the way described in the TODO above the section. I am planning to take a look at that this afternoon.

@suzmue
Copy link
Contributor Author

suzmue commented Apr 28, 2023

Screenshot 2023-04-28 at 3 19 16 PM

@sylr
Copy link
Contributor

sylr commented Apr 28, 2023

Is this normal on ts[0] line Start is shown as *time.Time ?

@suzmue
Copy link
Contributor Author

suzmue commented Apr 28, 2023

Is this normal on ts[0] line Start is shown as *time.Time ?

Fixing the variable at that level would definitely require additional loading logic. We'd have to check if we need to reload a level earlier to make this work I think so deciding when we need to reload would be the biggest obstacle I believe and the potential performance costs of reloading more aggressively.

@aarzilli aarzilli merged commit 9873e0e into go-delve:master Apr 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Time string not always displayed
3 participants