GithubHelp home page GithubHelp logo

Comments (9)

myitcv avatar myitcv commented on August 25, 2024 2

from gocode.

cneill avatar cneill commented on August 25, 2024

If you're like me and wondering how to get gocode working with YouCompleteMe/Vim, here's what I did: ycm-core/ycmd#1090 (comment)

from gocode.

myitcv avatar myitcv commented on August 25, 2024

@phenixrizen is this in module-aware mode per chance?

from gocode.

phenixrizen avatar phenixrizen commented on August 25, 2024

@myitcv I'm not using module-aware mode

from gocode.

phenixrizen avatar phenixrizen commented on August 25, 2024

@myitcv I've built gocode with 1.11 and made sure I killed the daemon and removed the socket file. I've ran the daemon with the debug flag and I'm getting the following output when it's trying to do a dot lookup of methods:

2018/08/29 08:44:06 -------------------------------------------------------
2018/08/29 08:44:06 Error parsing input file (outer block):
2018/08/29 08:44:06 /home/pr/gosrc/src/github.com/phenixrizen/teststorage/main.go:26:5: expected selector or type assertion, found ';'
2018/08/29 08:44:06 /home/pr/gosrc/src/github.com/phenixrizen/teststorage/main.go:28:2: expected ';', found containers
2018/08/29 08:44:06 Elapsed duration: 1.314347ms
2018/08/29 08:44:06 Offset: 0
2018/08/29 08:44:06 Number of candidates found: 0
2018/08/29 08:44:06 Candidates are:
2018/08/29 08:44:06 =======================================================

from gocode.

phenixrizen avatar phenixrizen commented on August 25, 2024

@myitcv Also noticed that if I don't ad a . it thinks st is not a valid type, therefore it cannot find the methods:

2018/08/29 09:27:23 -------------------------------------------------------
2018/08/29 09:27:23 Elapsed duration: 1.205946ms
2018/08/29 09:27:23 Offset: 0
2018/08/29 09:27:23 Number of candidates found: 4
2018/08/29 09:27:23 Candidates are:
2018/08/29 09:27:23 package spew
2018/08/29 09:27:23 package storage
2018/08/29 09:27:23 type string string
2018/08/29 09:27:23 var st invalid type
2018/08/29 09:27:23 =======================================================

from gocode.

myitcv avatar myitcv commented on August 25, 2024

from gocode.

phenixrizen avatar phenixrizen commented on August 25, 2024

@myitcv You can clone this repo: https://github.com/phenixrizen/testjsondb.git

I dug into this and the package.Scope returned in the call on line 34 of internal/suggest.go returns the following Scope if I type "db" on line 16 of main.go in testjsondb:

(*types.Scope)(0xc0000c8870)(function scope 0xc0000c8870 {
. var db invalid type
. var err invalid type
})

from gocode.

phenixrizen avatar phenixrizen commented on August 25, 2024

This works properly with go1.11, I didn't notice the change to not look at source outside the stdlib.

from gocode.

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.