-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Time string not always displayed #3342
Comments
For what it's worth, this also happens on linux/amd64. I'm wondering what should be the expected output, exactly like |
That would be my expectation yes. |
Also, is that normal that |
I think because of the nesting depth those time.Time value don't get loaded immediately and therefore don't get the formatting. |
For the record, looks like dap can be configured so it might interested to add a configuration option like "depth" and a sane default. If the solution sounds ok, I'll work on a PR. |
I'm not sure if the DAP folks actually intend for it to be configurable given https://github.com/go-delve/delve/blob/master/service/dap/server.go#L256. We could experiment with increasing the depth to 2, or maybe this is something better solved on the VSCode side? cc @hyangah |
Looks like this is actually just a bug in server/dap, the variable is loaded correctly but the variable with the loaded information isn't used to format the output. Will send a PR to fix. |
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. This is a very minimal change to get this to work. We should probably also do the TODO at the top of the section. Fixes go-delve#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
Sent a PR for fixing the bug where the time.Time arguments have the values. We also need to address the inconsistency with Interval sometimes having the children loaded and displaying the formatted string in its value and sometimes not. ( I think ideally we will be able to avoid making the depth configurable, so maybe trying to make the depth 2 could be a good way to resolve it. We may be able to be selective about where we increase the depth as well. |
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
dlv version
)?go version
)?Darwin
I'd like to see the Time string in ts[0].Start and ts[0].End.
The text was updated successfully, but these errors were encountered: