-
Notifications
You must be signed in to change notification settings - Fork 67
Common problems
These are the following most common problems that can occur during development, setting up or running the application. If you encounter further issues, feel free to add them and help other contributors during onboarding. Try to follow the same structure when explaining the steps and not include any personal information.
When: Running in debug mode
Error:
/Users/lio/go/go1.23.4/bin/go tool test2json -t /private/var/folders/gt/nw97n8md6xd2kc0hzghr_4cr0000gn/T/dlvLauncher.sh /Applications/GoLand.app/Contents/plugins/go/lib/dlv/macarm/dlv --listen=127.0.0.1:54124 --headless=true --api-version=2 --check-go-version=false --only-same-user=false exec /private/var/folders/gt/.../T/GoLand/....test -- -test.v -test.paniconexit0 -ginkgo.v -ginkgo.trace ^C{"Time":"2025-03-10T16:33:42.689397+01:00","Action":"output","Output":"2025-03-10T16:33:42+01:00 error layer=debugger error loading binary \"/private/var/folders/gt/.../T/GoLand/....test\": error reading debug_info: decoding dwarf section info at offset 0xa1540f: DW_FORM_strx with no .debug_str_offsets section\n"} 2025-03-10T16:33:42+01:00 error layer=debugger could not patch runtime.mallogc: no type entry found, use 'types' for a list of valid types could not launch process: error reading debug_info: decoding dwarf section info at offset 0xa1540f: DW_FORM_strx with no .debug_str_offsets section
Explanation: The dlv version used is not compatible with your current Go version. Keep in mind that the version used by your IDE might be different from the one you are using.
Solution:
- Make sure you have downloaded
dlvand that it is under$GOPATH/bin. If not:go install github.com/go-delve/delve/cmd/dlv@master - Replace the version used by your IDE with the new one using a symlink:
cd /Applications/GoLand.app/Contents/plugins/go/lib/dlv/macarm/dlv
mv dlv dlv.old
ln -s $GOPATH/bin/dlv dlv
When: During compilation (or test run) Error:
Failed to build github.com/hyperledger-labs/fabric-smart-client/cmd/fsccli:
Error:
exit status 1
Output:
package github.com/hyperledger-labs/fabric-smart-client/cmd/fsccli
imports github.com/hyperledger-labs/fabric-smart-client/integration/nwo/cmd/artifactgen
imports github.com/hyperledger-labs/fabric-smart-client/integration
imports github.com/hyperledger-labs/fabric-smart-client/integration/nwo
imports github.com/hyperledger-labs/fabric-smart-client/integration/nwo/common/runner
imports github.com/onsi/gomega
imports github.com/onsi/gomega/matchers
imports golang.org/x/net/html/charset
imports golang.org/x/net/html
imports iter: build constraints exclude all Go files in /.../go/go1.22.6/src/iter
Solution: Make sure you are using the correct Go version.