-
Notifications
You must be signed in to change notification settings - Fork 646
After upgrade to GO extension 0.6.56 version, some errors about package #892
Comments
The word "ode" is not exist in my system folder. |
I build 0.6.54, install it can work normal, remenber uninstall 0.6.56 first |
@a57571735 thx |
getting the same issue on MacOS. |
Here's the previous build for the time being for those who like me are unable to install from previous link by @a57571735 |
I don't think it's related to Go 1.8 but only to the version |
Hello people, just saw this. Most likely culprit is #864 Will send out a fix soon |
Looking at all the error messages posted here, it looks like a classic off by 1 error. But unfortunately, neither did I see this error while testing, nor can I see it now in any of my Go projects. All of my Go project paths are of the form $GOPATH/src/github.com/somebody/someproject and I cant see this error in any of them. So I created another project right under $GOPATH/src like @a57571735. Can't repro the bug then either :( @a57571735 @nezorflame Since you have local dev env available for the Go extension, can you help me debug this issue? You need to put a breakpoint at https://github.com/Microsoft/vscode-go/blob/master/src/goCheck.ts#L167 and see what values you are getting for |
@ramya-rao-a sure, in a couple of minutes (on the road right now) |
@a57571735 @asdine @nezorflame @ansencumt
|
the funny thing is that if I create an empty folder in a folder path it tries to find, the error goes away. |
Alright, found the issue. Commited the fix: d417fd6 Update 0.6.57 is out. This issue only affects those who have multiple GOPATHs, and the Go project being worked on is not the first one among the multiple GOPATHs and the right GOPATH is shorter in length than the first GOPATH. I know, thats a mouthful. And quite silly. I apologize for not testing multiple GOPATHs from my side. Happy Coding! |
@ramya-rao-a can confirm that it's fixed now (built from the latest comment). |
Thanks @nezorflame! The update is out as well. |
@AaronReboot Can you share the build output from the output channel? |
@AaronReboot Make sure that the project you have opened is under the GOPATH that you get by running the command |
Sure thing. Here's my build output:
|
Is there any reason, your project is directly under $GOPATH and not |
It's just how things are organized at the firm I'm working for. It removes some of the complications with deploying App Engine projects. I'd like to note there's been no difficulty with this simplified path structure prior to 0.6.56 |
In 0.6.56 we pass the import path of the current package to And to find the import path we assume that the current file is under |
I met the same problem on both my Linux and Windows VSCode 1.10.2 and Go 0.6.57. There is only one folder in my GOPATH. I also move the code to src and has the same problem. The following is output on my Windows. |
Since I am not able to repro, can you uninstall the Go extension you have, and install it using the Go-0.6.58.vsix to confirm if the fix works for you?
|
@liaoya Please use the workaround above, that should fix the issue for you. Also, I am curious about your set up. Do you have multiple GOPATHs set? |
The following is output of "go env" about gopath I will not put the workspace in environment variable gopath and there's one item in gopath which store third party library and tool. I'm just a beginner of Go. Thank you very much for the wonderful extension. |
Hi. I'm happy to report that everything is fixed here too after manually installing 0.6.58! |
Me too ! 👍 |
I had the same problem as others with 0.6.57. I have a single simple GOPATH. |
Me too ! 👍 |
I just released an update (0.6.59) yesterday which has the fix |
win7 64bit
vscode 1.10.2
how to fix it? thx
The text was updated successfully, but these errors were encountered: