Comments (15)
It works when an absolute path name is used for the go file.
Perhaps godef should make the file name absolute before considering it.
from godef.
@pwaller yes, master branch has fixed this issue.
from godef.
Fixed by #33. Sorry for the long wait, guys :)
from godef.
@douglarek fork is always the last option...
@rogpeppe , maybe it'd be better if you could elect some Collaborator to help you manage this repo (e.g. maintain, review the PRs, etc.) if you're too busy.
thanks
from godef.
@rogpeppe the example in #13 (comment) still doesn't seem to work.
from godef.
As far as I can tell, godef does not support vendored files:
// ~/go/src/test/test.go
package main
import "a"
func main() {
println(a.HelloFromA)
}
// ~/go/src/test/vendor/a/a.go
package a
var HelloFromA = "Hello!"
$ export GO15VENDOREXPERIMENT=1
$ go run test.go
Hello!
$ godef -f test.go "a.HelloFromA"
parseLocalPackage error: no more package files found
godef: no declaration found for a.HelloFromA
from godef.
Yeah, this needs to be fixed.
from godef.
I have a PR for that, don't I ? My fork has that implemented.
Le jeu. 14 janv. 2016 06:47, Roger Peppe [email protected] a
Γ©crit :
Yeah, this needs to be fixed.
β
Reply to this email directly or view it on GitHub
#13 (comment).
from godef.
@rogpeppe 1.6 has released, any plan for this issue ?
from godef.
Also interested :-)
from godef.
@abourget would you like to make a PR based the latest codes ?
from godef.
link PR #25
from godef.
+1
from godef.
Maybe this project is dead, It's time to have a fork !!!
from godef.
Has #33 finally fixed this?
from godef.
Related Issues (20)
- Cannot find modules in $GOPATH/pkg/mod/cache/download
- godef might be extremly slow in Go packages using cgo when using go/packages
- godef by expression not working with go/packages HOT 3
- Allow a way to print the version of the godef tool
- Struct tips not pretty with go modules HOT 7
- go get github.com/rogpeppe/godef not working
- godef can't work for go while using import . ""
- godef takes ~2 seconds when used with go modules HOT 8
- godef can't work HOT 1
- When export GO111MODULE=on, the godef can not work. HOT 2
- internal error: nil Pkg importing "errors" from "mypkg" HOT 3
- godef: could not parse GOARCH and Go compiler HOT 2
- "no declaration found" when a package uses a binary literal
- include methods in members list HOT 1
- Godef fails in dependency module directories where no go.mod is present HOT 1
- Does godef support build tags?
- godef not work in go mod HOT 4
- Printing the receiver for methods when printing types
- go mod project search github.com/coreos/etcd very slow and fail HOT 1
- Support showing variable initialization values when printing types
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from godef.