-
Notifications
You must be signed in to change notification settings - Fork 767
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
vscode crashes with vscode-go extension enabled and editing a go file #2229
Comments
Is there any repro case or log? I am afraid there isn't much without a repro case or crash log. |
is there some docs on how to get the crash log? |
Not sure if there is anything but you can try "Developer: Open Log Folder" command -- that is the directory where the current window's logs sit. |
This is from a new project and just ran
|
From an existing project I see this too: [Info - 12:27:18 AM] 2022/05/07 00:27:18 go/packages.Load
snapshot=0
directory=/home/frezbo/work/siderolabs/extensions/examples/hello-world-service/src
query=[builtin github.com/siderolabs/hello-world/...]
packages=2
[Info - 12:27:18 AM] 2022/05/07 00:27:18 falling back to safe trimming due to type errors: [/home/frezbo/.local/share/aquaproj-aqua/pkgs/http/golang.org/dl/go1.18.1.linux-amd64.tar.gz/go/src/runtime/vdso_linux.go:53:38: invalid operation: division by zero /home/frezbo/.local/share/aquaproj-aqua/pkgs/http/golang.org/dl/go1.18.1.linux-amd64.tar.gz/go/src/runtime/vdso_linux.go:54:38: invalid operation: division by zero] or still-missing identifiers: map[memRecordCycle:true pageBits:true]
package="runtime"
[Info - 12:27:18 AM] 2022/05/07 00:27:18 discovered missing identifiers: map[options:true]
package="vendor/golang.org/x/text/unicode/bidi"
|
it seems the issue is caused when |
Closing this since it's been fixed in the |
@frezbo Thanks for sharing and fixing the issue. I am not familiar with Aqua. Do you mind telling us more about how the mentioned bug could bring down the entire vscode? (parents of the gopls)? |
@hyangah so aqua is a sort of like a package registry which allows to install binary assets. So what aqua does is create a symlink for which go
/home/frezbo/.local/share/aquaproj-aqua/bin/go ❯ ls -l /home/frezbo/.local/share/aquaproj-aqua/bin/go
lrwxrwxrwx 10 frezbo 2 May 12:05 /home/frezbo/.local/share/aquaproj-aqua/bin/go -> aqua-proxy
❯ ls -l /home/frezbo/.local/share/aquaproj-aqua/pkgs/http/golang.org/dl/go1.18.2.linux-amd64.tar.gz/go/
drwxr-xr-x - frezbo 11 May 02:00 api
.rw-r--r-- 56k frezbo 11 May 02:00 AUTHORS
drwxr-xr-x - frezbo 11 May 02:00 bin
.rw-r--r-- 52 frezbo 11 May 02:00 codereview.cfg
.rw-r--r-- 1.3k frezbo 11 May 02:00 CONTRIBUTING.md
.rw-r--r-- 111k frezbo 11 May 02:00 CONTRIBUTORS
drwxr-xr-x - frezbo 11 May 02:00 doc
drwxr-xr-x - frezbo 11 May 02:00 lib
.rw-r--r-- 1.5k frezbo 11 May 02:00 LICENSE
drwxr-xr-x - frezbo 11 May 02:00 misc
.rw-r--r-- 1.3k frezbo 11 May 02:00 PATENTS
drwxr-xr-x - frezbo 11 May 02:00 pkg
.rw-r--r-- 1.5k frezbo 11 May 02:00 README.md
.rw-r--r-- 397 frezbo 11 May 02:00 SECURITY.md
drwxr-xr-x - frezbo 11 May 02:00 src
drwxr-xr-x - frezbo 11 May 02:00 test
.rw-r--r-- 8 frezbo 11 May 02:00 VERSION
~ |
What version of Go, VS Code & VS Code Go extension are you using?
Version Information
go version
to get version of Go from the VS Code integrated terminal.gopls -v version
to get version of Gopls from the VS Code integrated terminal.code -v
orcode-insiders -v
to get version of VS Code or VS Code Insiders.Go: Locate Configured Go Tools
command.Steps to reproduce the behavior:
Disabling the go-extension and cannot reproduce.
ref: microsoft/vscode#148922
The text was updated successfully, but these errors were encountered: