Mac 3 silicon VSCode with dev container and golang fails to run debugger on goroutine implementation #3460
Labels
Debug
Issues related to the debugging functionality of the extension.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
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.Tools Configuration
Environment
GOBIN: undefined
toolsGopath:
gopath: /workspaces
GOROOT: /cam/tools/go
PATH: /workspaces/bin:/cam/tools/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PATH (vscode launched with): /vscode/vscode-server/bin/linux-x64/f1e16e1e6214d7c44d078b1f0607b2388f29d729-legacy/bin/remote-cli:/workspaces/bin:/cam/tools/go/bin:/cam/tools/gnu/gcc/11.3.0/rhe7-x86_64/bin:/cam/tools/gnu/binutils/2.40/rhe7-x86_64/bin:/cam/tools/swig/swig/4.1.1/rhe7-x86_64//bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Tools
Go env
Workspace Folder (uniSched): /workspace/src/uniSched
Share the Go related settings you have added/edited
Run
Preferences: Open Settings (JSON)
command to open your settings.json file.Share all the settings with the
go.
or["go"]
orgopls
prefixes.Describe the bug
This issues is specifically on Mac 3 silicon
Installed Xcode ( 15.4 (15F31d) )
Installed VSCode ( 1.91.1 (Universal) )
dev container extension ( v0.375.1 )
golang in container ( go1.21.3 linux/amd64 )
install docker desktop ( 4.32.0 (157355) )
We are using dev container integrated with vs code for golang project, the setting devcontainer.json has all details related to the docker image to use for the development work, when we rebuild the the container ( command palette), tools will be installed along with golang and all the dependencies.
Once the project is set and the container is ready for developemnt, import the project and navigate to one of the test file, we test the code with debug_test option available in the vs code
As soon as the Debug Test is clicked, and continue by clicking continue button, the vs code throws following error message
Starting: /workspaces/bin/dlv dap --listen=127.0.0.1:36991 --log-dest=3 from /workspace/src/TestCode
DAP server listening at: 127.0.0.1:36991
Type 'dlv help' for list of commands.
2024-07-19T06:46:49Z error layer=dap runtime error: input/output error
2
Unable to retrieve goroutines: input/output error
PASS
Process 21251 has exited with status 0
Detaching
dlv dap (21021) exited with code: 0
Steps to reproduce the behavior:
Screenshots or recordings
The text was updated successfully, but these errors were encountered: