我尝试过简单的不同设置:
{ "cmd": "rubocop '$file_name'" }
我也试过设置路径等:
{ "cmd": "rubocop '$file_name'","path": "~/.rvm/bin","selector": "source.rb","working_dir":"$project_path" }
对于这两个我收到一条错误消息:
[Errno 2] No such file or directory [cmd: rubocop 'configurer.rb'] [dir: /home/rafal/Documents/Projects/configurer] [path: /usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games] [Finished]
和:
[Errno 2] No such file or directory [cmd: rubocop 'configurer.rb'] [dir: /home/rafal/Documents/Projects/configurer] [path: ~/.rvm/bin] [Finished]
分别.我已经按照我在网上找到的一些教程以及StackOverflow的一些答案但没有运气.有关为何发生这种情况的任何想法?在当前打开的文件上运行Ruby Gem的正确和有效方法是什么? Gem Rubocop绝对安装.