Delve Dlv Not Restart When Update Files on Golang Cosmtrek Air 12710…
If you’re facing issues with Delve (dlv
) not restarting when updating files in your Go project using Cosmtrek/Air version 1.27.10 and encountering a “port address already in use” error, there are a couple of solutions you can try. This problem often occurs due to lingering Delve processes that prevent the tool from restarting properly.
Solution 1: Revert to a Previous Version
You can revert to a previous version of Cosmtrek/Air where this issue might not exist. To do this, follow these steps: