Debugging with vscode or goland in M1 environment reports the following errors
could not launch process: can not run under Rosetta, check that the installed build of Go is right for your CPU architecture
main cause:
M1 chip is based on ARM architecture. If the installed Golang SDK is ARM, the above error will be reported during debugging
Solution:
Re-download the Go SDK of ARM version, and the Golang Installer will automatically overwrite the previous version
Go env to view after installation
Dlv is required for golang debugging. If dlv is not installed, dlv must be installed
go install github.com/go-delve/delve/cmd/dlv
Debug again. It is found that debugging can be performed normally
Read More:
- [Solved] Vscode debug error launch: Program “path” does not exist
- When installing zookeeper, you can view the process start, but the status display error: Error contacting service. It is probably not running
- [Solved] Phone Debug Program Error: The application could not be installed: INSTALL_FAILED_TEST_ONLY
- [Solved] Mac Notebook M1 Chip Install Hashlips library npm error
- [Solved] Could not identify launch activity: Default Activity not found Error while Launching activity
- launch file Run Error: Resourcenotfound: XXX [How to Solve]
- [Solved] Could not identify launch activity: Default Activity not found Error while Launching activity
- Could not identify launch activity: Default Activity not foundError while Launching activity
- Error while trying to run project:unable to start debugging.the debugger is not properly installed. run setup to install or repa
- [Solved] Mac M1 Brew install Error: Command failed with exit 128:git
- How to Solve Error: Error running ‘__rvm_make -j8‘ (Mac M1 BigSur)
- Docker run Error: container_linux.go:235: starting container process caused “process_linux.go:258: appl
- How to Solve “Status bar could not find cached time string image. Rendering in-process.” in Xcode
- json-server Error: EPERM: operation not permitted, mkdir ‘C:\Progra m Files\nodejs\node_
- Mac Error: sh: vue-cli-service: command not found
- Module not found: Error: Can‘t resolve ‘sass-loader‘
- Mac error: SH: Vue cli service: command not found
- [Solved] SHELL Run Error: “-BASH: ./TEST.SH: /BIN/BASH^M: BAD INTERPRETER: NO SUCH FILE OR DIRECTORY”
- How to Solve Docker Run Error: standard_init_linux.go:219: exec user process caused: exec format error
- [Solved] Mac Runjmeter WARNING: package sun.awt.X11 not in java.desktop