Glavin001 / atom-beautify

: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: )
http://unibeautify.com/
MIT License
1.49k stars 454 forks source link

Unable to beautify vanilla Javascript or HTML or JSON. No eligible build target.: No configuration to build this project exists. #2580

Closed bassamanator closed 3 years ago

bassamanator commented 3 years ago

Description

I've been using atom-beautify for well over a year. My vanilla javascript and HTML code no longer beautifies. I get the following error:

No eligible build target.: No configuration to build this project exists.
    at /home/bassam/.atom/packages/build/lib/build.js:113:15

image

Input Before Beautification

This is what the code looked like before:

Javascript

const
    CANVASWIDTH = 1020

HTML

<div class="row justify-content-center">
<div class="col-auto">
<button type="submit" class="btn btn-info">
I agree
</button>
</div>
</div>

Expected Output

The beautified code should have looked like this: Javascript

const CANVASWIDTH = 1020;

HTML

<div class="row justify-content-center">
    <div class="col-auto">
        <button type="submit" class="btn btn-info">
            I agree
        </button>
    </div>
</div>

Actual Output

The beautified code actually looked like this:

No eligible build target.: No configuration to build this project exists.
    at /home/bassam/.atom/packages/build/lib/build.js:113:15

Steps to Reproduce

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

Debug

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

Checklist

I have:

bassamanator commented 3 years ago

It seems there was a conflict between atom-beautify and another package (build). I've disabled the other package and all seems well.