Skip to content

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

Open
@DarmSpalter3000

Description

Description

Every time I save my C++ Code an ERROR appears that says that my C++ Code could not be beautified because the program "uncrustify" may not be installed.
How can this be fixxed?

Input Before Beautification

This is what the code looked like before:

void setup (){
  pinMode(13, INPUT); //echo pin == mic pin
  pinMode(12, OUTPUT); //trig pin == speaker pin
}

digitalWrite(12, LOW);
delayMicroseconds(2);

digitalWrite(12, HIGH);
delayMicroseconds(10);
digitalWrite(12, LOW);

long dur = pulseIn(13, HIGH); //stellt reflection time fest

The beautified code actually looked like this:

void setup (){
  pinMode(13, INPUT); //echo pin == mic pin
  pinMode(12, OUTPUT); //trig pin == speaker pin
}

digitalWrite(12, LOW);
delayMicroseconds(2);

digitalWrite(12, HIGH);
delayMicroseconds(10);
digitalWrite(12, LOW);

long dur = pulseIn(13, HIGH); //stellt reflection time fest

Steps to Reproduce

  1. Add code to Atom editor
  2. Try to save the Code without the ERORR that the Code could not be uncrustifyed

Checklist

I have:

  • Tried uninstalling and reinstalling Atom Beautify to ensure it installed properly
  • Reloaded (or restarted) Atom to ensure it is not a caching issue
  • Filled out the Input, Expected, and Actual sections above or have edited/removed them in a way that fully describes the issue.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions