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

Java and uncrustify #718

Closed
fthuin opened this issue Dec 19, 2015 · 6 comments
Closed

Java and uncrustify #718

fthuin opened this issue Dec 19, 2015 · 6 comments
Labels

Comments

@fthuin
Copy link

fthuin commented Dec 19, 2015

Hello everyone,

I just installed uncrustify to use atom-beautify on a Java File. The problem is that it doesn't do the work : it suppresses all my indentation, the entire text is pulled to the left...

That's certainly a problem of configuration, but the wiki or the readme didn't help me. Can someone here explain how to set it up ?

Atom Beautify - Debugging information

The following debugging information was generated by Atom Beautify on Sat Dec 19 2015 19:32:36 GMT+0100 (CET).


Platform: linux

Versions

Atom Version: 1.1.0

Atom Beautify Version: 0.28.19

Original file to be beautified

Original File Path: /media/florian/26AACE1AAACDE701/Users/Florian/Documents/UCL/Q7/LINGI2241 - Architecture and performance of computer systems/Group_work_1/github/group_work_2/src/main/utils/NetworkNode.java

Original File Grammar: Java

Original File Language: Java

Original File Contents:

package utils;

public abstract class NetworkNode {

    abstract void send();
    abstract void receive();
    abstract void start();
    abstract void stop();
}

Beautification options

Editor Options:
Options from Atom Editor settings

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

Config Options:
Options from Atom Beautify package settings

{
    "java": {
        "configPath": "/home/florian/.atom/packages/atom-beautify/uncrustify.cfg"
    },
    "arduino": {
        "configPath": ""
    },
    "cs": {
        "configPath": ""
    },
    "c": {
        "configPath": ""
    },
    "cpp": {
        "configPath": ""
    },
    "css": {
        "indent_size": 4,
        "indent_char": " ",
        "selector_separator_newline": false,
        "newline_between_rules": false,
        "preserve_newlines": false,
        "wrap_line_length": 0,
        "indent_comments": true,
        "force_indentation": false,
        "convert_quotes": "none",
        "align_assignments": false,
        "no_lead_zero": false,
        "configPath": "",
        "predefinedConfig": "csscomb"
    },
    "d": {
        "configPath": ""
    },
    "gherkin": {
        "indent_size": 4,
        "indent_char": " "
    },
    "fortran": {
        "emacs_path": "",
        "emacs_script_path": ""
    },
    "html": {
        "indent_inner_html": false,
        "indent_size": 4,
        "indent_char": " ",
        "brace_style": "collapse",
        "indent_scripts": "normal",
        "wrap_line_length": 250,
        "wrap_attributes": "auto",
        "wrap_attributes_indent_size": 4,
        "preserve_newlines": true,
        "max_preserve_newlines": 10,
        "unformatted": [
            "a",
            "sub",
            "sup",
            "b",
            "i",
            "u"
        ],
        "end_with_newline": false,
        "extra_liners": [
            "head",
            "body",
            "/html"
        ]
    },
    "js": {
        "indent_size": 4,
        "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": 4,
        "indent_char": " "
    },
    "rust": {
        "rustfmt_path": ""
    },
    "sql": {
        "indent_size": 4,
        "keywords": "upper",
        "identifiers": "lower"
    },
    "vala": {
        "configPath": ""
    }
}

Home Options:
Options from /home/florian/.jsbeautifyrc

{
    "_default": {}
}

EditorConfig Options:
Options from EditorConfig file

{
    "_default": {}
}

Project Options:
Options from .jsbeautifyrc files starting from directory /media/florian/26AACE1AAACDE701/Users/Florian/Documents/UCL/Q7/LINGI2241 - Architecture and performance of computer systems/Group_work_1/github/group_work_2/src/main/utils and going up to root

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

Final Options:
Final combined options that are used

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

Package Settings:
The raw package settings options

{
    "_analyticsUserId": "1451fa8e-16ea-4c06-8290-9ed89e03ac49",
    "java_configPath": "/home/florian/.atom/packages/atom-beautify/uncrustify.cfg",
    "analytics": true,
    "_loggerLevel": "warn",
    "beautifyEntireFileOnSave": true,
    "muteUnsupportedLanguageErrors": false,
    "muteAllErrors": false,
    "arduino_configPath": "",
    "cs_configPath": "",
    "c_configPath": "",
    "cpp_configPath": "",
    "css_indent_size": 4,
    "css_indent_char": " ",
    "css_selector_separator_newline": false,
    "css_newline_between_rules": false,
    "css_preserve_newlines": false,
    "css_wrap_line_length": 0,
    "css_indent_comments": true,
    "css_force_indentation": false,
    "css_convert_quotes": "none",
    "css_align_assignments": false,
    "css_no_lead_zero": false,
    "css_configPath": "",
    "css_predefinedConfig": "csscomb",
    "d_configPath": "",
    "gherkin_indent_size": 4,
    "gherkin_indent_char": " ",
    "fortran_emacs_path": "",
    "fortran_emacs_script_path": "",
    "html_indent_inner_html": false,
    "html_indent_size": 4,
    "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": 4,
    "html_preserve_newlines": true,
    "html_max_preserve_newlines": 10,
    "html_unformatted": [
        "a",
        "sub",
        "sup",
        "b",
        "i",
        "u"
    ],
    "html_end_with_newline": false,
    "html_extra_liners": [
        "head",
        "body",
        "/html"
    ],
    "js_indent_size": 4,
    "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": 4,
    "ruby_indent_char": " ",
    "rust_rustfmt_path": "",
    "sql_indent_size": 4,
    "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:

package utils;

public abstract class NetworkNode {

abstract void send();
abstract void receive();
abstract void start();
abstract void stop();
}

Original vs. Beautified Diff:

Index: /media/florian/26AACE1AAACDE701/Users/Florian/Documents/UCL/Q7/LINGI2241 - Architecture and performance of computer systems/Group_work_1/github/group_work_2/src/main/utils/NetworkNode.java
===================================================================
--- /media/florian/26AACE1AAACDE701/Users/Florian/Documents/UCL/Q7/LINGI2241 - Architecture and performance of computer systems/Group_work_1/github/group_work_2/src/main/utils/NetworkNode.java    original
+++ /media/florian/26AACE1AAACDE701/Users/Florian/Documents/UCL/Q7/LINGI2241 - Architecture and performance of computer systems/Group_work_1/github/group_work_2/src/main/utils/NetworkNode.java    beautified
@@ -1,9 +1,9 @@
 package utils;

 public abstract class NetworkNode {

-    abstract void send();
-    abstract void receive();
-    abstract void start();
-    abstract void stop();
+abstract void send();
+abstract void receive();
+abstract void start();
+abstract void stop();
 }

Logs:

2015-12-19T18:32:36.770Z - info: [beautifiers/index.coffee] beautify package utils;

public abstract class NetworkNode {

    abstract void send();
    abstract void receive();
    abstract void start();
    abstract void stop();
}
 [ { _default: { indent_size: 4, indent_char: ' ', indent_with_tabs: false } },
  { java: { configPath: '/home/florian/.atom/packages/atom-beautify/uncrustify.cfg' },
    arduino: { configPath: '' },
    cs: { configPath: '' },
    c: { configPath: '' },
    cpp: { configPath: '' },
    css: 
     { indent_size: 4,
       indent_char: ' ',
       selector_separator_newline: false,
       newline_between_rules: false,
       preserve_newlines: false,
       wrap_line_length: 0,
       indent_comments: true,
       force_indentation: false,
       convert_quotes: 'none',
       align_assignments: false,
       no_lead_zero: false,
       configPath: '',
       predefinedConfig: 'csscomb' },
    d: { configPath: '' },
    gherkin: { indent_size: 4, indent_char: ' ' },
    fortran: { emacs_path: '', emacs_script_path: '' },
    html: 
     { indent_inner_html: false,
       indent_size: 4,
       indent_char: ' ',
       brace_style: 'collapse',
       indent_scripts: 'normal',
       wrap_line_length: 250,
       wrap_attributes: 'auto',
       wrap_attributes_indent_size: 4,
       preserve_newlines: true,
       max_preserve_newlines: 10,
       unformatted: [Object],
       end_with_newline: false,
       extra_liners: [Object] },
    js: 
     { indent_size: 4,
       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: 4, indent_char: ' ' },
    rust: { rustfmt_path: '' },
    sql: { indent_size: 4, keywords: 'upper', identifiers: 'lower' },
    vala: { configPath: '' } },
  { _default: {} },
  { _default: {} },
  { _default: {} },
  { _default: {} },
  { _default: {} },
  { _default: {} },
  { _default: {} },
  { _default: {} },
  { _default: {} },
  { _default: {} },
  { _default: {} },
  { _default: {} },
  { _default: {} },
  { _default: {} },
  { _default: {} },
  { _default: {} },
  { _default: {} } ] Java /media/florian/26AACE1AAACDE701/Users/Florian/Documents/UCL/Q7/LINGI2241 - Architecture and performance of computer systems/Group_work_1/github/group_work_2/src/main/utils/NetworkNode.java undefined
2015-12-19T18:32:36.771Z - verbose: [beautifiers/index.coffee]  indent_size=4, indent_char= , indent_with_tabs=false, configPath=/home/florian/.atom/packages/atom-beautify/uncrustify.cfg, configPath=, configPath=, configPath=, configPath=, indent_size=4, indent_char= , selector_separator_newline=false, newline_between_rules=false, preserve_newlines=false, wrap_line_length=0, indent_comments=true, force_indentation=false, convert_quotes=none, align_assignments=false, no_lead_zero=false, configPath=, predefinedConfig=csscomb, configPath=, indent_size=4, indent_char= , emacs_path=, emacs_script_path=, indent_inner_html=false, indent_size=4, indent_char= , brace_style=collapse, indent_scripts=normal, wrap_line_length=250, wrap_attributes=auto, wrap_attributes_indent_size=4, preserve_newlines=true, max_preserve_newlines=10, unformatted=[a, sub, sup, b, i, u], end_with_newline=false, extra_liners=[head, body, /html], indent_size=4, 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=4, indent_char= , rustfmt_path=, indent_size=4, keywords=upper, identifiers=lower, configPath=, , , , , , , , , , , , , , , , , 
2015-12-19T18:32:36.772Z - verbose: [beautifiers/index.coffee] [ { name: 'Java',
    namespace: 'java',
    grammars: [ 'Java' ],
    extensions: [ 'java' ],
    options: { configPath: [Object] },
    beautifiers: [ 'Uncrustify' ] } ] 'Java' 'java'
2015-12-19T18:32:36.772Z - verbose: [beautifiers/index.coffee] Language Java supported
2015-12-19T18:32:36.772Z - verbose: [beautifiers/index.coffee] getOptions selections [ 'java' ] indent_size=4, indent_char= , indent_with_tabs=false, configPath=/home/florian/.atom/packages/atom-beautify/uncrustify.cfg, configPath=, configPath=, configPath=, configPath=, indent_size=4, indent_char= , selector_separator_newline=false, newline_between_rules=false, preserve_newlines=false, wrap_line_length=0, indent_comments=true, force_indentation=false, convert_quotes=none, align_assignments=false, no_lead_zero=false, configPath=, predefinedConfig=csscomb, configPath=, indent_size=4, indent_char= , emacs_path=, emacs_script_path=, indent_inner_html=false, indent_size=4, indent_char= , brace_style=collapse, indent_scripts=normal, wrap_line_length=250, wrap_attributes=auto, wrap_attributes_indent_size=4, preserve_newlines=true, max_preserve_newlines=10, unformatted=[a, sub, sup, b, i, u], end_with_newline=false, extra_liners=[head, body, /html], indent_size=4, 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=4, indent_char= , rustfmt_path=, indent_size=4, keywords=upper, identifiers=lower, configPath=, , , , , , , , , , , , , , , , , 
2015-12-19T18:32:36.773Z - verbose: [beautifiers/index.coffee] true indent_size=4, indent_char= , indent_with_tabs=false
2015-12-19T18:32:36.773Z - verbose: [beautifiers/index.coffee] options java undefined
2015-12-19T18:32:36.773Z - verbose: [beautifiers/index.coffee] options java indent_size=4, indent_char= , indent_with_tabs=false
2015-12-19T18:32:36.773Z - verbose: [beautifiers/index.coffee] true configPath=/home/florian/.atom/packages/atom-beautify/uncrustify.cfg, configPath=, configPath=, configPath=, configPath=, indent_size=4, indent_char= , selector_separator_newline=false, newline_between_rules=false, preserve_newlines=false, wrap_line_length=0, indent_comments=true, force_indentation=false, convert_quotes=none, align_assignments=false, no_lead_zero=false, configPath=, predefinedConfig=csscomb, configPath=, indent_size=4, indent_char= , emacs_path=, emacs_script_path=, indent_inner_html=false, indent_size=4, indent_char= , brace_style=collapse, indent_scripts=normal, wrap_line_length=250, wrap_attributes=auto, wrap_attributes_indent_size=4, preserve_newlines=true, max_preserve_newlines=10, unformatted=[a, sub, sup, b, i, u], end_with_newline=false, extra_liners=[head, body, /html], indent_size=4, 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=4, indent_char= , rustfmt_path=, indent_size=4, keywords=upper, identifiers=lower, configPath=
2015-12-19T18:32:36.773Z - verbose: [beautifiers/index.coffee] options java configPath=/home/florian/.atom/packages/atom-beautify/uncrustify.cfg
2015-12-19T18:32:36.774Z - verbose: [beautifiers/index.coffee] options java configPath=/home/florian/.atom/packages/atom-beautify/uncrustify.cfg
2015-12-19T18:32:36.774Z - verbose: [beautifiers/index.coffee] true 
2015-12-19T18:32:36.774Z - verbose: [beautifiers/index.coffee] options java undefined
2015-12-19T18:32:36.774Z - verbose: [beautifiers/index.coffee] options java
2015-12-19T18:32:36.774Z - verbose: [beautifiers/index.coffee] true 
2015-12-19T18:32:36.774Z - verbose: [beautifiers/index.coffee] options java undefined
2015-12-19T18:32:36.774Z - verbose: [beautifiers/index.coffee] options java
2015-12-19T18:32:36.774Z - verbose: [beautifiers/index.coffee] true 
2015-12-19T18:32:36.774Z - verbose: [beautifiers/index.coffee] options java undefined
2015-12-19T18:32:36.774Z - verbose: [beautifiers/index.coffee] options java
2015-12-19T18:32:36.774Z - verbose: [beautifiers/index.coffee] true 
2015-12-19T18:32:36.774Z - verbose: [beautifiers/index.coffee] options java undefined
2015-12-19T18:32:36.774Z - verbose: [beautifiers/index.coffee] options java
2015-12-19T18:32:36.774Z - verbose: [beautifiers/index.coffee] true 
2015-12-19T18:32:36.774Z - verbose: [beautifiers/index.coffee] options java undefined
2015-12-19T18:32:36.774Z - verbose: [beautifiers/index.coffee] options java
2015-12-19T18:32:36.774Z - verbose: [beautifiers/index.coffee] true 
2015-12-19T18:32:36.774Z - verbose: [beautifiers/index.coffee] options java undefined
2015-12-19T18:32:36.774Z - verbose: [beautifiers/index.coffee] options java
2015-12-19T18:32:36.774Z - verbose: [beautifiers/index.coffee] true 
2015-12-19T18:32:36.775Z - verbose: [beautifiers/index.coffee] options java undefined
2015-12-19T18:32:36.775Z - verbose: [beautifiers/index.coffee] options java
2015-12-19T18:32:36.775Z - verbose: [beautifiers/index.coffee] true 
2015-12-19T18:32:36.775Z - verbose: [beautifiers/index.coffee] options java undefined
2015-12-19T18:32:36.775Z - verbose: [beautifiers/index.coffee] options java
2015-12-19T18:32:36.775Z - verbose: [beautifiers/index.coffee] true 
2015-12-19T18:32:36.775Z - verbose: [beautifiers/index.coffee] options java undefined
2015-12-19T18:32:36.775Z - verbose: [beautifiers/index.coffee] options java
2015-12-19T18:32:36.775Z - verbose: [beautifiers/index.coffee] true 
2015-12-19T18:32:36.775Z - verbose: [beautifiers/index.coffee] options java undefined
2015-12-19T18:32:36.775Z - verbose: [beautifiers/index.coffee] options java
2015-12-19T18:32:36.775Z - verbose: [beautifiers/index.coffee] true 
2015-12-19T18:32:36.775Z - verbose: [beautifiers/index.coffee] options java undefined
2015-12-19T18:32:36.775Z - verbose: [beautifiers/index.coffee] options java
2015-12-19T18:32:36.775Z - verbose: [beautifiers/index.coffee] true 
2015-12-19T18:32:36.776Z - verbose: [beautifiers/index.coffee] options java undefined
2015-12-19T18:32:36.776Z - verbose: [beautifiers/index.coffee] options java
2015-12-19T18:32:36.776Z - verbose: [beautifiers/index.coffee] true 
2015-12-19T18:32:36.776Z - verbose: [beautifiers/index.coffee] options java undefined
2015-12-19T18:32:36.776Z - verbose: [beautifiers/index.coffee] options java
2015-12-19T18:32:36.776Z - verbose: [beautifiers/index.coffee] true 
2015-12-19T18:32:36.776Z - verbose: [beautifiers/index.coffee] options java undefined
2015-12-19T18:32:36.776Z - verbose: [beautifiers/index.coffee] options java
2015-12-19T18:32:36.776Z - verbose: [beautifiers/index.coffee] true 
2015-12-19T18:32:36.776Z - verbose: [beautifiers/index.coffee] options java undefined
2015-12-19T18:32:36.777Z - verbose: [beautifiers/index.coffee] options java
2015-12-19T18:32:36.777Z - verbose: [beautifiers/index.coffee] true 
2015-12-19T18:32:36.777Z - verbose: [beautifiers/index.coffee] options java undefined
2015-12-19T18:32:36.777Z - verbose: [beautifiers/index.coffee] options java
2015-12-19T18:32:36.777Z - verbose: [beautifiers/index.coffee] true 
2015-12-19T18:32:36.777Z - verbose: [beautifiers/index.coffee] options java undefined
2015-12-19T18:32:36.777Z - verbose: [beautifiers/index.coffee] options java
2015-12-19T18:32:36.777Z - verbose: [beautifiers/index.coffee] Java name=Java, namespace=java, grammars=[Java], extensions=[java], type=string, default=, description=Path to uncrustify config file. i.e. uncrustify.cfg (Supported by Uncrustify), title=Java - Config Path, beautifiers=[Uncrustify], key=configPath, $ref=$, beautifiers=[Uncrustify]
2015-12-19T18:32:36.777Z - verbose: [beautifiers/index.coffee] options indent_size=4, indent_char= , indent_with_tabs=false, configPath=/home/florian/.atom/packages/atom-beautify/uncrustify.cfg
2015-12-19T18:32:36.777Z - verbose: [beautifiers/index.coffee] beautifiers 0=Uncrustify
2015-12-19T18:32:36.778Z - verbose: [beautifiers/index.coffee] Java /media/florian/26AACE1AAACDE701/Users/Florian/Documents/UCL/Q7/LINGI2241 - Architecture and performance of computer systems/Group_work_1/github/group_work_2/src/main/utils/NetworkNode.java { indent_size: 4,
  indent_char: ' ',
  indent_with_tabs: false,
  configPath: '/home/florian/.atom/packages/atom-beautify/uncrustify.cfg' } indent_size=4, indent_char= , indent_with_tabs=false, configPath=/home/florian/.atom/packages/atom-beautify/uncrustify.cfg, configPath=, configPath=, configPath=, configPath=, indent_size=4, indent_char= , selector_separator_newline=false, newline_between_rules=false, preserve_newlines=false, wrap_line_length=0, indent_comments=true, force_indentation=false, convert_quotes=none, align_assignments=false, no_lead_zero=false, configPath=, predefinedConfig=csscomb, configPath=, indent_size=4, indent_char= , emacs_path=, emacs_script_path=, indent_inner_html=false, indent_size=4, indent_char= , brace_style=collapse, indent_scripts=normal, wrap_line_length=250, wrap_attributes=auto, wrap_attributes_indent_size=4, preserve_newlines=true, max_preserve_newlines=10, unformatted=[a, sub, sup, b, i, u], end_with_newline=false, extra_liners=[head, body, /html], indent_size=4, 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=4, indent_char= , rustfmt_path=, indent_size=4, keywords=upper, identifiers=lower, configPath=, , , , , , , , , , , , , , , , , 
2015-12-19T18:32:36.778Z - verbose: [beautifiers/index.coffee] beautifier Uncrustify
2015-12-19T18:32:36.784Z - debug: [beautifiers/beautifier.coffee] tempFile input null path=/tmp/input1151119-6620-1kdvq2j, fd=55
2015-12-19T18:32:36.785Z - debug: [beautifiers/beautifier.coffee] tempFile output null path=/tmp/output1151119-6620-18ia46e, fd=84
2015-12-19T18:32:36.804Z - debug: [beautifiers/beautifier.coffee] exeName, args: uncrustify 0=-c, 1=/home/florian/.atom/packages/atom-beautify/uncrustify.cfg, 2=-f, 3=/tmp/input1151119-6620-1kdvq2j, 4=-o, 5=/tmp/output1151119-6620-18ia46e, 6=-l, 7=JAVA
2015-12-19T18:32:36.930Z - debug: [beautifiers/beautifier.coffee] exePath, env: /usr/local/bin/uncrustify LC_PAPER=fr_BE.UTF-8, XDG_VTNR=8, LC_ADDRESS=fr_BE.UTF-8, XDG_SESSION_ID=c1, SSH_AGENT_PID=1791, LC_MONETARY=fr_BE.UTF-8, GIO_LAUNCHED_DESKTOP_FILE_PID=6589, QT_STYLE_OVERRIDE=gtk, GPG_AGENT_INFO=/run/user/1000/keyring-vKOROd/gpg:0:1, DESKTOP_STARTUP_ID=nemo-1998-fsvp-/usr/share/atom/atom-0_TIME4310284, SHELL=/bin/bash, XDG_SESSION_COOKIE=841acfb87ef38d7e033f029355b25b0b-1450543377.985678-373110080, LC_NUMERIC=fr_BE.UTF-8, GNOME_KEYRING_CONTROL=/run/user/1000/keyring-vKOROd, ATOM_HOME=/home/florian/.atom, USER=florian, CLUTTER_BACKEND=x11, LC_TELEPHONE=fr_BE.UTF-8, INSIDE_NEMO_PYTHON=, SSH_AUTH_SOCK=/run/user/1000/keyring-vKOROd/ssh, SESSION_MANAGER=local/fsvp:@/tmp/.ICE-unix/1725,unix/fsvp:/tmp/.ICE-unix/1725, USERNAME=florian, DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path, GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/atom.desktop, XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg, GOOGLE_API_KEY=AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q, PATH=/usr/local/heroku/bin:/usr/local/heroku/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games, DESKTOP_SESSION=cinnamon, LC_IDENTIFICATION=fr_BE.UTF-8, GDM_XSERVER_LOCATION=local, PWD=/home/florian, LANG=fr_BE.UTF-8, GNOME_KEYRING_PID=1638, MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path, NODE_PATH=/usr/share/atom/resources/app.asar/exports, LC_MEASUREMENT=fr_BE.UTF-8, NODE_ENV=production, MDM_XSERVER_LOCATION=local, GDMSESSION=cinnamon, SHLVL=1, HOME=/home/florian, XDG_SEAT=seat0, GNOME_DESKTOP_SESSION_ID=this-is-deprecated, XDG_SESSION_DESKTOP=cinnamon, LOGNAME=florian, XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/usr/local/share/:/usr/share/:/usr/share/mdm/, DBUS_SESSION_BUS_ADDRESS=unix:abstract, LESSOPEN=| /usr/bin/lesspipe %s, MDMSESSION=cinnamon, WINDOWPATH=8, TEXTDOMAIN=im-config, DISPLAY=:0.0, XDG_RUNTIME_DIR=/run/user/1000, MDM_LANG=fr_BE.UTF-8, XDG_CURRENT_DESKTOP=X-Cinnamon, LESSCLOSE=/usr/bin/lesspipe %s %s, LC_TIME=fr_BE.UTF-8, TEXTDOMAINDIR=/usr/share/locale/, LC_NAME=fr_BE.UTF-8, XAUTHORITY=/home/florian/.Xauthority, _=/usr/bin/env
2015-12-19T18:32:36.930Z - debug: [beautifiers/beautifier.coffee] spawn /usr/local/bin/uncrustify 0=-c, 1=/home/florian/.atom/packages/atom-beautify/uncrustify.cfg, 2=-f, 3=/tmp/input1151119-6620-1kdvq2j, 4=-o, 5=/tmp/output1151119-6620-18ia46e, 6=-l, 7=JAVA
2015-12-19T18:32:36.945Z - debug: [beautifiers/beautifier.coffee] spawn done 0 Parsing: /tmp/input1151119-6620-1kdvq2j as language JAVA

2015-12-19T18:32:36.945Z - verbose: [beautifiers/beautifier.coffee] spawn result 0  Parsing: /tmp/input1151119-6620-1kdvq2j as language JAVA


@stale
Copy link

stale bot commented Nov 4, 2017

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.

@stale stale bot added the stale label Nov 4, 2017
@stale stale bot closed this as completed Nov 11, 2017
@joanlofe
Copy link

I am facing exactly the same issue using Java file, uncrustify and Atom 1.22.1 x64 on Ubuntu LTS 14.04.

@tv-nieri
Copy link

tv-nieri commented Mar 8, 2018

Same thing here... All the code is pushed to the left, the indentation gets all messed up...

tvn@ubuntuOS:~$ atom --version
Atom : 1.24.0
Electron: 1.6.16
Chrome : 56.0.2924.87
Node : 7.4.0

tvn@ubuntuOS:~$ uncrustify -v
uncrustify 0.59

tvn@ubuntuOS:$ uname -ovm
#40
16.04.1-Ubuntu SMP Fri Feb 16 23:25:58 UTC 2018 x86_64 GNU/Linux

tvn@ubuntuOS:~$ date
Qua Mar 7 22:21:04 -03 2018

@myartsev
Copy link

+1. Still happening May 2018 with the latest versions.

@abhishekkumarhoney75
Copy link

I have installed in May 2019. The problem is still there.

Sample

public class LinkedList {
private Node head;

private void add(int data){

    Node newNode = new Node(data);
    if(this.head == null) {
            return;
    }

    Node temp = head;

    while(temp.next != null) {
            temp = temp.next
    }

    temp.next = newNode;

}

class Node {
int data;
Node next;

public Node(int data) {
this.data = data;
this.next = null;
}
}

}

@melyux
Copy link

melyux commented Oct 2, 2021

Still the same. Useless.

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

No branches or pull requests

6 participants