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

src/debugAdapter: suppress error pop-up for failed watch expression evaluation #196

Closed
wants to merge 3 commits into from

Conversation

polinasok
Copy link
Contributor

Watch expressions are repeated over and over again while the program is running, pausing, continuing, etc, and the result is always displayed and continuously refreshed under WATCH. Unlike other types of evaluations (e.g. in REPL, where one expression is evaluated at a time, and the error can be buried among logging messages), there is no advantage to also showing the same error in a pop-up box.

Fixes #143

@googlebot googlebot added the cla: yes Used by googlebot to label PRs as having a valid CLA. The text of this label should not change. label Jun 9, 2020
@gopherbot
Copy link
Collaborator

This PR (HEAD: bf1ce35) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/vscode-go/+/236999 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link
Collaborator

Message from Gobot Gobot:

Patch Set 1:

Congratulations on opening your first change. Thank you for your contribution!

Next steps:
A maintainer will review your change and provide feedback. See
https://golang.org/doc/contribute.html#review for more info and tips to get your
patch through code review.

Most changes in the Go project go through a few rounds of revision. This can be
surprising to people new to the project. The careful, iterative review process
is our way of helping mentor contributors and ensuring that their contributions
have a lasting impact.


Please don’t reply on this GitHub thread. Visit golang.org/cl/236999.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Collaborator

This PR (HEAD: 3f528ce) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/vscode-go/+/236999 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link
Collaborator

Message from Hyang-Ah Hana Kim:

Patch Set 2:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/236999.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Collaborator

This PR (HEAD: 9a52492) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/vscode-go/+/236999 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link
Collaborator

Message from Polina Sokolova:

Patch Set 3:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/236999.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Collaborator

Message from Rebecca Stambler:

Patch Set 3:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/236999.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Collaborator

Message from Hyang-Ah Hana Kim:

Patch Set 3: Code-Review+2

Thanks - and the lint error was posted in the checks linked in the github PR.


Please don’t reply on this GitHub thread. Visit golang.org/cl/236999.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Collaborator

Message from Polina Sokolova:

Patch Set 3:

Patch Set 3: Code-Review+2

Thanks - and the lint error was posted in the checks linked in the github PR.

Yup, I did see it in the morning when I logged on again, but not in the middle of the night when I was in a hurry to go to bed. There is often a lag with these checks, and it is easy to forget to come back to check. Hence the suggestion to also explicitly make this part of preparing the PR for review.


Please don’t reply on this GitHub thread. Visit golang.org/cl/236999.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Collaborator

Message from Rebecca Stambler:

Patch Set 3:

Patch Set 3:

Patch Set 3: Code-Review+2

Thanks - and the lint error was posted in the checks linked in the github PR.

Yup, I did see it in the morning when I logged on again, but not in the middle of the night when I was in a hurry to go to bed. There is often a lag with these checks, and it is easy to forget to come back to check. Hence the suggestion to also explicitly make this part of preparing the PR for review.

It will be mentioned in the contribution guide when CL 237257 is merged.


Please don’t reply on this GitHub thread. Visit golang.org/cl/236999.
After addressing review feedback, remember to publish your drafts!

gopherbot pushed a commit that referenced this pull request Jun 10, 2020
…valuation

Watch expressions are repeated over and over again while the program is running, pausing, continuing, etc, and the result is always displayed and continuously refreshed under WATCH. Unlike other types of evaluations (e.g. in REPL, where one expression is evaluated at a time, and the error can be buried among logging messages), there is no advantage to also showing the same error in a pop-up box.

Fixes #143

Change-Id: I026955980d22e955e4af933bc68256dc320c3f56
GitHub-Last-Rev: 9a52492
GitHub-Pull-Request: #196
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/236999
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
@gopherbot
Copy link
Collaborator

This PR is being closed because golang.org/cl/236999 has been merged.

@gopherbot gopherbot closed this Jun 10, 2020
this.sendErrorResponse(response, 2009, 'Unable to eval expression: "{e}"', {
e: err.toString()
});
}, dest);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the default destination always user if nothing is passed here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the default is to show to the user, but I decided to spell out both options explicitly in the if-else, so it is clear what is going on.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Used by googlebot to label PRs as having a valid CLA. The text of this label should not change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

debug: don't show "Unable to eval expression" error message already under WATCH
4 participants