-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
mingw: Incompatible with mingw64 #3447
Comments
Vim-go is unlikely to support mingw64 explicitly; I don't have a Windows machine to test with, and arguably one would be better off using Vim built for Windows than trying to use one built specifically for mingw64. |
I think the error message you're seeing is actually coming from |
mingw64 doesn't provide golang package because it is the same windows version. Last time I tried to figure out root cause it was a problem with a path notations: |
Yes, the problems is paths, but the systems ability to understand a path will depend on how it was compiled. In this case, it looks like |
Nope. Same error as at issue description. |
I'm not sure how to solve this. The problem is the the path has It may be related to the Go version that's being used, or something else. Until we can find a solution, I'd recommend not using mingw's Vim on Windows with vim-go. |
Maybe we can get to the bottom of this. Here's what I need:
|
Idea is to use vim within a shell. So, I'm not using vim-go :D
File:
|
Hey sorry I haven't been active in this thread--I actually forgot I posted this issue. I ended up using VS Code for the golang development I needed to do and am not actively using golang at this time so I don't have much to offer in terms of debugging unfortunately |
What did you do? (required: The issue will be closed when not provided)
Ran plugin with mingw64 (git bash for windows). I believe this problem likely would affect msys2 as well.
What did you expect to happen?
What happened instead?
When opening a file paths are not properly formed in plugin. I get a message like:
vim-go: failed to load view for file:///C:/c/path/to/my/project: invalid workspace folder path: The system cannot find the path specified.; check that the casing of the configured workspace folder path agrees with the casing reported by the operating system
Looked into the code a little bit,
has('Win32')
is used by the IsWin function in util.vim. This returns 0 for msys2/mingw64.has('Win32unix')
returns 1 as doeshas('unix')
.Also, GoInstallBinaries did not work without explicitly setting GOBIN variable as GOPATH/bin (not sure if this is related or not, I no longer have the error messages, but they complained about GOBIN).
Configuration (MUST fill this out):
vim-go version:
4d6962d
vimrc
you used to reproduce:vimrc
Vim version (first three lines from
:version
):Go version (
go version
):go version go1.19 windows/amd64
Go environment
go env
Output:gopls version
gopls version
Output:The text was updated successfully, but these errors were encountered: