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.5k stars 453 forks source link

CSScomb not ordering #695

Closed FransTwisk closed 6 years ago

FransTwisk commented 8 years ago

I might just missed setting some config, but when I run beautify, it doesn't re-order my css properties. Mac OS X 10.11.1 Here's the debug:

Atom Beautify - Debugging information

The following debugging information was generated by Atom Beautify on Mon Dec 07 2015 15:34:30 GMT+0100 (CET).


Platform: darwin

Versions

Atom Version: 1.2.4

Atom Beautify Version: 0.28.19

Original file to be beautified

Original File Path: /Users/franstwisk/Desktop/test.css

Original File Grammar: CSS

Original File Language: CSS

Original File Contents:

.foo {
  height: 100px;
    background-color: #f3f3f3;
  width: 100px;
  font-color: #000;
}

Beautification options

Editor Options: Options from Atom Editor settings

{
    "_default": {
        "indent_size": 2,
        "indent_char": " ",
        "indent_with_tabs": false
    }
}

Config Options: Options from Atom Beautify package settings

{
    "css": {
        "newline_between_rules": true,
        "convert_quotes": "single",
        "no_lead_zero": true,
        "preserve_newlines": true,
        "selector_separator_newline": true,
        "indent_size": 2,
        "indent_char": " ",
        "wrap_line_length": 0,
        "indent_comments": true,
        "force_indentation": false,
        "align_assignments": false,
        "configPath": "",
        "predefinedConfig": "csscomb"
    },
    "html": {
        "end_with_newline": true,
        "indent_inner_html": false,
        "indent_size": 2,
        "indent_char": " ",
        "brace_style": "collapse",
        "indent_scripts": "normal",
        "wrap_line_length": 250,
        "wrap_attributes": "auto",
        "wrap_attributes_indent_size": 2,
        "preserve_newlines": true,
        "max_preserve_newlines": 10,
        "unformatted": [
            "a",
            "sub",
            "sup",
            "b",
            "i",
            "u"
        ],
        "extra_liners": [
            "head",
            "body",
            "/html"
        ]
    },
    "arduino": {
        "configPath": ""
    },
    "cs": {
        "configPath": ""
    },
    "c": {
        "configPath": ""
    },
    "cpp": {
        "configPath": ""
    },
    "d": {
        "configPath": ""
    },
    "gherkin": {
        "indent_size": 2,
        "indent_char": " "
    },
    "fortran": {
        "emacs_path": "",
        "emacs_script_path": ""
    },
    "java": {
        "configPath": ""
    },
    "js": {
        "indent_size": 2,
        "indent_char": " ",
        "indent_level": 0,
        "indent_with_tabs": false,
        "preserve_newlines": true,
        "max_preserve_newlines": 10,
        "space_in_paren": false,
        "jslint_happy": false,
        "space_after_anon_function": false,
        "brace_style": "collapse",
        "break_chained_methods": false,
        "keep_array_indentation": false,
        "keep_function_indentation": false,
        "space_before_conditional": true,
        "eval_code": false,
        "unescape_strings": false,
        "wrap_line_length": 0,
        "end_with_newline": false,
        "end_with_comma": false
    },
    "objectivec": {
        "configPath": ""
    },
    "pawn": {
        "configPath": ""
    },
    "perl": {
        "perltidy_profile": ""
    },
    "php": {
        "cs_fixer_path": "",
        "fixers": "",
        "level": ""
    },
    "python": {
        "max_line_length": 79,
        "indent_size": 4,
        "ignore": [
            "E24"
        ]
    },
    "ruby": {
        "indent_size": 2,
        "indent_char": " "
    },
    "rust": {
        "rustfmt_path": ""
    },
    "sql": {
        "indent_size": 2,
        "keywords": "upper",
        "identifiers": "lower"
    },
    "vala": {
        "configPath": ""
    }
}

Home Options: Options from /Users/franstwisk/.jsbeautifyrc

{
    "_default": {}
}

EditorConfig Options: Options from EditorConfig file

{
    "_default": {}
}

Project Options: Options from .jsbeautifyrc files starting from directory /Users/franstwisk/Desktop and going up to root

[
    {
        "_default": {}
    },
    {
        "_default": {}
    },
    {
        "_default": {}
    }
]

Final Options: Final combined options that are used

{
    "indent_size": 2,
    "indent_char": " ",
    "indent_with_tabs": false
}

Package Settings: The raw package settings options

{
    "analytics": false,
    "css_newline_between_rules": true,
    "html_end_with_newline": true,
    "beautifyEntireFileOnSave": false,
    "css_convert_quotes": "single",
    "css_no_lead_zero": true,
    "css_preserve_newlines": true,
    "css_selector_separator_newline": true,
    "_analyticsUserId": "",
    "_loggerLevel": "warn",
    "muteUnsupportedLanguageErrors": false,
    "muteAllErrors": false,
    "arduino_configPath": "",
    "cs_configPath": "",
    "c_configPath": "",
    "cpp_configPath": "",
    "css_indent_size": 2,
    "css_indent_char": " ",
    "css_wrap_line_length": 0,
    "css_indent_comments": true,
    "css_force_indentation": false,
    "css_align_assignments": false,
    "css_configPath": "",
    "css_predefinedConfig": "csscomb",
    "d_configPath": "",
    "gherkin_indent_size": 2,
    "gherkin_indent_char": " ",
    "fortran_emacs_path": "",
    "fortran_emacs_script_path": "",
    "html_indent_inner_html": false,
    "html_indent_size": 2,
    "html_indent_char": " ",
    "html_brace_style": "collapse",
    "html_indent_scripts": "normal",
    "html_wrap_line_length": 250,
    "html_wrap_attributes": "auto",
    "html_wrap_attributes_indent_size": 2,
    "html_preserve_newlines": true,
    "html_max_preserve_newlines": 10,
    "html_unformatted": [
        "a",
        "sub",
        "sup",
        "b",
        "i",
        "u"
    ],
    "html_extra_liners": [
        "head",
        "body",
        "/html"
    ],
    "java_configPath": "",
    "js_indent_size": 2,
    "js_indent_char": " ",
    "js_indent_level": 0,
    "js_indent_with_tabs": false,
    "js_preserve_newlines": true,
    "js_max_preserve_newlines": 10,
    "js_space_in_paren": false,
    "js_jslint_happy": false,
    "js_space_after_anon_function": false,
    "js_brace_style": "collapse",
    "js_break_chained_methods": false,
    "js_keep_array_indentation": false,
    "js_keep_function_indentation": false,
    "js_space_before_conditional": true,
    "js_eval_code": false,
    "js_unescape_strings": false,
    "js_wrap_line_length": 0,
    "js_end_with_newline": false,
    "js_end_with_comma": false,
    "objectivec_configPath": "",
    "pawn_configPath": "",
    "perl_perltidy_profile": "",
    "php_cs_fixer_path": "",
    "php_fixers": "",
    "php_level": "",
    "python_max_line_length": 79,
    "python_indent_size": 4,
    "python_ignore": [
        "E24"
    ],
    "ruby_indent_size": 2,
    "ruby_indent_char": " ",
    "rust_rustfmt_path": "",
    "sql_indent_size": 2,
    "sql_keywords": "upper",
    "sql_identifiers": "lower",
    "vala_configPath": "",
    "language_arduino_disabled": false,
    "language_arduino_default_beautifier": "Uncrustify",
    "language_arduino_beautify_on_save": false,
    "language_cs_disabled": false,
    "language_cs_default_beautifier": "Uncrustify",
    "language_cs_beautify_on_save": false,
    "language_c_disabled": false,
    "language_c_default_beautifier": "Uncrustify",
    "language_c_beautify_on_save": false,
    "language_coffeescript_disabled": false,
    "language_coffeescript_default_beautifier": "coffee-fmt",
    "language_coffeescript_beautify_on_save": false,
    "language_cpp_disabled": false,
    "language_cpp_default_beautifier": "Uncrustify",
    "language_cpp_beautify_on_save": false,
    "language_css_disabled": false,
    "language_css_default_beautifier": "JS Beautify",
    "language_css_beautify_on_save": false,
    "language_csv_disabled": false,
    "language_csv_default_beautifier": "Pretty Diff",
    "language_csv_beautify_on_save": false,
    "language_d_disabled": false,
    "language_d_default_beautifier": "Uncrustify",
    "language_d_beautify_on_save": false,
    "language_ejs_disabled": false,
    "language_ejs_default_beautifier": "Pretty Diff",
    "language_ejs_beautify_on_save": false,
    "language_erb_disabled": false,
    "language_erb_default_beautifier": "Pretty Diff",
    "language_erb_beautify_on_save": false,
    "language_gherkin_disabled": false,
    "language_gherkin_default_beautifier": "Gherkin formatter",
    "language_gherkin_beautify_on_save": false,
    "language_go_disabled": false,
    "language_go_default_beautifier": "gofmt",
    "language_go_beautify_on_save": false,
    "language_fortran_disabled": false,
    "language_fortran_default_beautifier": "Fortran Beautifier",
    "language_fortran_beautify_on_save": false,
    "language_handlebars_disabled": false,
    "language_handlebars_default_beautifier": "JS Beautify",
    "language_handlebars_beautify_on_save": false,
    "language_haskell_disabled": false,
    "language_haskell_default_beautifier": "stylish-haskell",
    "language_haskell_beautify_on_save": false,
    "language_html_disabled": false,
    "language_html_default_beautifier": "JS Beautify",
    "language_html_beautify_on_save": false,
    "language_java_disabled": false,
    "language_java_default_beautifier": "Uncrustify",
    "language_java_beautify_on_save": false,
    "language_js_disabled": false,
    "language_js_default_beautifier": "JS Beautify",
    "language_js_beautify_on_save": false,
    "language_json_disabled": false,
    "language_json_default_beautifier": "JS Beautify",
    "language_json_beautify_on_save": false,
    "language_jsx_disabled": false,
    "language_jsx_default_beautifier": "Pretty Diff",
    "language_jsx_beautify_on_save": false,
    "language_less_disabled": false,
    "language_less_default_beautifier": "Pretty Diff",
    "language_less_beautify_on_save": false,
    "language_markdown_disabled": false,
    "language_markdown_default_beautifier": "Tidy Markdown",
    "language_markdown_beautify_on_save": false,
    "language_marko_disabled": false,
    "language_marko_default_beautifier": "JS Beautify",
    "language_marko_beautify_on_save": false,
    "language_mustache_disabled": false,
    "language_mustache_default_beautifier": "JS Beautify",
    "language_mustache_beautify_on_save": false,
    "language_objectivec_disabled": false,
    "language_objectivec_default_beautifier": "Uncrustify",
    "language_objectivec_beautify_on_save": false,
    "language_pawn_disabled": false,
    "language_pawn_default_beautifier": "Uncrustify",
    "language_pawn_beautify_on_save": false,
    "language_perl_disabled": false,
    "language_perl_default_beautifier": "Perltidy",
    "language_perl_beautify_on_save": false,
    "language_php_disabled": false,
    "language_php_default_beautifier": "PHP-CS-Fixer",
    "language_php_beautify_on_save": false,
    "language_puppet_disabled": false,
    "language_puppet_default_beautifier": "puppet-lint",
    "language_puppet_beautify_on_save": false,
    "language_python_disabled": false,
    "language_python_default_beautifier": "autopep8",
    "language_python_beautify_on_save": false,
    "language_ruby_disabled": false,
    "language_ruby_default_beautifier": "Rubocop",
    "language_ruby_beautify_on_save": false,
    "language_rust_disabled": false,
    "language_rust_default_beautifier": "rustfmt",
    "language_rust_beautify_on_save": false,
    "language_sass_disabled": false,
    "language_sass_default_beautifier": "Pretty Diff",
    "language_sass_beautify_on_save": false,
    "language_scss_disabled": false,
    "language_scss_default_beautifier": "Pretty Diff",
    "language_scss_beautify_on_save": false,
    "language_spacebars_disabled": false,
    "language_spacebars_default_beautifier": "Pretty Diff",
    "language_spacebars_beautify_on_save": false,
    "language_sql_disabled": false,
    "language_sql_default_beautifier": "sqlformat",
    "language_sql_beautify_on_save": false,
    "language_svg_disabled": false,
    "language_svg_default_beautifier": "Pretty Diff",
    "language_svg_beautify_on_save": false,
    "language_swig_disabled": false,
    "language_swig_default_beautifier": "Pretty Diff",
    "language_swig_beautify_on_save": false,
    "language_tss_disabled": false,
    "language_tss_default_beautifier": "Pretty Diff",
    "language_tss_beautify_on_save": false,
    "language_twig_disabled": false,
    "language_twig_default_beautifier": "Pretty Diff",
    "language_twig_beautify_on_save": false,
    "language_typescript_disabled": false,
    "language_typescript_default_beautifier": "TypeScript Formatter",
    "language_typescript_beautify_on_save": false,
    "language_vala_disabled": false,
    "language_vala_default_beautifier": "Uncrustify",
    "language_vala_beautify_on_save": false,
    "language_visualforce_disabled": false,
    "language_visualforce_default_beautifier": "Pretty Diff",
    "language_visualforce_beautify_on_save": false,
    "language_xml_disabled": false,
    "language_xml_default_beautifier": "Pretty Diff",
    "language_xml_beautify_on_save": false
}

Results

Beautified File Contents:

.foo {
  height: 100px;
  background-color: #f3f3f3;
  width: 100px;
  font-color: #000;
}

Original vs. Beautified Diff:

Index: /Users/franstwisk/Desktop/test.css
===================================================================
--- /Users/franstwisk/Desktop/test.css  original
+++ /Users/franstwisk/Desktop/test.css  beautified
@@ -1,6 +1,6 @@
 .foo {
   height: 100px;
-    background-color: #f3f3f3;
+  background-color: #f3f3f3;
   width: 100px;
   font-color: #000;
 }
\ No newline at end of file

Logs:

2015-12-07T14:34:30.218Z - info: [beautifiers/index.coffee] beautify .foo {
  height: 100px;
    background-color: #f3f3f3;
  width: 100px;
  font-color: #000;
} [ { _default: { indent_size: 2, indent_char: ' ', indent_with_tabs: false } },
  { css: 
     { newline_between_rules: true,
       convert_quotes: 'single',
       no_lead_zero: true,
       preserve_newlines: true,
       selector_separator_newline: true,
       indent_size: 2,
       indent_char: ' ',
       wrap_line_length: 0,
       indent_comments: true,
       force_indentation: false,
       align_assignments: false,
       configPath: '',
       predefinedConfig: 'csscomb' },
    html: 
     { end_with_newline: true,
       indent_inner_html: false,
       indent_size: 2,
       indent_char: ' ',
       brace_style: 'collapse',
       indent_scripts: 'normal',
       wrap_line_length: 250,
       wrap_attributes: 'auto',
       wrap_attributes_indent_size: 2,
       preserve_newlines: true,
       max_preserve_newlines: 10,
       unformatted: [Object],
       extra_liners: [Object] },
    arduino: { configPath: '' },
    cs: { configPath: '' },
    c: { configPath: '' },
    cpp: { configPath: '' },
    d: { configPath: '' },
    gherkin: { indent_size: 2, indent_char: ' ' },
    fortran: { emacs_path: '', emacs_script_path: '' },
    java: { configPath: '' },
    js: 
     { indent_size: 2,
       indent_char: ' ',
       indent_level: 0,
       indent_with_tabs: false,
       preserve_newlines: true,
       max_preserve_newlines: 10,
       space_in_paren: false,
       jslint_happy: false,
       space_after_anon_function: false,
       brace_style: 'collapse',
       break_chained_methods: false,
       keep_array_indentation: false,
       keep_function_indentation: false,
       space_before_conditional: true,
       eval_code: false,
       unescape_strings: false,
       wrap_line_length: 0,
       end_with_newline: false,
       end_with_comma: false },
    objectivec: { configPath: '' },
    pawn: { configPath: '' },
    perl: { perltidy_profile: '' },
    php: { cs_fixer_path: '', fixers: '', level: '' },
    python: { max_line_length: 79, indent_size: 4, ignore: [Object] },
    ruby: { indent_size: 2, indent_char: ' ' },
    rust: { rustfmt_path: '' },
    sql: { indent_size: 2, keywords: 'upper', identifiers: 'lower' },
    vala: { configPath: '' } },
  { _default: {} },
  { _default: {} },
  { _default: {} },
  { _default: {} },
  { _default: {} } ] CSS /Users/franstwisk/Desktop/test.css undefined
2015-12-07T14:34:30.218Z - verbose: [beautifiers/index.coffee]  indent_size=2, indent_char= , indent_with_tabs=false, newline_between_rules=true, convert_quotes=single, no_lead_zero=true, preserve_newlines=true, selector_separator_newline=true, indent_size=2, indent_char= , wrap_line_length=0, indent_comments=true, force_indentation=false, align_assignments=false, configPath=, predefinedConfig=csscomb, end_with_newline=true, indent_inner_html=false, indent_size=2, indent_char= , brace_style=collapse, indent_scripts=normal, wrap_line_length=250, wrap_attributes=auto, wrap_attributes_indent_size=2, preserve_newlines=true, max_preserve_newlines=10, unformatted=[a, sub, sup, b, i, u], extra_liners=[head, body, /html], configPath=, configPath=, configPath=, configPath=, configPath=, indent_size=2, indent_char= , emacs_path=, emacs_script_path=, configPath=, indent_size=2, indent_char= , indent_level=0, indent_with_tabs=false, preserve_newlines=true, max_preserve_newlines=10, space_in_paren=false, jslint_happy=false, space_after_anon_function=false, brace_style=collapse, break_chained_methods=false, keep_array_indentation=false, keep_function_indentation=false, space_before_conditional=true, eval_code=false, unescape_strings=false, wrap_line_length=0, end_with_newline=false, end_with_comma=false, configPath=, configPath=, perltidy_profile=, cs_fixer_path=, fixers=, level=, max_line_length=79, indent_size=4, ignore=[E24], indent_size=2, indent_char= , rustfmt_path=, indent_size=2, keywords=upper, identifiers=lower, configPath=, , , , , 
2015-12-07T14:34:30.219Z - verbose: [beautifiers/index.coffee] [ { name: 'CSS',
    namespace: 'css',
    grammars: [ 'CSS' ],
    extensions: [ 'css' ],
    defaultBeautifier: 'JS Beautify',
    options: 
     { indent_size: [Object],
       indent_char: [Object],
       selector_separator_newline: [Object],
       newline_between_rules: [Object],
       preserve_newlines: [Object],
       wrap_line_length: [Object],
       indent_comments: [Object],
       force_indentation: [Object],
       convert_quotes: [Object],
       align_assignments: [Object],
       no_lead_zero: [Object],
       configPath: [Object],
       predefinedConfig: [Object] },
    beautifiers: 
     [ 'CSScomb',
       'CSScomb',
       'JS Beautify',
       'JS Beautify',
       'JS Beautify',
       'JS Beautify',
       'JS Beautify',
       'JS Beautify',
       'Pretty Diff',
       'Pretty Diff',
       'Pretty Diff',
       'Pretty Diff',
       'Pretty Diff',
       'Pretty Diff',
       'Pretty Diff',
       'Pretty Diff',
       'Pretty Diff',
       'Pretty Diff',
       'Pretty Diff',
       'Pretty Diff',
       'Pretty Diff',
       'Pretty Diff' ] } ] 'CSS' 'css'
2015-12-07T14:34:30.219Z - verbose: [beautifiers/index.coffee] Language CSS supported
2015-12-07T14:34:30.219Z - verbose: [beautifiers/index.coffee] getOptions selections [ 'css' ] indent_size=2, indent_char= , indent_with_tabs=false, newline_between_rules=true, convert_quotes=single, no_lead_zero=true, preserve_newlines=true, selector_separator_newline=true, indent_size=2, indent_char= , wrap_line_length=0, indent_comments=true, force_indentation=false, align_assignments=false, configPath=, predefinedConfig=csscomb, end_with_newline=true, indent_inner_html=false, indent_size=2, indent_char= , brace_style=collapse, indent_scripts=normal, wrap_line_length=250, wrap_attributes=auto, wrap_attributes_indent_size=2, preserve_newlines=true, max_preserve_newlines=10, unformatted=[a, sub, sup, b, i, u], extra_liners=[head, body, /html], configPath=, configPath=, configPath=, configPath=, configPath=, indent_size=2, indent_char= , emacs_path=, emacs_script_path=, configPath=, indent_size=2, indent_char= , indent_level=0, indent_with_tabs=false, preserve_newlines=true, max_preserve_newlines=10, space_in_paren=false, jslint_happy=false, space_after_anon_function=false, brace_style=collapse, break_chained_methods=false, keep_array_indentation=false, keep_function_indentation=false, space_before_conditional=true, eval_code=false, unescape_strings=false, wrap_line_length=0, end_with_newline=false, end_with_comma=false, configPath=, configPath=, perltidy_profile=, cs_fixer_path=, fixers=, level=, max_line_length=79, indent_size=4, ignore=[E24], indent_size=2, indent_char= , rustfmt_path=, indent_size=2, keywords=upper, identifiers=lower, configPath=, , , , , 
2015-12-07T14:34:30.220Z - verbose: [beautifiers/index.coffee] true indent_size=2, indent_char= , indent_with_tabs=false
2015-12-07T14:34:30.220Z - verbose: [beautifiers/index.coffee] options css undefined
2015-12-07T14:34:30.220Z - verbose: [beautifiers/index.coffee] options css indent_size=2, indent_char= , indent_with_tabs=false
2015-12-07T14:34:30.220Z - verbose: [beautifiers/index.coffee] true newline_between_rules=true, convert_quotes=single, no_lead_zero=true, preserve_newlines=true, selector_separator_newline=true, indent_size=2, indent_char= , wrap_line_length=0, indent_comments=true, force_indentation=false, align_assignments=false, configPath=, predefinedConfig=csscomb, end_with_newline=true, indent_inner_html=false, indent_size=2, indent_char= , brace_style=collapse, indent_scripts=normal, wrap_line_length=250, wrap_attributes=auto, wrap_attributes_indent_size=2, preserve_newlines=true, max_preserve_newlines=10, unformatted=[a, sub, sup, b, i, u], extra_liners=[head, body, /html], configPath=, configPath=, configPath=, configPath=, configPath=, indent_size=2, indent_char= , emacs_path=, emacs_script_path=, configPath=, indent_size=2, indent_char= , indent_level=0, indent_with_tabs=false, preserve_newlines=true, max_preserve_newlines=10, space_in_paren=false, jslint_happy=false, space_after_anon_function=false, brace_style=collapse, break_chained_methods=false, keep_array_indentation=false, keep_function_indentation=false, space_before_conditional=true, eval_code=false, unescape_strings=false, wrap_line_length=0, end_with_newline=false, end_with_comma=false, configPath=, configPath=, perltidy_profile=, cs_fixer_path=, fixers=, level=, max_line_length=79, indent_size=4, ignore=[E24], indent_size=2, indent_char= , rustfmt_path=, indent_size=2, keywords=upper, identifiers=lower, configPath=
2015-12-07T14:34:30.220Z - verbose: [beautifiers/index.coffee] options css newline_between_rules=true, convert_quotes=single, no_lead_zero=true, preserve_newlines=true, selector_separator_newline=true, indent_size=2, indent_char= , wrap_line_length=0, indent_comments=true, force_indentation=false, align_assignments=false, configPath=, predefinedConfig=csscomb
2015-12-07T14:34:30.220Z - verbose: [beautifiers/index.coffee] options css newline_between_rules=true, convert_quotes=single, no_lead_zero=true, preserve_newlines=true, selector_separator_newline=true, indent_size=2, indent_char= , wrap_line_length=0, indent_comments=true, force_indentation=false, align_assignments=false, configPath=, predefinedConfig=csscomb
2015-12-07T14:34:30.220Z - verbose: [beautifiers/index.coffee] true 
2015-12-07T14:34:30.221Z - verbose: [beautifiers/index.coffee] options css undefined
2015-12-07T14:34:30.221Z - verbose: [beautifiers/index.coffee] options css
2015-12-07T14:34:30.221Z - verbose: [beautifiers/index.coffee] true 
2015-12-07T14:34:30.221Z - verbose: [beautifiers/index.coffee] options css undefined
2015-12-07T14:34:30.221Z - verbose: [beautifiers/index.coffee] options css
2015-12-07T14:34:30.221Z - verbose: [beautifiers/index.coffee] true 
2015-12-07T14:34:30.221Z - verbose: [beautifiers/index.coffee] options css undefined
2015-12-07T14:34:30.221Z - verbose: [beautifiers/index.coffee] options css
2015-12-07T14:34:30.221Z - verbose: [beautifiers/index.coffee] true 
2015-12-07T14:34:30.221Z - verbose: [beautifiers/index.coffee] options css undefined
2015-12-07T14:34:30.221Z - verbose: [beautifiers/index.coffee] options css
2015-12-07T14:34:30.221Z - verbose: [beautifiers/index.coffee] true 
2015-12-07T14:34:30.221Z - verbose: [beautifiers/index.coffee] options css undefined
2015-12-07T14:34:30.221Z - verbose: [beautifiers/index.coffee] options css
2015-12-07T14:34:30.221Z - verbose: [beautifiers/index.coffee] CSS name=CSS, namespace=css, grammars=[CSS], extensions=[css], defaultBeautifier=JS Beautify, type=integer, default=2, minimum=0, description=Indentation size/length (Supported by JS Beautify, Pretty Diff), title=CSS - Indent size, beautifiers=[JS Beautify, Pretty Diff], key=indent_size, $ref=$, type=string, default= , minimum=0, description=Indentation character (Supported by JS Beautify, Pretty Diff), title=CSS - Indent char, beautifiers=[JS Beautify, Pretty Diff], key=indent_char, $ref=$, type=boolean, default=false, description=Add a newline between multiple selectors (Supported by JS Beautify), title=CSS - Selector separator newline, beautifiers=[JS Beautify], key=selector_separator_newline, $ref=$, type=boolean, default=false, description=Add a newline between CSS rules (Supported by JS Beautify, Pretty Diff), title=CSS - Newline between rules, beautifiers=[JS Beautify, Pretty Diff], key=newline_between_rules, $ref=$, type=boolean, default=false, description=Retain empty lines. Consecutive empty lines will be converted to a single empty line. (Supported by JS Beautify, Pretty Diff), title=CSS - Preserve newlines, beautifiers=[JS Beautify, Pretty Diff], key=preserve_newlines, $ref=$, type=integer, default=0, description=Maximum amount of characters per line (0 = disable) (Supported by JS Beautify, Pretty Diff), title=CSS - Wrap line length, beautifiers=[JS Beautify, Pretty Diff], key=wrap_line_length, $ref=$, type=boolean, default=true, description=Determines whether comments should be indented. (Supported by Pretty Diff), title=CSS - Indent comments, beautifiers=[Pretty Diff], key=indent_comments, $ref=$, type=boolean, default=false, description=if indentation should be forcefully applied to markup even if it disruptively adds unintended whitespace to the documents rendered output (Supported by Pretty Diff), title=CSS - Force indentation, beautifiers=[Pretty Diff], key=force_indentation, $ref=$, type=string, default=none, description=Convert the quote characters delimiting strings from either double or single quotes to the other. (Supported by Pretty Diff), enum=[none, double, single], title=CSS - Convert quotes, beautifiers=[Pretty Diff], key=convert_quotes, $ref=$, type=boolean, default=false, description=If lists of assignments or properties should be vertically aligned for faster and easier reading. (Supported by Pretty Diff), title=CSS - Align assignments, beautifiers=[Pretty Diff], key=align_assignments, $ref=$, type=boolean, default=false, description=If in CSS values leading 0s immediately preceeding a decimal should be removed or prevented. (Supported by Pretty Diff), title=CSS - No lead zero, beautifiers=[Pretty Diff], key=no_lead_zero, $ref=$, title=CSS - comb custom config file, type=string, default=, description=Path to custom CSScomb config file, used in absense of a `.csscomb.json` or `.csscomb.cson` at the root of your project. (Supported by CSScomb), beautifiers=[CSScomb], key=configPath, $ref=$, title=CSS - comb predefined config, type=string, default=csscomb, description=Used if neither a project or custom config file exists. (Supported by CSScomb), enum=[csscomb, yandex, zen], beautifiers=[CSScomb], key=predefinedConfig, $ref=$, beautifiers=[CSScomb, CSScomb, JS Beautify, JS Beautify, JS Beautify, JS Beautify, JS Beautify, JS Beautify, Pretty Diff, Pretty Diff, Pretty Diff, Pretty Diff, Pretty Diff, Pretty Diff, Pretty Diff, Pretty Diff, Pretty Diff, Pretty Diff, Pretty Diff, Pretty Diff, Pretty Diff, Pretty Diff]
2015-12-07T14:34:30.222Z - verbose: [beautifiers/index.coffee] options indent_size=2, indent_char= , indent_with_tabs=false, newline_between_rules=true, convert_quotes=single, no_lead_zero=true, preserve_newlines=true, selector_separator_newline=true, wrap_line_length=0, indent_comments=true, force_indentation=false, align_assignments=false, configPath=, predefinedConfig=csscomb
2015-12-07T14:34:30.223Z - verbose: [beautifiers/index.coffee] beautifiers 0=CSScomb, 1=JS Beautify, 2=Pretty Diff
2015-12-07T14:34:30.223Z - verbose: [beautifiers/index.coffee] CSS /Users/franstwisk/Desktop/test.css { indent_size: 2,
  indent_char: ' ',
  indent_with_tabs: false,
  newline_between_rules: true,
  convert_quotes: 'single',
  no_lead_zero: true,
  preserve_newlines: true,
  selector_separator_newline: true,
  wrap_line_length: 0,
  indent_comments: true,
  force_indentation: false,
  align_assignments: false,
  configPath: '',
  predefinedConfig: 'csscomb' } indent_size=2, indent_char= , indent_with_tabs=false, newline_between_rules=true, convert_quotes=single, no_lead_zero=true, preserve_newlines=true, selector_separator_newline=true, indent_size=2, indent_char= , wrap_line_length=0, indent_comments=true, force_indentation=false, align_assignments=false, configPath=, predefinedConfig=csscomb, end_with_newline=true, indent_inner_html=false, indent_size=2, indent_char= , brace_style=collapse, indent_scripts=normal, wrap_line_length=250, wrap_attributes=auto, wrap_attributes_indent_size=2, preserve_newlines=true, max_preserve_newlines=10, unformatted=[a, sub, sup, b, i, u], extra_liners=[head, body, /html], configPath=, configPath=, configPath=, configPath=, configPath=, indent_size=2, indent_char= , emacs_path=, emacs_script_path=, configPath=, indent_size=2, indent_char= , indent_level=0, indent_with_tabs=false, preserve_newlines=true, max_preserve_newlines=10, space_in_paren=false, jslint_happy=false, space_after_anon_function=false, brace_style=collapse, break_chained_methods=false, keep_array_indentation=false, keep_function_indentation=false, space_before_conditional=true, eval_code=false, unescape_strings=false, wrap_line_length=0, end_with_newline=false, end_with_comma=false, configPath=, configPath=, perltidy_profile=, cs_fixer_path=, fixers=, level=, max_line_length=79, indent_size=4, ignore=[E24], indent_size=2, indent_char= , rustfmt_path=, indent_size=2, keywords=upper, identifiers=lower, configPath=, , , , , 
2015-12-07T14:34:30.223Z - verbose: [beautifiers/index.coffee] beautifier JS Beautify
2015-12-07T14:34:30.224Z - verbose: [beautifiers/beautifier.coffee] JS Beautify language CSS
marek1545 commented 8 years ago

I have the same problem on Windows 7. My version atom-Beautify 0.28.19.

jerone commented 8 years ago

Property sorting isn't enabled by default. You need to add the objsort option to your .jsbeautifyrc, like so:

{
    "css": {
        "objsort": "css"
    }
}
benlind commented 7 years ago

Adding "objsort": "css" to my .jsbeautifyrc (as per the above comment) does not solve the problem for me. Properties remain unsorted.

jonny-harte commented 7 years ago

Hi, I'm having a similar issue. My comb custom config file doesn't appear to be working and it uses the comb predefined config instead?

Path to custom CSS Comb = /Users/Jonny/Google\ Drive/.csscomb.json

.csscomb.json

{
"remove-empty-rulesets": true,
    "always-semicolon": true,
    "color-case": "lower",
    "block-indent": "  ",
    "color-shorthand": false,
    "element-case": "lower",
    "eof-newline": true,
    "leading-zero": false,
    "quotes": "single",
    "sort-order-fallback": "abc",
    "space-before-colon": "",
    "space-after-colon": " ",
    "space-before-combinator": " ",
    "space-after-combinator": " ",
    "space-between-declarations": "\n",
    "space-before-opening-brace": " ",
    "space-after-opening-brace": "\n",
    "space-after-selector-delimiter": "\n",
    "space-before-selector-delimiter": "",
    "space-before-closing-brace": "\n",
    "strip-spaces": true,
    "tab-size": true,
    "unitless-zero": true,
    "vendor-prefix-align": true
}
Glavin001 commented 7 years ago

Pretty Diff supports the objsort property: https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/prettydiff.coffee#L18

However, this is not applicable for CSSComb. The csscomb.json file is directly passed to CSSComb: https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/csscomb.coffee#L10-L39

I recommend either switching to using Pretty Diff for CSS or creating an issue over at https://github.com/csscomb/csscomb.js

prettydiff commented 7 years ago

@benlind Could you provide a code sample or debug.md file so that I can see anything different is happening with your code?

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. If this is still an issue, please add a comment. It will be closed if no further activity occurs. Thank you for your contributions.