Giter Club home page Giter Club logo

Comments (15)

rogpeppe avatar rogpeppe commented on June 3, 2024 3

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.

douglarek avatar douglarek commented on June 3, 2024 2

@pwaller yes, master branch has fixed this issue.

from godef.

rogpeppe avatar rogpeppe commented on June 3, 2024 2

Fixed by #33. Sorry for the long wait, guys :)

from godef.

missedone avatar missedone commented on June 3, 2024 1

@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.

tiborvass avatar tiborvass commented on June 3, 2024 1

@rogpeppe the example in #13 (comment) still doesn't seem to work.

from godef.

rgarcia avatar rgarcia commented on June 3, 2024

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.

rogpeppe avatar rogpeppe commented on June 3, 2024

Yeah, this needs to be fixed.

from godef.

abourget avatar abourget commented on June 3, 2024

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.

douglarek avatar douglarek commented on June 3, 2024

@rogpeppe 1.6 has released, any plan for this issue ?

from godef.

gonzaloserrano avatar gonzaloserrano commented on June 3, 2024

Also interested :-)

from godef.

douglarek avatar douglarek commented on June 3, 2024

@abourget would you like to make a PR based the latest codes ?

from godef.

missedone avatar missedone commented on June 3, 2024

link PR #25

from godef.

dingyaguang117 avatar dingyaguang117 commented on June 3, 2024

+1

from godef.

douglarek avatar douglarek commented on June 3, 2024

Maybe this project is dead, It's time to have a fork !!!

from godef.

pwaller avatar pwaller commented on June 3, 2024

Has #33 finally fixed this?

from godef.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.