atom-beautify
atom-beautify copied to clipboard
Could not find 'uncrustify'. The program may not be installed.
See uncrustify installation instructions at https://github.com/Glavin001/atom-beautify#beautifiers or go to https://github.com/uncrustify/uncrustify You can configure Atom Beautify with the absolute path to 'uncrustify' by setting 'Executable - Uncrustify - Path' in the Atom Beautify package settings. Your program is properly installed if running 'where.exe uncrustify' in your CMD prompt returns an absolute path to the executable.
I have the same issue. System: Manjaro Linux x86_64-pc-linux-gnu gcc -v 10.1.0 (GCC) Uncrustify_d-0.71.0_f $ which uncrustify /usr/bin/uncrustify Setting absolute path '/usr/bin/uncrustify' in the section 'Executable - Uncrustify - Path' has not any result.
So for anyone coming here from google and is on manjaro.
In src/beautifiers/uncrustify/index.coffee
on line 20 there is version parsing.
parse: (text) ->
try
v = text.match(/uncrustify (\d+\.\d+)/)[1]
catch error
@error(error)
v = text.match(/Uncrustify-(\d+\.\d+)/)[1] if not v?
if v
return v + ".0"
Manjaro has a version string of Uncrustify_d-0.74.0_f
but the parser dosen't expect Uncrustify_d
only Uncrustify
or uncrustify
.