Giter VIP home page Giter VIP logo

godef's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

godef's Issues

no definition found: b'godef 是什么错?

按readme里设置了插件的gopat、goroot和快捷键,当我用的时候报这个错:
`=================[Godef]Begin=================
[Godef]INFO: using godef: /home/lstbao/work/listomego/bin/godef
[Godef]INFO: selcet_begin: 134 offset: 134
[Godef]INFO: spawning: /home/lstbao/work/listomego/bin/godef -f /home/lstbao/bao/program/javascript/myPaintOnline/main.go -o 134
[Godef]ERROR: no definition found: b'godef: no declaration found for socketio.NewServer\n'

=================[Godef] End =================
`
配置如下:

{ "goroot": "/home/lstbao/software/go", "gopath": "/home/lstbao/work/listomego" }
sublime版本3103, 系统ubuntu 16.04 64 位

Only working when source file opened?

Use GoDef just working when source file opened.

Can not go to definition when xxx.go not opened.
Ok when XXX.go opened.

Platform windows, install GoSublime and GoDef.

dependency on 9fans.net caused failure to install

following attempt to install :

$ go get -v code.google.com/p/rog-go/exp/cmd/godef
Fetching https://9fans.net/go/acme?go-get=1
https fetch failed.
Fetching http://9fans.net/go/acme?go-get=1
import "9fans.net/go/acme": http/https fetch: Get http://9fans.net/go/acme?go-get=1: dial tcp 71.249.206.161:80: i/o timeout
package 9fans.net/go/acme: unrecognized import path "9fans.net/go/acme"

9fans.net seems to have been down for last few days, spotted this trying to install vim tools for go :

:GoInstallBinaries ....

vim-go: godef not found. Installing github.com/rogpeppe/godef to folder /home/jon/go/bin/
Error installing github.com/rogpeppe/godef: github.com/rogpeppe/godef (download)
Fetching https://9fans.net/go/acme?go-get=1
https fetch failed.
Fetching http://9fans.net/go/acme?go-get=1
import "9fans.net/go/acme": http/https fetch: Get http://9fans.net/go/acme?go-get=1: dial tcp 71.249.206.161:80: i/o
 timeout
package github.com/rogpeppe/godef
        imports 9fans.net/go/acme: unrecognized import path "9fans.net/go/acme"

osx 10.10.2 with high cpu useage

sublime build 3083 packages: SideBarEnhancements, GoSublime, Godef

when I install godef then sublime was keeping 50% cpu useage

Default key bindings conflict with normal text editing

The default key bindings "gd" and "gh" are triggered when you attempt to write those character sequences as text. You can't, for example, write "height" without Godef getting in the way. This is very annoying.

#25 is a manifestation of this.

hide windows when doing Popen

is it better to hide the window of subprocess execution?

startupinfo = None
if os.name == 'nt':
    startupinfo = subprocess.STARTUPINFO()
    startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
p = subprocess.Popen(args, stdout=subprocess.PIPE,
                     stderr=subprocess.PIPE, env=env,
                     startupinfo=startupinfo)

GoTo Definition with columns can reopen the file.

I usually use 2 columns under "View"->"Layout".

I have source fileA in Col1, and another source fileB containing the definition of a function is in Col2.

Using "GoTo definition" in the source fileA sometimes reopens fileB in Col1 and goes to the definition.

It would be better if it found the source fileB in Col2 that is already open, and went to the definition there. No need to have the same file open twice.

Thx

don't work when env GOPATH has more than one path

If there is multiple path in env GOPATH, such as /opt/golang:/home/my/Go,
the plugin source code can't find the correct path of godef bin

godef_bin = os.path.join(self.gopath, "bin", "godef")

I suggest setup godef path in the settings file Godef.sublime-settings explicitly,
self.godefpath = settings.get("godef")

or use the first path of GOPATH, self.gopath.split(":")[0]

I have test first, and it work well.

Godef can't find decalrations under `net` package

=================[Godef]Begin=================
[Godef]INFO: using godef: /Users/me/go/bin/godef
[Godef]INFO: selcet_begin: 834 offset: 834
[Godef]INFO: spawning: /Users/me/go/bin/godef -f /Users/me/go/src/snippets/playground.go -o 834
[Godef]ERROR: no definition found: b'godef: no declaration found for net.ResolveUDPAddr\n'
=================[Godef] End =================

but working for fmt

=================[Godef]Begin=================
[Godef]INFO: using godef: /Users/me/go/bin/godef
[Godef]INFO: selcet_begin: 822 offset: 822
[Godef]INFO: spawning: /Users/me/go/bin/godef -f /Users/me/go/src/snippets/playground.go -o 822
[Godef]INFO: godef output: b'/usr/local/opt/go/libexec/src/fmt/print.go:263:6\n'
[Godef]INFO: opening definition at /usr/local/opt/go/libexec/src/fmt/print.go:263:6
=================[Godef] End =================

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.