-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Support OpenBSD #1477
Comments
I think this is unrelated to Neovim. You get this error just by executing
|
apologies. i should have mentioned that myself. its true. goal was to use nvim with delve. thanks for comment. do you think there is a solution or is it broken |
Probably this is a duplicate/related to #213 |
Very likely but somebody needs to confirm |
yeah, it's quite similar. OpenBSD also supports ptrace, so using the freebsd bits could work. will try it out sometime next week. |
Haven’t looked at it since, very busy atm :/ |
any thoughts on this |
Just gave it a try to install delve on OpenBSD 6.7 claiming it being FreeBSD. Doesn't seem to work. $ GOOS=freebsd go get github.com/go-delve/delve/cmd/dlv github.com/go-delve/delve/pkg/proc/nativepkg/proc/native/threads.go:16:21: undefined: waitStatus |
Any progress on this issue?
with forcing the os to FreeBSD:
|
I'm considering taking a look at this and hacking on it this weekend, but I wanted to double check whether anyone other subscribers to this issue had made any progress? |
Was any progress made on this issue? Thank you. |
I, too, would like to debug go on OpenBSD. |
I'm also interested in delve on OpenBSD. |
Is there a way to sponsor a fix for this? I'm happy to setup a bountysource to encourage someone to tackle the issue so I can move on with my life. Before I do I'm just wondering if there is a better way now that GitHub has a similar program. |
@berkeleynerd you could try contacting go port maintainers at ports at openbsd.org. See https://openports.se for direct personal contact as well. I'd be contributing financially to such effort, although care must be taken to choose a platform that does not forfeit the money when deadlines are not hit. |
@ezaquarii There's no delve port yet so no one to contact yet insofar as I can tell. I did reach out to the admin to see if this is something that has come up in the past and, if so, if they have any recommendations on how to move forward. I will also reach out to the Go port maintainers directly as they might have some ideas as well. I tried to log into bounty source via Github SSO but ran into an issue. Not sure if that's sporadic, on my end, or a sign of the end of the road for bounty source more generally. I'll keep at it until I exhaust all available avenues I'm aware of. |
@berkeleynerd admin of openports.se? I'm affraid that it's not related to OpenBSD directly and contacting |
Joel Sing, the maintainer of several OpenBSD packages, responded to my inquiry with the following. I'm posting it here for posterity and possible future action to move delve on OpenBSD forward.
==
|
I'm going to note here that we do have some requirements that new ports must meet now. This is to avoid situations like the freebsd port where it lands half-finished and is promptly abandoned. |
I asked Joel Sing to provide his proof of concept code. Let's see if something moves here. |
I've pushed a branch (https://github.com/4a6f656c/delve/commits/openbsd) that has support for delve on openbsd/amd64. There are a few things to note:
|
I'd like to reiterate that I think freebsd's port is bad, because of those failures, and I think merging it that state was a mistake. I would not be inclined to merging another port of the same quality. |
@aarzilli what could be the problem with race conditions in the test suite? |
@4a6f656c TCB changes that must be implemented are on OpenBSD side, I assume? Is that something that will be available in OpenBSD snapshot at some point? |
@ezaquarii the tests that fail are meant to detect that the backend correctly detects breakpoints when two threads hit breakpoints close to each other. The problem is that the freebsd backend does not do that correctly for some reason. |
Significant parts of the freebsd port were rewritten, the freebsd backend could not be (potentially) a better starting point for an openbsd port. |
This would be an amazing present to receive over the holiday vacation. If there were a GitHub sponsor page or similar for this feature I would donate to it in a heartbeat! I suppose the overlap between OpenBSD hobbyists and Go programmers is small but delve is the tool I really miss when nerding out on OpenBSD. |
Any opportunities to help fund this? I'd love to see this port done as well. |
Please answer the following before submitting your issue:
Note: Please include any substantial examples (debug session output,
stacktraces, etc) as linked gists.
dlv version
)?latest
go version
)?1.11
OpenBSD x64
Try to intall delve as part of NVIM plugins GoinstallBinaries
dlv binary gets installed to /home/user/go/bin just like all other go binaries
The text was updated successfully, but these errors were encountered: