我安装了一个名为watcher的工具。
https://github.com/canthefason/go-watcher
在VS code中使用时,它的表现符合预期。
但是当我尝试在Jetbrains的Goland中使用它时,会出现以下问题:
watcher main.go --port 8080
2020/03/04 14:10:42 build started
Building ....
2020/03/04 14:10:43 build completed
Running ...
2020/03/04 14:10:43 process interrupted: signal: killed
毋庸置疑地说,go run main.go --port 8080
是可行的。
我使用的是MAC Catalina。
有什么建议吗?