Skip to content
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

Repl stopped output in Go/Delve #423

Closed
diegocmsantos opened this issue Jan 13, 2025 · 6 comments
Closed

Repl stopped output in Go/Delve #423

diegocmsantos opened this issue Jan 13, 2025 · 6 comments

Comments

@diegocmsantos
Copy link

While using neovim with Go the repl stopped to output things.
It seems the delve debugger stopped to attach to the repl.
And it happens only to Go, when I am using rust it works as expected.

Any help?

@tttoad
Copy link

tttoad commented Jan 16, 2025

I guess this is a problem with nvim-dap.
You can use this commit(a6070b4e9e9a8ff1bc513c3748eff27080b0f44a) or tag(0.9.0).

packer.use({
	'mfussenegger/nvim-dap',
	commit = "a6070b4e9e9a8ff1bc513c3748eff27080b0f44a",
 --   or 
 --   tag="0.9.0",
})

It seems that commit 3b796163591a300a433e25384f2574419e51da1a caused this problem.

@tttoad
Copy link

tttoad commented Jan 16, 2025

see mfussenegger/nvim-dap#1425.

@tttoad
Copy link

tttoad commented Jan 17, 2025

leoluz/nvim-dap-go#109
You can use outputMode = 'remote'.

dap.configurations.go = {
	{
		type = 'go',
		name = 'Debug',
		request = 'launch',
		program = "${file}",
		outputMode = 'remote'
	}
}

@diegocmsantos
Copy link
Author

Hey @tttoad
Thanks for the replies
Yes, I have found this 'outputMode' field as a solution.
I am using it in launch.json file.

Thanks a lot for helping here.

Do you know why out of a sudden this field has become a requirement for outputting in the repl?
I have been using the launch.json way for debugging for quite a while and never needed this field until last week

@tttoad
Copy link

tttoad commented Jan 18, 2025

Hey @tttoad Thanks for the replies Yes, I have found this 'outputMode' field as a solution. I am using it in launch.json file.

Thanks a lot for helping here.

Do you know why out of a sudden this field has become a requirement for outputting in the repl? I have been using the launch.json way for debugging for quite a while and never needed this field until last week

You can see this: leoluz/nvim-dap-go#109.

@diegocmsantos
Copy link
Author

Perfect, thanks again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants