Atom-beautify: Could not find 'uncrustify'. The program may not be installed.

Created on 2 Dec 2016  路  6Comments  路  Source: Glavin001/atom-beautify

Description

The results of beautification are not what I expect.

Expected Results

The beautified code should have looked like:

<INSERT CODE HERE>

Steps to Reproduce

  1. Add code to Atom editor
  2. Run command Atom Beautify: Beautify Editor
  3. This beautified code does not look right!

Debug

Here is a link to the debug.md Gist: https://gist.github.com/1a79e896764811977001b6ec62b23e55

Checklist

  • [ ] I have tried uninstalling and reinstalling Atom Beautify to ensure it installed properly
  • [ ] I have reloaded (or restarted) Atom to ensure it is not a caching issue
  • [ ] Searched for existing Atom Beautify Issues at https://github.com/Glavin001/atom-beautify/issues
    so I know this is not a duplicate issue
  • [ ] Generated debugging information and added link for debug.md Gist to this issue
question

All 6 comments

What kind of problem are you getting?

https://gist.github.com/anonymous/1a79e896764811977001b6ec62b23e55#results

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

You need to install Uncrustify: https://github.com/uncrustify/uncrustify
For example, on a Mac: https://github.com/Glavin001/atom-beautify/blob/master/.travis.yml#L99
brew install uncrustify

I'm on Windows 10

I don't use Windows, however these are the steps for Windows in AppVeyor: https://github.com/Glavin001/atom-beautify/blob/master/appveyor.yml#L117-L122

# Uncrustify
  - curl -k -L http://sourceforge.net/projects/uncrustify/files/uncrustify/uncrustify-0.61/uncrustify-0.61.3-gf65394e-win32.zip/download -o uncrustify.zip
  - cinst 7zip.commandline -y
  - 7za e uncrustify.zip -ouncrustify-d
  - "SET PATH=%cd%\\uncrustify-d;%PATH%"
  - where uncrustify

So I know it works on Windows, however there may be better instructions at https://github.com/uncrustify/uncrustify

I really want to focus on improving the installation experience for users. I have created a new Issue, #1687, to target this problem. Please provide your feedback! Thanks in advance.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

philiplb picture philiplb  路  5Comments

bartocc picture bartocc  路  5Comments

misterernest picture misterernest  路  3Comments

physcocode picture physcocode  路  3Comments

ghost picture ghost  路  4Comments