Comments (11)
@dmikalova yes as @deepthawtz said that's the case for it. I think we can rephrase it better in the tutorial :)
from vim-go-tutorial.
I think the purpose of running that command is to create a scratch space for following along w/ the tutorial, you'll be the one adding Go code in that directory
from vim-go-tutorial.
@fatih yo, thanks for putting this tutorial together. Have been enjoying & using vim-go for a while and never knew many of these features existed. I think :GoCoverage
just blew my mind
from vim-go-tutorial.
@deepthawtz Yup, I just cloned the repo and have been working through it. However, the tutorial says the following which doesn't work:
If you already have a GOPATH set up just execute:
go get github.com/fatih/vim-go-tutorial
Adding any go file should work, I just don't know how @fatih would want to handle it.
from vim-go-tutorial.
Actually there is only one example that requires a GOPATH
. But having it inside a GOPATH
from the beginning is future proof and thus better looking forward. I'll add a file as it seems to be better.
from vim-go-tutorial.
@fatih
I am running this on OSX 10.11.6
I am still seeing this issue today. Just started working the vim-go tutorial.
I have a path set up for my user:
$HOME/golang/work/src/github.com/fatih/vim-go-tutorial
As shown by this grep out:
set | grep GO
GOPATH=/Users/mylogin/golang/work
GOROOT=/usr/local/opt/go/libexec
I follow my understanding of the tutorial:
For the tutorial, all our examples will be under GOPATH/src/github.com/fatih/vim-go-tutorial/. Please be sure you're inside this folder. Create if necessary. This will make it easy to follow the tutorial.
So I go there as shown by this pwd out:
pwd
/Users/mylogin/golang/work/src/github.com/fatih/vim-go-tutorial
I run the command and get the error as shown here:
go get github.com/fatih/vim-go-tutorial
can't load package: package github.com/fatih/vim-go-tutorial: no buildable Go source files in /Users/mylogin/golang/work/src/github.com/fatih/vim-go-tutorial
I had go installed by Homebrew before starting this tutorial. Could that be a source of problems?
from vim-go-tutorial.
I think it errors because the folder is already there. If you delete vim-go-tutorial
and and do another go get
it'll download it. But it's ok if it's there, just continue following the tutorial :)
from vim-go-tutorial.
That did work for me. I had manually created the folder before running the go get command because I interpreted "Create if necessary." as immediate from the tutorial text copied below:
For the tutorial, all our examples will be under GOPATH/src/github.com/fatih/vim-go-tutorial/. Please be sure you're inside this folder. Create if necessary. This will make it easy to follow the tutorial.
I was in follow-the-steps mode.
from vim-go-tutorial.
@InvisibleTech good catch, let me fix the wordings as they both contradict with each other.
from vim-go-tutorial.
@InvisibleTech I've updated the tutorial, thanks for the feedback.
from vim-go-tutorial.
Crap I just submitted a PR for that just now. No wonder my fresh clone PR got merge conflict warnings. Well whatever commit is best....
from vim-go-tutorial.
Related Issues (20)
- Filetype not being correctly loaded on Windows HOT 2
- how to jump to the item in the location list rendered by :GoReferrers HOT 1
- Jump to result when using :GoReferrers and :GoDescribe HOT 1
- Japanese translation HOT 1
- Case type setting HOT 2
- Independent stacks for each vim window when using GoDef HOT 1
- Installing vim-go binaries from the command line. HOT 1
- Set ENV VAR before running GoTest HOT 1
- snippet section: expand panic after typing errp does not work nor does the section on fn,ff,ln,lf HOT 2
- :GoMetaLinter does Not call 'go vet' HOT 2
- :GoRun report "go run: no go files listed" HOT 1
- Different behavior between Neovim and Vim8 when lint
- GoCoverage not Highlighting anything HOT 1
- Guru commands return location lists, not quicklists HOT 1
- Required to update vim though vim is latest version HOT 1
- _ HOT 1
- I can't see what is described HOT 2
- A query about certain symbol visible in vimgo environment. HOT 1
- map <c-m> remaps <CR> in vim HOT 1
- Missing information on HTML template HOT 2
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-tutorial.