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

Second call to :GoDoc warns without reason #364

Closed
oblitum opened this issue Mar 23, 2015 · 6 comments
Closed

Second call to :GoDoc warns without reason #364

oblitum opened this issue Mar 23, 2015 · 6 comments

Comments

@oblitum
Copy link

oblitum commented Mar 23, 2015

Steps:

  • Open any go file so that :GoDoc gets available.
  • run :GoDoc io. It goes to io docs without warning.
  • now run :GoDoc os. It warns: "can't load package: package .: no buildable Go source files in <current $PWD>", and then proceeds to open os docs.

I'm on OS X.

@fatih
Copy link
Owner

fatih commented Mar 24, 2015

I couldn't reproduce it :/ I've tried exactly what you did and there were no errors on my side. Any chance you can give me more detail ?

@oblitum
Copy link
Author

oblitum commented Mar 27, 2015

@fatih Are you on OS X? Don't recall whether it happens on Linux, will check later. Notice that, for this warning to show up the second :GoDoc os should be called with the last active window being the GoDoc window for io.

@oblitum
Copy link
Author

oblitum commented Mar 27, 2015

If I change focus to another window it doesn't show up.

@fatih
Copy link
Owner

fatih commented Apr 30, 2015

Can you try again please. I don't see any errors? Is it related to this issue: #332

@fatih
Copy link
Owner

fatih commented Jun 25, 2015

Closing this as ~ 2 months has been passed.

@fatih fatih closed this as completed Jun 25, 2015
@arechsteiner
Copy link

I can reproduce this on Ubuntu 14.04. It happens when I use the command :GoDoc fmt (with fmt or any other package) when my cursor is either in NERDTree or in the window previously opened by GoDoc. So to reproduce try:

:GoDoc fmt

then, without switching the cursor to another window, leaving it in the window that GoDoc opened

:GoDoc io

Result is the error:

can't load package: package .: no buildable Go source files in /home/alex

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

3 participants