-
Notifications
You must be signed in to change notification settings - Fork 18k
x/tools/gopls: invoking go version
causes a crash on Windows
#38062
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
Comments
go version
causes a crash on Windows
Thanks for the report! I am able to reproduce the crash on Windows. It's caused by https://golang.org/cl/225137 - specifically by calling |
Change https://golang.org/cl/225817 mentions this issue: |
Problem is still there... |
Change https://golang.org/cl/226370 mentions this issue: |
This was causing crashes by setting the working directory to be empty. Fixes golang/go#38062 Fixes golang/go#38101 Change-Id: I6d679ee1d5dcab914df3d565d83aa6de0dd74cb4 Reviewed-on: https://go-review.googlesource.com/c/tools/+/225817 Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Heschi Kreinick <heschi@google.com>
Seems like os.Environ() is necessary after all. My bad for not testing my earlier change on Windows. I'm not able to reproduce the behavior in my test, so it's not really testing the crash correctly. Fixes golang/go#38062 Change-Id: Ied45bbf572023a9dcd5d020db49bf3e95c824602 Reviewed-on: https://go-review.googlesource.com/c/tools/+/226370 Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Heschi Kreinick <heschi@google.com>
Today, after upgrade to latest from master,
gopls
started to crash with the error:panic: err: exit status 1: stderr: go: creating work dir: mkdir C:\Windows\go-build728148707: Access is denied.
Previous version was compiled smth like ~1-2 days ago, so it's recent change.
The text was updated successfully, but these errors were encountered: