I’m a long time Kate user, and I recently started to studying Go.
I’m trying to debug code using delve but it seems to not correctly pass the project folder or similar so during the build process it cannot find the go.mod file.
Build Error: go build -o /home/kirys/__debug_bin659773021 -gcflags all=-N -l /home/kirys/Developing/EasyPiam/EasyPiam
go: go.mod file not found in current directory or any parent directory; see 'go help modules' (exit status 1)
I tried to add a custom config to pass the workdir without success (I attach here only the delve part relevant, the full json is valid and the ide shows the custom profile)
You can also use .vscode/launch.json file to supply “targets” to debug. Simply create a directory .vscode at the root of your project. Create a launch.json file in that project:
The type key should match the “debugger” key in the settings. debuggerProfile should also match an existing profile in the settings. You can reload the config by clicking the 4th button below target name, or just delete all the targets and then click that refresh button.
I was wondering why I need to do this and why the defaults don’t work.
But I think that maybe the issue is that the debug mode want to runs go build. And kate configuration probably expect to have the legacy GOPATH location properly set to work.