GithubHelp home page GithubHelp logo

Comments (9)

aaronmcohen avatar aaronmcohen commented on June 3, 2024 2

Completely agree. Complete goof on my part for the project location. That being said I have reproduced it in other locations such as ${GOPATH}/src.

So I deleted my existing .vim directory and did a fresh install of vim-go with no other plugins and it worked fine. The problem actually seems to come from the dense-analysis/ale plugin. I found dense-analysis/ale#4586 and let g:ale_go_golangci_lint_package=1 fixed it. Thank you @bhcleek for helping and I am closing this issue.

from vim-go.

lkramer avatar lkramer commented on June 3, 2024

Seeing the same thing after pulling the latest vim-go + GoUpdateBinaries in neovim

from vim-go.

bhcleek avatar bhcleek commented on June 3, 2024

Why are you creating a module in $GOPATH/pkg? Does the problem you're seeing happen if you delete that directory?

cd ${GOPATH}/pkg
mkdir test
cd test
mod init test

Can you clarify what this means?

create a function in the main package outside the main.go file in the outside.go file

edit: figured out what you meant

from vim-go.

aaronmcohen avatar aaronmcohen commented on June 3, 2024

@bhcleek Yeah this originally happened in another coding project which worked great prior to upgrading vim-go. Those instructions were to just build a simple reproducible test case. Clearing out my entire ${GOPATH} does not solve the issue. Also the same steps will fail in the ${GOPATH}/src directory.

Out of curiosity are you seeing the same behavior in your coding projects?

from vim-go.

bhcleek avatar bhcleek commented on June 3, 2024

I'm not seeing this at all. What operation did you execute to cause the error?

from vim-go.

aaronmcohen avatar aaronmcohen commented on June 3, 2024

oddly enough it was just PlugUpdate & GoUpdateBinaries

from vim-go.

aaronmcohen avatar aaronmcohen commented on June 3, 2024

What kind of debug information can I provide which will better provide insight to the issue?

from vim-go.

bhcleek avatar bhcleek commented on June 3, 2024

Just for clarity as an aside; Go source code should not be placed in $GOPATH/pkg. The pkg directory is intended for Go to use for a variety of its internal uses. If you're able to duplicate your issue without explicitly creating any source code files in that directory, then it's unlikely to be a cause of the problem you're seeing. But I'd advise against it as a general practice anyway.

from vim-go.

bhcleek avatar bhcleek commented on June 3, 2024

oddly enough it was just PlugUpdate & GoUpdateBinaries

What other plugins were updated with PlugUpdate?

Can you duplicate this problem when vim-go is the only plugin?

Also, vim-go isn't going to perform any operations that would cause errors to be displayed like that unless you did something. Think of it from my perspective: I don't see any vim commands or keystrokes being described here, only the creation of a file. Clearly there's some missing steps for me to be able to duplicate what you're doing.

edit: fixed a typo

from vim-go.

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.