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

gocode no return #503

Open
akiyosi opened this issue Mar 10, 2018 · 1 comment
Open

gocode no return #503

akiyosi opened this issue Mar 10, 2018 · 1 comment

Comments

@akiyosi
Copy link

akiyosi commented Mar 10, 2018

I setup zchee/deoplete-go but it does not work. I ran gocode command with reference to deoplete-plugins/deoplete-go#50, but nothing was returned. What is the problem?

$ cp ~/.config/nvim/dein/repos/github.com/zchee/deoplete-go/tests/fmt.go fmt.go
$ cat fmt.go
package main

import (
        "fmt"
        "net"
        "os"
        "strconv"
        "syscall"
)

var str string

func main() {
        fmt.Println(os.Args[0])
        fmt.Println(net.InterfaceAddrs())

        fmt.Println(strconv.FormatInt(int64(syscall.Getuid()), 10))
}
$ gocode -f json --in fmt2.go autocomplete 128
$

I installed gocode with following command.

$ go get -u -v github.com/nsf/gocode

My environment is following.

$ goenv versions
  1.10rc1
  1.10rc2
* 1.9.4 (set by /Users/akiyosi/.goenv/version)
@nsf
Copy link
Owner

nsf commented Mar 24, 2018

why should it work? 128 byte is here:

package main

import (
        "fmt"
        "net"
        "os"
        "strconv"
        "syscall"
)

var str string

func main>>>>>#<<<<<() {
        fmt.Println(os.Args[0])
        fmt.Println(net.InterfaceAddrs())

        fmt.Println(strconv.FormatInt(int64(syscall.Getuid()), 10))
}

I'm not sure what to explain here really. Try debug mode maybe: gocode close && gocode -s -debug.

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