:mega: Help Wanted - Looking for Maintainer: https://github.com/Glavin001/atom-beautify/issues/2572 | :lipstick: Universal beautification package for Atom editor (:warning: Currently migrating to https://github.com/Unibeautify/ and have very limited bandwidth for Atom-Beautify Issues. Thank you for your patience and understanding :heart: )
When trying to run atom-beautify using rubocop, I get the following error
Full error message:
See rubocop installation instructions at https://github.com/Glavin001/atom-beautify#beautifiers or go to http://rubocop.readthedocs.io/en/latest/installation/
You can configure Atom Beautify with the absolute path to 'rubocop' by setting 'Executable - Rubocop - Path' in the Atom Beautify package settings.
Your program is properly installed if running 'which rubocop' in your Terminal returns an absolute path to the executable.
Description
When trying to run atom-beautify using rubocop, I get the following error
Full error message:
I am using chruby: https://github.com/postmodern/chruby with ruby version 2.6.3 and rubocop 0.74.0.
Environment output:
Atom
process.env
output has path as:"/Users/mamuller/.toolbox/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Wireshark.app/Contents/MacOS:/Users/mamuller/.toolbox/bin"
with no GEM_HOME/GEM_PATH/GEM_ROOT set.
When running Atom via CLI,
process.env
reports the path to be:"/Users/mamuller/.toolbox/bin:/Users/mamuller/.gem/ruby/2.6.3/bin:/Users/mamuller/.rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/bin:/Users/mamuller/.rubies/ruby-2.6.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Wireshark.app/Contents/MacOS"
as well as GEM_HOME/GEM_PATH/GEM_ROOT being set correct.
The linter-rubocop plugin works correctly (started by CLI or by Mac dock) using the command:
/usr/local/bin/chruby-exec ruby -- rubocop
Input Before Beautification / # Expected Output / # Actual Output
These sections do not apply.
Steps to Reproduce
Atom Beautify: Beautify Editor
Debug
Here is a link to the
debug.md
Gist: https://gist.github.com/mullermp/a65a2ad60624cbe1e5ccdf96f9b6e185Checklist
I have:
Atom Beautify: Help Debug Editor
command in Atom and added link fordebug.md
Gist to this issue