shirou / gopsutil

psutil for golang
Other
10.54k stars 1.59k forks source link

v4.24.9 breaks my ability to debug using delve #1734

Open trevorwhitney opened 3 hours ago

trevorwhitney commented 3 hours ago

Describe the bug We use this library in grafana/loki. After upgrading from v4.24.0-alpha.1 to v4.24.9, I lost my ability to use devle's DAP server on the Loki codebase. We've since downgraded to v4.24.8 and it works fine. I'm on Mac OS 15.0.1 (arm64), go 1.23.2, and delve 1.23.1. I wish I knew more about how delve worked to tell you what about that change broke it, but all I know is changing this specific dependency makes the difference.

To Reproduce Use delve Dap before and after this version on a main.go that depends on it. I use nvim-dap and nvim-dap-go, so I'm not sure how to invoke the Dap manually, sorry I can't be more helpful. I'd be happy to try out any fixes in my environment to see if the problem persists.

Expected behavior [A clear and concise description of what you expected to happen.]

Environment (please complete the following information):

Darwin fiction.local 24.0.0 Darwin Kernel Version 24.0.0: Tue Sep 24 23:37:25 PDT 2024; root:xnu-11215.1.12~1/RELEASE_ARM64_T6030 arm64 arm Darwin
trevorwhitney commented 3 hours ago

I'm guessing this is related to https://github.com/shirou/gopsutil/pull/1702?