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
Evaluation errors now show toast notification while debugging #4930
Comments
Happens on latest, but not in stable 3.2. Removing |
Looks like there may be two uses of But also another one here, where the field not being specified does not default to true: I think this error is happening because of the second one, so setting I think we should revert this change in DAP. @chingjun do you have more details on what the other editor/tool was that motivated this change? My interpretation now is that "showError" means to show the user the error as if it's something they care about generally (eg. the debug session is broken) whereas most of our errors should only be shown in the context where the request was sent (eg. if an evaluation/watch fails, show the error inline, but don't show an additional popup/UI for the error). (fyi @bkonyi @christopherfujino - we might get reports about this but I don't know that it's severe enough to cherry-pick) |
A related issue about some of this confusion at microsoft/vscode#180488 too |
In the other tool, the DAP messages are parsed by go-dap, which defaults the field to This was problematic when it failed to launch a debugging session, the error was silently dropped without any (obvious) visual indicator to the user. Since the tools are being inconsistent, what do you think if we have two different subclass for |
It would be nice to try and get the tools to align (to be honest, right now I don't know what values we want.. in some cases I suspect we might want I suspect in the short term we won't have any answers (and any changes to either tool will be even further out) so I think having another class (or a flag on the adapter that can be set) probably makes sense. I'm not sure which works best because I'm not certain how the adapter is created internally. |
As a quick fix to stop this, I'm going to force |
When an evaluation fails, we now get the VS Code toast in the corner:
This can be quite annoying if you have things in your watch window. I wonder if it's related to https://dart-review.googlesource.com/c/sdk/+/339741 ?
The text was updated successfully, but these errors were encountered: