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

4.1.1 still not formatting 😭

Open antsav opened this issue 8 years ago • 8 comments

autoformat on save or on dropdown menu still not working for me style

antsav avatar Nov 29 '16 21:11 antsav

@antsav Try again followings on v4.1.0?

  • Packages > stylefmt > Format CSS
  • Context Menu > Format CSS
  • Command Palette (⌘ + shift + P) > Format CSS

1000ch avatar Apr 03 '17 14:04 1000ch

@1000ch still not working for me

stylefmt

antsav avatar Apr 12 '17 22:04 antsav

@antsav I was able to get the auto format to work if I first do a Command Palette (⌘ + shift + P) > Format CSS

After the first step it works on save for that file. This is still a bug for me too but that seems to be a temporary workaround.

brianespinosa avatar Apr 27 '17 15:04 brianespinosa

@brianespinosa unfortunately this doesn't work for me either (

stylefmt

antsav avatar Apr 27 '17 22:04 antsav

@antsav Would you please debug as followings?

  • Any logs in DevTools ⌘ + option + i?
  • Try installing manually to debug in detail?
    • Remove your installed atom-stylefmt.
    • Clone this repo to anywhere.
    • Create link to cloned repo ln -s ~/path/to/cloned/repo ~/.atom/packages/stylefmt

1000ch avatar Apr 28 '17 00:04 1000ch

@1000ch thank you for the response that is the error i'm getting on clean repo clone and linking to Atom as per your instrucitons

comet_css_ __projects_tracking-r_herald-v2_and_4_1_1_still_not_formatting _ issue__19 _1000ch_atom-stylefmt

comet_css_ ___projects_tracking-r_herald-v2

comet_css_ __projects_tracking-r_herald-v2_and_4_1_1_still_not_formatting _ issue__19 _1000ch_atom-stylefmt


changed to

  if (['css', 'scss', 'sass', 'less', 'postcss', 'jsx'].indexOf(grammar) === -1) {
    return Promise.reject(`${grammar} is not supported.`);
  }

now getting : comet_css_ ___projects_tracking-r_herald-v2

antsav avatar May 01 '17 18:05 antsav

@antsav Why was the file detected as postcss grammar?

1000ch avatar May 02 '17 14:05 1000ch

I have the same issue: it doesn't work when the file format is PostCSS. I want this format because it gets me the proper syntax highlighting for CSS variables/custom properties.

keithjgrant avatar May 09 '17 14:05 keithjgrant