Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.1.1 still not formatting 😭 #19

Open
antsav opened this issue Nov 29, 2016 · 8 comments
Open

4.1.1 still not formatting 😭 #19

antsav opened this issue Nov 29, 2016 · 8 comments

Comments

@antsav
Copy link

antsav commented Nov 29, 2016

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

@antsav antsav changed the title 4.0.0 still not formatting :-( 4.0.0 still not formatting 😭 Nov 29, 2016
@1000ch
Copy link
Owner

1000ch commented Apr 3, 2017

@antsav Try again followings on v4.1.0?

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

@antsav
Copy link
Author

antsav commented Apr 12, 2017

@1000ch still not working for me

stylefmt

@brianespinosa
Copy link

@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.

@antsav
Copy link
Author

antsav commented Apr 27, 2017

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

stylefmt

@antsav antsav changed the title 4.0.0 still not formatting 😭 4.1.1 still not formatting 😭 Apr 27, 2017
@1000ch
Copy link
Owner

1000ch commented Apr 28, 2017

@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

@antsav
Copy link
Author

antsav commented May 1, 2017

@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

@1000ch
Copy link
Owner

1000ch commented May 2, 2017

@antsav
Why was the file detected as postcss grammar?

@keithjgrant
Copy link

keithjgrant commented May 9, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants