Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Watch window broken #1714

Closed
mbenkmann opened this issue Jun 6, 2018 · 6 comments
Closed

Watch window broken #1714

mbenkmann opened this issue Jun 6, 2018 · 6 comments
Labels

Comments

@mbenkmann
Copy link
Contributor

The latest update (0.6.81) has broken the Watches window. Just try setting any watch expression while debugging.

@ramya-rao-a
Copy link
Contributor

ramya-rao-a commented Jun 6, 2018

@mbenkmann Thanks for reporting! I can repro. Until we release a fix for this, please add "useApiV1": false to your debug configuration. That should let you use the watch feature.

If you want to continue to use the v1 apis and not change your debug config as described above, then you can use the 0.6.80 version of the extension by downloading the vsix from https://github.com/Microsoft/vscode-go/releases/tag/0.6.80 . Add "extensions.autoUpdate": false to your settings so that the extension doesn't get auto-updated.

cc @lggomez This is a regression from the changes we made to the debug adapter

@lggomez
Copy link
Contributor

lggomez commented Jun 6, 2018

I'm looking at it @ramya-rao-a

@lggomez
Copy link
Contributor

lggomez commented Jun 6, 2018

The rpc name for the v1 api was missing for watch requests, it seems to be working now on the attached PR. PTAL @ramya-rao-a

@ramya-rao-a
Copy link
Contributor

Thanks @lggomez! That was my mistake. I didnt include the right rpc name when I brought back v1 support.

@mbenkmann Can you add "useApiV1": false to your debug configuration? That should enable you to watch the variables without any issues.

I'll release an update next week with the fix.

@heeko
Copy link

heeko commented Jun 14, 2018

"useApiV1": false is fixing the watch window for a "classic" run, but on my side the debug test codelens remain broken. Is there also a way to force that parameter for the debug test codelens?

EDIT: I actually find a way to hack it, by editing the this.debugConfig in the goRunTestCodelens.js file and restarting vscode.

@ramya-rao-a
Copy link
Contributor

This is fixed in the latest version of the Go extension (0.6.83)

@vscodebot vscodebot bot locked and limited conversation to collaborators Jul 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants