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
x/tools/cmd/gotype: (can't find import: ) [GO15VENDOREXPERIMENT=1] #14215
Comments
@runningmaster Is this an issue with x/tools/cmd/gotype only? Or also with std lib gotype? (in go/types). |
It's also with std lib gotype. I did
|
@runningmaster Temporary work-around: I believe this should work if you provide the full (absolute) path name for main (/home/dmitriy/Development/go-proj/src/main in this case). But it's clearly a bug. Fix forthcoming. |
CL https://golang.org/cl/19393 mentions this issue. |
CL https://golang.org/cl/19394 mentions this issue. |
Workaround works fine for
Actually I use command |
@runningmaster This has been fixed (at tip) and should not require the work-around anymore. |
This is a backport of the respective changes in golang.org/cl/19393. For golang/go#14215. Change-Id: I8d60dd6daa827a60597f3af925e6732914537319 Reviewed-on: https://go-review.googlesource.com/19394 Reviewed-by: Alan Donovan <adonovan@google.com>
I have the same issue. I'm on Windows. Here is my file structure (I'm running
And here is the output of running
I have just installed these, so this isn't an old installation. Also, here is my environment information:
|
@parhamdoustdar This should be fixed for 1.6. Please re-open if you still see a problem. Thanks. |
I am using gometalinter embedded in atom go-plus which in turn uses gotype. Updated to latest gotype with go get -u Output of go env && go version && gotype bevaddress.go The directories gotype complaints no to be able to find are in place. This seems like the error has not been fixed. (Or do I need to update sthg. more but gotype?) |
@the42 Please double-check this and file a new bug since 1.6 has passed. Also, please add your directory structure as otherwise it's not possible to recreate the issue if it really exists. Keep in mind that the "newest" version of gotype is in the std lib go/types directory - you need to build it yourself (there's a separate issue filed to make gotype "go get"-able again (from x/tools). I have just checked that (std lib gotype) code and I believe it's using the latest version of the go/importer which supports vendoring. |
@griesemer Before opening a bug I realy think I am using the GOVENDOR-unaware gotype for x/tools. I build go from source, checking out go1.6 and bootstraping with a go1.4. How do I build the go/types gotype? 'which gotype' yields /home/john/src/gocode/bin/gotype The project I would like to gotype has the following structure: john@ebola:~/src/gocode/src/github.com/the42/bevaddress$ tree -d |
@the42 In the go/types directory just type: |
Filed as #14918 |
1 What version of Go are you using (
go version
)?2 What operating system and processor architecture are you using?
3 What did you do?
4 What did you expect to see?
Nothing (that's OK)
5 What did you see instead?
Note: other tools from Go Meta Linter work OK.
The text was updated successfully, but these errors were encountered: