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

Cannot handle ...arg #55

Open
frioux opened this issue Jul 13, 2020 · 9 comments
Open

Cannot handle ...arg #55

frioux opened this issue Jul 13, 2020 · 9 comments

Comments

@frioux
Copy link

frioux commented Jul 13, 2020

When I run goblin -file /home/frew/code/leatherman/internal/tool/status/status.go (code is at https://github.com/frioux/leatherman/blob/54a4c6bc7b0d8e60cdab34be68d7d7708da97690/internal/tool/status/status.go) I get this error:

{
  "error": {
    "info": "*ast.Ellipsis",
    "position": {
      "column": 33,
      "filename": "/home/frew/code/leatherman/internal/tool/status/status.go",
      "line": 76,
      "offset": 2133
    },
    "type": "unrecognized_type"
  }
}
@bagnalla
Copy link

I have a fix for this implemented here (see goblin.go). Let me know if you encounter any problem with it.

@frioux
Copy link
Author

frioux commented Jul 14, 2020

Doesn't seem to work for me:

$ git remote -v
origin  https://github.com/bagnalla/goblin (fetch)
origin  [email protected]:bagnalla/goblin (push)
$ go build ./cmd/goblin 
$ ./goblin -file /home/frew/code/leatherman/internal/tool/status/status.go
{"error":{"info":"*ast.Ellipsis","position":{"column":33,"filename":"/home/frew/code/leatherman/internal/tool/status/status.go","line":76,"offset":2133},"type":"unrecognized_type"}}

@frioux
Copy link
Author

frioux commented Jul 14, 2020

(I tried with both the master branch and the bugfix/variadic-args branch)

@bagnalla
Copy link

It's probably still using the goblin package at "github.com/ReconfigureIO/goblin" because the import path in cmd/goblin/main.go still points to it (I didn't change it because I intend to submit the fix as a PR to the main repo).

Try just copying the modified goblin.go from bugfix/variadic-args into $GOPATH/src/github.com/ReconfigureIO/goblin or wherever your Go tool is expecting it to be.

@frioux
Copy link
Author

frioux commented Jul 14, 2020

ah yes, that did fix it!

@frioux
Copy link
Author

frioux commented Jul 18, 2020

@bagnalla any chance this will get merged in?

frioux added a commit to frioux/leatherman that referenced this issue Jul 18, 2020
@bagnalla
Copy link

The maintainers appear to be inactive, so probably not. We have a fork with fixes implemented that you could try using. It's also extended to optionally include type information in the output (see the top of the README).

@frioux
Copy link
Author

frioux commented Jul 22, 2020 via email

@Evgenus
Copy link

Evgenus commented Aug 29, 2022

@frioux @bagnalla maybe you will be interested https://github.com/asty-org/asty

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

3 participants