-
Notifications
You must be signed in to change notification settings - Fork 71
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
Fixed vscode debugging issue #314
base: master
Are you sure you want to change the base?
Conversation
Not sure if it's because of this change, but looks like the tests are failing on CI |
@thomshutt The failing tests are also present here in this commit |
@AlexKordic Should we open a ticket to fix them then? |
yes |
i managed to reproduce error message in the terminal:
Command to break build is:
For some reason Found by experiment following command:
So i have added those 2 flags to settings.json of vscode:
Not sure why link to libm is required explicitly. This configuration works for me now. @oscar-davids what do you think should we update development documentation only or we still need to remove the |
I have same issue locally and have to comment out |
But what about other math functions we want to use in future? Are there any other options to fix this? @cyberj0g Can you use |
Yes, adding -lm explicitly works. The question is why setting CGO_FLAGS for debugging cause missing -lm after I upgraded only system glibc? All other dependencies seem to be the same, maybe I'm missing something. |
Can we use go build flags to add |
I agree with Alex that we should probably try to solve this at a higher level rather than trying to change which functions we use. Would adding the directives in the Go code that calls this work? https://pkg.go.dev/cmd/cgo |
Sometimes, the remote debugger broken in vs code and prints error message. here is the output.