atom-beautify icon indicating copy to clipboard operation
atom-beautify copied to clipboard

Could not find 'uncrustify'. The program may not be installed.

Open lifeofrifai opened this issue 4 years ago • 2 comments

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.

lifeofrifai avatar Apr 22 '20 07:04 lifeofrifai

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.

Bortechino avatar Jul 19 '20 14:07 Bortechino

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.

QuantumEntangledAndy avatar Jun 23 '22 02:06 QuantumEntangledAndy