Comments (9)
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.
Seeing the same thing after pulling the latest vim-go + GoUpdateBinaries in neovim
from vim-go.
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.
@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.
I'm not seeing this at all. What operation did you execute to cause the error?
from vim-go.
oddly enough it was just PlugUpdate
& GoUpdateBinaries
from vim-go.
What kind of debug information can I provide which will better provide insight to the issue?
from vim-go.
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.
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)
- Execution: GoFmt changes the Chinese at the end to <e4> HOT 2
- Startup time ~4 s on nvim, macos, even with empty init.lua HOT 1
- c-x c-o error HOT 8
- Running :GoDef or any other commands that require gopls fails without error HOT 9
- vim has defined a set of key positions that span the ages
- Thank you for sharing
- Call: GoReferrers error
- GoFillStruct with proto pb.go HOT 1
- Import string is not highlighted if some comment follows
- Why is vim-go removing semicolons? HOT 2
- vim-go: failed to sync breakpoints HOT 2
- How to setup gopath manually inside `.vimrc` HOT 2
- godef crashes when looking up a tag HOT 7
- when save the go file, the four space is converted to tab,why?,how to modify it? HOT 1
- Errors while installing v1.28 in NVIM v0.9.5 HOT 4
- set GOTOOLCHAIN=go1.22.x when you are using Go>=1.22 HOT 2
- Feature Request: Completion with TinyGo machine package HOT 1
- vim-go: could not determine appropriate working directory for gopls HOT 5
- :GoDescribe is unavailable for me - is it removed? HOT 1
- Syntax checking/diagnostics doesn't seems to work when using go version with format 1.X.X in go.mod file HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-go.