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

Work with "gvm linkthis" #23

Open
zhouhua015 opened this issue Feb 26, 2014 · 0 comments
Open

Work with "gvm linkthis" #23

zhouhua015 opened this issue Feb 26, 2014 · 0 comments

Comments

@zhouhua015
Copy link

What's wrong with my make

I have only 1 package main, which is divided into several files. Those files are put in a directory that's not under GOPATH, gvm linkthis is used to link my package directory to GOPATH.

However, every time of :make running, I got non-sense errors, reporting, either a function name is not recognized, or some variables are not defined. Both of them are defined in another go file within same package.

What I've figured

Vim automatically resolves symlinks, and vim-gocode uses fnamemodify(resolve(a:arg), ':p:h') to get full path of a file. Even when my bash pwd gives me $GOPATH/src/MY_PACKAGE, the full path of current go file is still resolved to actual path, ~/MY_PACKAGE, then go#package#FromPath() won't find any workspace, the b:gopackage would not be set.

Could it be possible?

That b:gopackage become g:gopackage, so users can overrule the setting?

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

1 participant