解决:Failed to run File Watcher ‘goimports‘.The watcher has been disabled.Error: Invalid executable

Posted 林猛男

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决:Failed to run File Watcher ‘goimports‘.The watcher has been disabled.Error: Invalid executable相关的知识,希望对你有一定的参考价值。

一、问题

当我安装goimports遇到报错如下

14:19	Failed to run File Watcher 'goimports'.
			The watcher has been disabled.
			Error: Invalid executable

二、解决办法

  • 打开终端,切换到go的安装目录
cd /usr/local
  • 执行下面命令赋予文件权限:
sudo chmod -R 777 go/

三、原因:

操作/usr/local/go文件没有权限

以上是关于解决:Failed to run File Watcher ‘goimports‘.The watcher has been disabled.Error: Invalid executable的主要内容,如果未能解决你的问题,请参考以下文章

解决:Failed to run File Watcher ‘goimports‘.The watcher has been disabled.Error: Invalid executable

解决:Failed to run File Watcher ‘goimports‘.The watcher has been disabled.Error: Invalid executable

解决:Failed to run File Watcher ‘goimports‘.The watcher has been disabled.Error: Invalid executable

linux下出现nginx Failed to read PID from file /run/nginx.pid: Invalid argument

linux下出现nginx Failed to read PID from file /run/nginx.pid: Invalid argument

failed to create pid file /var/run/rsyncd.pid: File exists报错