Closed ViBiOh closed 1 year ago
I don't think any of that stuff works since its not part of delve and they implemented it inside their vscode extension.
If you wanted to implement more of the vscode-go side it would go in here https://github.com/daveleroy/sublime_debugger/blob/a933215da8101d7496e68868a692845673c3983d/modules/adapters/go.py#L27
This is how they handle mode: "remote"
https://github.com/golang/vscode-go/blob/fa820d45d7b9217e949c21ffd13268e20c7e0ee4/src/debugAdapter/goDebug.ts#L453 which again is implemented outside of delve
Thanks, I'll take a look, I'm not familiar with Python, but worth give it a try ;)
I implemented part of this so the env
configuration option works but not the envFile
option. If you want to add support for envFile
you would need to parse the file and add its contents to the env variable.
https://github.com/daveleroy/sublime_debugger/commit/b3e0218fe022ef70b089053124db2cda57941b78
Hi 👋
Thank you for adapting the Debug Adapter Protocol into Sublime Text, it helps a lot to have almost an IDE in the text editor =)
I try to use it with Golang and Delve, but I have two issues. In both cases, if I run the same configuration in VsCode (adapting the env variable name), it works as expected. Is there something I did wrong?
Environment
I'm running the latest plugin version (installed today),
v0.9.3
. Sublime Text version is Dev Channel Build 4148, on macOS 13.2.1 and with delve 1.20.1 and golang 1.20.2.Env file not parsed
I'm trying to run the
main
of my app with a given.env
file. The environment contains the following content (configuration for turning JSON logging instead of plain text) and is at the root of my project.It seems not taken in account when launching (the log are not in JSON) with this configuration:
The protocol debug are the following
Connect to remote not working
I've tried to run my app from a Makefile, that read my
.env
with the following commandand the following config
I got this error