Open oxzi opened 1 month ago
this solution worked for me:
{ pkgs, ... }:
let
golandCustomDelve = pkgs.jetbrains.goland.overrideAttrs (oldAttrs: {
postFixup = (oldAttrs.postFixup or "") + ''
rm -f $out/goland/plugins/go-plugin/lib/dlv/linux/dlv
ln -s ${pkgs.delve}/bin/dlv $out/goland/plugins/go-plugin/lib/dlv/linux/dlv
'';
});
in
{
# ...
}
Describe the bug
The current unstable
goland
package cannot debug any code anymore as the shippeddlv
segfaults. This issue seems to be new, as it just worked the other day.Steps To Reproduce
Try to debug any Go code with GoLand. The debug console shows an error like:
Manually executing the shipped
dlv
version segfaults as well:Expected behavior
Maybe don't segfault :point_right: :point_left:
Additional context
As a workaround, I got the debugger working by explicitly using
dlv
from thedelve
package. To do so:dlv
from the nixpkgs prefixed with-Ddlv.path=
there, like:-Ddlv.path=/nix/store/vr8wx2rqyag96bh8pslax497cc0bxsy4-delve-1.22.1/bin/dlv
or-Ddlv.path=/run/current-system/sw/bin/dlv
Notify maintainers
@tymscar
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a :+1: reaction to issues you find important.