背景:
Run arc diff --preview to create code revision on remote terminal, but exception happened.
nn@hhh:~/ppp$ arc diff --preview
Linting...
Exception
Error in parsing '.arclint' file, in key 'bin' for linter 'pylint'.
None of the configured binaries can be located.
(Run with `--trace` for a full exception trace.)
排查:
1、检查pylint 是否安装。确认安装
pip3 show pylint
2、--trace 查看full exception trace.
发现arc 帮我们执行检查命令which 'pylint'时,抛出异常
3、确认pylint是否能直接引用到
本地:ubuntu本地执行which 'pylint' 无报错,且尝试本地执行arc lint 也不报错
远程:remote terminal 运行,cmd not found
4、修改环境变量,将$HOME/.local/bin 添加到PATH 中
5、运行arc link 和 arc diff --preview, 执行成功