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

Print fails with "expected operand, found 'go'" #1476

Closed
jhendrixMSFT opened this issue Feb 7, 2019 · 2 comments
Closed

Print fails with "expected operand, found 'go'" #1476

jhendrixMSFT opened this issue Feb 7, 2019 · 2 comments

Comments

@jhendrixMSFT
Copy link

Please answer the following before submitting your issue:

Note: Please include any substantial examples (debug session output,
stacktraces, etc) as linked gists.

  1. What version of Delve are you using (dlv version)?
    Version: 1.1.0
    Build: $Id: 1990ba12450cab9425a2ae62e6ab988725023d5c $
  2. What version of Go are you using? (go version)?
    go version go1.11.1 windows/amd64
  3. What operating system and processor architecture are you using?
    Win10 AMD64
  4. What did you do?
    p *(*github.com/andygrunwald/go-jira.ChangelogHistory)(0xc000098a20)
  5. What did you expect to see?
    value of ChangelogHistory
  6. What did you see instead?
    Command failed: 1:28: expected operand, found 'go'

Repro and debugging session output at https://gist.github.com/jhendrixMSFT/894fb1285ff01ccaf88cce35cd602683

@aarzilli
Copy link
Member

the type needs to be in quotes: p *(*"github.com/andygrunwald/go-jira.ChangelogHistory")(0xc000098a20), we can't parse it otherwise, unfortunately.

@jhendrixMSFT
Copy link
Author

Thanks I can confirm this works. Re-reading the docs here I overlooked the %q in syntax, sorry about that.

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

No branches or pull requests

2 participants