我安装了一个名为 watcher 的实用程序。
https://github.com/canthefason/go-watcher
使用 VS 代码它可以按预期工作。
但是当我尝试在 Goland(来自 Jetbrains)中使用它时,我得到以下信息:
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
Run Code Online (Sandbox Code Playgroud)
不用说go run main.go --port 8080有效。
我用的是 MAC Catalina。
有什么建议么?
看起来像cmd.Wait() 的错误
if err := cmd.Wait(); err != nil {
log.Printf("process interrupted: %s \n", err)
...
Run Code Online (Sandbox Code Playgroud)
类似的报告是操作系统因内存不足 (OOM) 而终止进程,并且 dmesg 可能已记录该错误。
| 归档时间: |
|
| 查看次数: |
15974 次 |
| 最近记录: |