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

Could not find 'uncrustify'. The program may not be installed. #598

Closed
byjokese opened this issue Oct 9, 2015 · 15 comments
Closed

Could not find 'uncrustify'. The program may not be installed. #598

byjokese opened this issue Oct 9, 2015 · 15 comments
Labels

Comments

@byjokese
Copy link

byjokese commented Oct 9, 2015

Atom Beautify - Debugging information

The following debugging information was generated by Atom Beautify on Fri Oct 09 2015 09:37:07 GMT+0200 (CEST).


Platform: linux

Versions

Atom Version: 1.0.11

Atom Beautify Version: 0.28.14

Original file to be beautified

Original File Path: /home/byjokese/MEGAsync/Codigos/C++/SAR/echo_ser_udp_conc.c

Original File Grammar: C

Original File Language: C

Original File Contents:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/select.h> // Para la funcion 'select'
#include <signal.h> // Para la funcion 'signal'

#define MAX_BUF 1024
#define PORT 50005
#define MAX_WAIT 120    // Tiempo maximo de espera

/*
    NOTA:
    Los numeros (entre parentesis) de los comentarios identifican distintos
     ejercicios. Se recomienda realizar los distintos ejercicios de uno en
     uno, probando su correcto funcionamiento antes de pasar al siguiente.
*/

int main()
{
    int sock,socko, n;
    struct sockaddr_in dir_serv, dir_cli;
    socklen_t tam_dir;
    char buf[MAX_BUF];

    if((sock = socket(AF_INET, SOCK_DGRAM, 0)) < 0)
    {
        perror("Error al crear el socket");
        exit(1);
    }

    memset(&dir_serv, 0, sizeof(dir_serv));
    dir_serv.sin_family = AF_INET;
    dir_serv.sin_addr.s_addr = htonl(INADDR_ANY);
    dir_serv.sin_port = htons(PORT);

    if(bind(sock, (struct sockaddr *) &dir_serv, sizeof(dir_serv)) < 0)
    {
        perror("Error al asignarle una direccion al socket");
        exit(1);
    }

    /*
        A COMPLETAR POR EL ALUMNO:
        (2) Evitar que procesos hijo queden como zombi
            Para ello habra que usar la funcion 'signal' para que trate
             las senyales tipo SIGCHLD
    */
    signal(SIGCHLD, SIG_IGN);

    while(1)
    {
        tam_dir = sizeof(dir_cli);
        if((n=recvfrom(sock, buf, MAX_BUF, 0, (struct sockaddr *) &dir_cli,
                       &tam_dir)) < 0)
        {
            perror("Error al recibir datos");
            exit(1);
        }

        /*
            A COMPLETAR POR EL ALUMNO:
            (1) Crear un nuevo proceso que atienda al cliente. Para ello:
                · Crear un nuevo socket.
                · Conectar con el socket del cliente.
                · Responder al cliente y seguir con la comunicacion
                   hasta recibir un mensaje vacio.
            (3) Utilizar la funcion 'select' para comprobar que no
                 llevamos mas de 2 minutos a la espera de recibir un
                 mensaje. Si es asi, acabar.
        */
        if(fork()!=0){
        }else{
            close(sock);
            if((socko = socket(AF_INET, SOCK_DGRAM, 0)) < 0)
            {
                perror("Error al crear el socket\n");
                exit(1);
            }
            if(connect(socko, (struct sockaddr *) &dir_cli, sizeof(dir_cli)) < 0)
            {
                perror("Error al conectar el socket UDP con el cliente\n");
                exit(1);
            }
            if(write(socko, buf, sizeof(buf)) < n)
            {
                    perror("Error al enviar datos\n");
                    close(socko);
                    exit(1);
            }
            n=1;
            while(n!=0){
                if((n=read(socko, buf, MAX_BUF)) > 0)
                {
                        if(write(socko, buf, n) < n)
                        {
                                perror("Error al enviar datos\n");
                                close(socko);
                                exit(1);
                        }
                }
                else if(n==0){
                    printf("Ha terminado un cliente.\n");
                }
            }
            close(socko);
            exit(0);
        }
    }
    close(sock);
}

Beautification options

Editor Options:
Options from Atom Editor settings

{
    "_default": {
        "indent_size": 1,
        "indent_char": "\t",
        "indent_with_tabs": true
    }
}

Config Options:
Options from Atom Beautify package settings

{
    "arduino": {
        "configPath": ""
    },
    "cs": {
        "configPath": ""
    },
    "c": {
        "configPath": ""
    },
    "cpp": {
        "configPath": ""
    },
    "css": {
        "indent_size": 2,
        "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
    },
    "d": {
        "configPath": ""
    },
    "gherkin": {
        "indent_size": 2,
        "indent_char": " "
    },
    "fortran": {
        "emacs_path": "",
        "emacs_script_path": ""
    },
    "html": {
        "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"
        ],
        "end_with_newline": false,
        "extra_liners": [
            "head",
            "body",
            "/html"
        ]
    },
    "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 /home/byjokese/.jsbeautifyrc

{
    "_default": {}
}

EditorConfig Options:
Options from EditorConfig file

{
    "_default": {}
}

Project Options:
Options from .jsbeautifyrc files starting from directory /home/byjokese/MEGAsync/Codigos/C++/SAR and going up to root

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

Final Options:
Final combined options that are used

{
    "indent_size": 1,
    "indent_char": "\t",
    "indent_with_tabs": true
}

Package Settings:
The raw package settings options

{
    "_analyticsUserId": "b364fd42-6b0f-4830-b1bb-7e1a4b9468e3",
    "analytics": true,
    "_loggerLevel": "warn",
    "beautifyEntireFileOnSave": true,
    "muteUnsupportedLanguageErrors": false,
    "muteAllErrors": false,
    "arduino_configPath": "",
    "cs_configPath": "",
    "c_configPath": "",
    "cpp_configPath": "",
    "css_indent_size": 2,
    "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,
    "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_end_with_newline": false,
    "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_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:

Error: Could not find 'uncrustify'. The program may not be installed.

Logs:

2015-10-09T07:37:07.943Z - info: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] beautify #include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/select.h> // Para la funcion 'select'
#include <signal.h> // Para la funcion 'signal'

#define MAX_BUF 1024
#define PORT 50005
#define MAX_WAIT 120    // Tiempo maximo de espera

/*
    NOTA:
    Los numeros (entre parentesis) de los comentarios identifican distintos
     ejercicios. Se recomienda realizar los distintos ejercicios de uno en
     uno, probando su correcto funcionamiento antes de pasar al siguiente.
*/

int main()
{
    int sock,socko, n;
    struct sockaddr_in dir_serv, dir_cli;
    socklen_t tam_dir;
    char buf[MAX_BUF];

    if((sock = socket(AF_INET, SOCK_DGRAM, 0)) < 0)
    {
        perror("Error al crear el socket");
        exit(1);
    }

    memset(&dir_serv, 0, sizeof(dir_serv));
    dir_serv.sin_family = AF_INET;
    dir_serv.sin_addr.s_addr = htonl(INADDR_ANY);
    dir_serv.sin_port = htons(PORT);

    if(bind(sock, (struct sockaddr *) &dir_serv, sizeof(dir_serv)) < 0)
    {
        perror("Error al asignarle una direccion al socket");
        exit(1);
    }

    /*
        A COMPLETAR POR EL ALUMNO:
        (2) Evitar que procesos hijo queden como zombi
            Para ello habra que usar la funcion 'signal' para que trate
             las senyales tipo SIGCHLD
    */
    signal(SIGCHLD, SIG_IGN);

    while(1)
    {
        tam_dir = sizeof(dir_cli);
        if((n=recvfrom(sock, buf, MAX_BUF, 0, (struct sockaddr *) &dir_cli,
                       &tam_dir)) < 0)
        {
            perror("Error al recibir datos");
            exit(1);
        }

        /*
            A COMPLETAR POR EL ALUMNO:
            (1) Crear un nuevo proceso que atienda al cliente. Para ello:
                · Crear un nuevo socket.
                · Conectar con el socket del cliente.
                · Responder al cliente y seguir con la comunicacion
                   hasta recibir un mensaje vacio.
            (3) Utilizar la funcion 'select' para comprobar que no
                 llevamos mas de 2 minutos a la espera de recibir un
                 mensaje. Si es asi, acabar.
        */
        if(fork()!=0){
        }else{
            close(sock);
            if((socko = socket(AF_INET, SOCK_DGRAM, 0)) < 0)
            {
                perror("Error al crear el socket\n");
                exit(1);
            }
            if(connect(socko, (struct sockaddr *) &dir_cli, sizeof(dir_cli)) < 0)
            {
                perror("Error al conectar el socket UDP con el cliente\n");
                exit(1);
            }
            if(write(socko, buf, sizeof(buf)) < n)
            {
                    perror("Error al enviar datos\n");
                    close(socko);
                    exit(1);
            }
            n=1;
            while(n!=0){
                if((n=read(socko, buf, MAX_BUF)) > 0)
                {
                        if(write(socko, buf, n) < n)
                        {
                                perror("Error al enviar datos\n");
                                close(socko);
                                exit(1);
                        }
                }
                else if(n==0){
                    printf("Ha terminado un cliente.\n");
                }
            }
            close(socko);
            exit(0);
        }
    }
    close(sock);
}
 [ { _default: { indent_size: 1, indent_char: '\t', indent_with_tabs: true } },
  { arduino: { configPath: '' },
    cs: { configPath: '' },
    c: { configPath: '' },
    cpp: { configPath: '' },
    css: 
     { indent_size: 2,
       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 },
    d: { configPath: '' },
    gherkin: { indent_size: 2, indent_char: ' ' },
    fortran: { emacs_path: '', emacs_script_path: '' },
    html: 
     { 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],
       end_with_newline: false,
       extra_liners: [Object] },
    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: {} },
  { _default: {} },
  { _default: {} },
  { _default: {} } ] C /home/byjokese/MEGAsync/Codigos/C++/SAR/echo_ser_udp_conc.c undefined
2015-10-09T07:37:07.945Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee]  indent_size=1, indent_char= , indent_with_tabs=true, configPath=, configPath=, configPath=, configPath=, indent_size=2, 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=, indent_size=2, indent_char= , emacs_path=, emacs_script_path=, 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], end_with_newline=false, extra_liners=[head, body, /html], 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-10-09T07:37:07.950Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] [ { name: 'C',
    namespace: 'c',
    grammars: [ 'C' ],
    extensions: [ 'c' ],
    options: { configPath: [Object] },
    beautifiers: [ 'Uncrustify' ] } ] 'C' 'c'
2015-10-09T07:37:07.950Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] Language C supported
2015-10-09T07:37:07.951Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] getOptions selections [ 'c' ] indent_size=1, indent_char=    , indent_with_tabs=true, configPath=, configPath=, configPath=, configPath=, indent_size=2, 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=, indent_size=2, indent_char= , emacs_path=, emacs_script_path=, 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], end_with_newline=false, extra_liners=[head, body, /html], 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-10-09T07:37:07.955Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] true indent_size=1, indent_char= , indent_with_tabs=true
2015-10-09T07:37:07.955Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] options c undefined
2015-10-09T07:37:07.955Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] options c indent_size=1, indent_char=    , indent_with_tabs=true
2015-10-09T07:37:07.955Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] true configPath=, configPath=, configPath=, configPath=, indent_size=2, 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=, indent_size=2, indent_char= , emacs_path=, emacs_script_path=, 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], end_with_newline=false, extra_liners=[head, body, /html], 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-10-09T07:37:07.959Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] options c configPath=
2015-10-09T07:37:07.959Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] options c configPath=
2015-10-09T07:37:07.959Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] true 
2015-10-09T07:37:07.959Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] options c undefined
2015-10-09T07:37:07.960Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] options c
2015-10-09T07:37:07.960Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] true 
2015-10-09T07:37:07.960Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] options c undefined
2015-10-09T07:37:07.960Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] options c
2015-10-09T07:37:07.960Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] true 
2015-10-09T07:37:07.960Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] options c undefined
2015-10-09T07:37:07.960Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] options c
2015-10-09T07:37:07.960Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] true 
2015-10-09T07:37:07.962Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] options c undefined
2015-10-09T07:37:07.962Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] options c
2015-10-09T07:37:07.962Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] true 
2015-10-09T07:37:07.962Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] options c undefined
2015-10-09T07:37:07.962Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] options c
2015-10-09T07:37:07.963Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] true 
2015-10-09T07:37:07.963Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] options c undefined
2015-10-09T07:37:07.963Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] options c
2015-10-09T07:37:07.963Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] true 
2015-10-09T07:37:07.963Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] options c undefined
2015-10-09T07:37:07.963Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] options c
2015-10-09T07:37:07.964Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] true 
2015-10-09T07:37:07.964Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] options c undefined
2015-10-09T07:37:07.964Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] options c
2015-10-09T07:37:07.964Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] C name=C, namespace=c, grammars=[C], extensions=[c], type=string, default=, description=Path to uncrustify config file. i.e. uncrustify.cfg (Supported by Uncrustify), title=C - Config Path, beautifiers=[Uncrustify], key=configPath, $ref=$, beautifiers=[Uncrustify]
2015-10-09T07:37:07.965Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] options indent_size=1, indent_char=  , indent_with_tabs=true, configPath=
2015-10-09T07:37:07.966Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] beautifiers silly=function (msg) {
      // build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
      var args = [level].concat(Array.prototype.slice.call(arguments));
      target.log.apply(target, args);
    }, debug=function (msg) {
      // build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
      var args = [level].concat(Array.prototype.slice.call(arguments));
      target.log.apply(target, args);
    }, verbose=function (msg) {
      // build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
      var args = [level].concat(Array.prototype.slice.call(arguments));
      target.log.apply(target, args);
    }, info=function (msg) {
      // build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
      var args = [level].concat(Array.prototype.slice.call(arguments));
      target.log.apply(target, args);
    }, warn=function (msg) {
      // build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
      var args = [level].concat(Array.prototype.slice.call(arguments));
      target.log.apply(target, args);
    }, error=function (msg) {
      // build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
      var args = [level].concat(Array.prototype.slice.call(arguments));
      target.log.apply(target, args);
    }, onLogging=function (handler) {
        var subscription;
        subscription = emitter.on('logging', handler);
        return subscription;
      }, silly=function (msg) {
      // build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
      var args = [level].concat(Array.prototype.slice.call(arguments));
      target.log.apply(target, args);
    }, debug=function (msg) {
      // build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
      var args = [level].concat(Array.prototype.slice.call(arguments));
      target.log.apply(target, args);
    }, verbose=function (msg) {
      // build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
      var args = [level].concat(Array.prototype.slice.call(arguments));
      target.log.apply(target, args);
    }, info=function (msg) {
      // build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
      var args = [level].concat(Array.prototype.slice.call(arguments));
      target.log.apply(target, args);
    }, warn=function (msg) {
      // build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
      var args = [level].concat(Array.prototype.slice.call(arguments));
      target.log.apply(target, args);
    }, error=function (msg) {
      // build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
      var args = [level].concat(Array.prototype.slice.call(arguments));
      target.log.apply(target, args);
    }, onLogging=function (handler) {
        var subscription;
        subscription = emitter.on('logging', handler);
        return subscription;
      }, languages=[C, C++, C#, Objective-C, D, Pawn, Vala, Java, Arduino], XDG_VTNR=7, LC_PAPER=es_ES.UTF-8, XDG_SESSION_ID=c1, LC_ADDRESS=es_ES.UTF-8, SELINUX_INIT=YES, XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/byjokese, LC_MONETARY=es_ES.UTF-8, CLUTTER_IM_MODULE=xim, GIO_LAUNCHED_DESKTOP_FILE_PID=4096, SESSION=ubuntu, GPG_AGENT_INFO=/run/user/1000/keyring-iefCth/gpg:0:1, SHELL=/bin/bash, DERBY_HOME=/usr/lib/jvm/java-8-oracle/db, LC_NUMERIC=es_ES.UTF-8, UPSTART_SESSION=unix:abstract, GNOME_KEYRING_CONTROL=/run/user/1000/keyring-iefCth, GTK_MODULES=overlay-scrollbar:unity-gtk-module:unity-gtk-module, ATOM_HOME=/home/byjokese/.atom, USER=byjokese, LS_COLORS=, LC_TELEPHONE=es_ES.UTF-8, XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0, XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0, SSH_AUTH_SOCK=/run/user/1000/keyring-iefCth/ssh, DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path, GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/atom.desktop, XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg, GOOGLE_API_KEY=AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q, DESKTOP_SESSION=ubuntu, PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin, QT_QPA_PLATFORMTHEME=appmenu-qt5, QT_IM_MODULE=ibus, LC_IDENTIFICATION=es_ES.UTF-8, JOB=unity-settings-daemon, PWD=/home/byjokese, JAVA_HOME=/usr/lib/jvm/java-8-oracle, XMODIFIERS=@im, GNOME_KEYRING_PID=1340, LANG=en_US.UTF-8, GDM_LANG=en_US, MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path, NODE_PATH=/opt/atom/resources/app.asar/exports, LC_MEASUREMENT=es_ES.UTF-8, CHROME_DESKTOP=Atom.desktop, COMPIZ_CONFIG_PROFILE=ubuntu, IM_CONFIG_PHASE=1, NODE_ENV=production, GDMSESSION=ubuntu, SESSIONTYPE=gnome-session, HOME=/home/byjokese, XDG_SEAT=seat0, SHLVL=1, LANGUAGE=en_US, GNOME_DESKTOP_SESSION_ID=this-is-deprecated, UPSTART_INSTANCE=, UPSTART_EVENTS=xsession started, LOGNAME=byjokese, COMPIZ_BIN_PATH=/usr/bin/, DBUS_SESSION_BUS_ADDRESS=unix:abstract, J2SDKDIR=/usr/lib/jvm/java-8-oracle, XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/, QT4_IM_MODULE=xim, LESSOPEN=| /usr/bin/lesspipe %s, UPSTART_JOB=unity7, INSTANCE=, TEXTDOMAIN=im-config, DISPLAY=:0, XDG_RUNTIME_DIR=/run/user/1000, XDG_CURRENT_DESKTOP=Unity, J2REDIR=/usr/lib/jvm/java-8-oracle/jre, GTK_IM_MODULE=ibus, LESSCLOSE=/usr/bin/lesspipe %s %s, LC_TIME=es_ES.UTF-8, TEXTDOMAINDIR=/usr/share/locale/, LC_NAME=es_ES.UTF-8, XAUTHORITY=/home/byjokese/.Xauthority, _=/usr/bin/env, _envCacheDate=Fri Oct 09 2015 09:36:52 GMT+0200 (CEST)
2015-10-09T07:37:07.970Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] C /home/byjokese/MEGAsync/Codigos/C++/SAR/echo_ser_udp_conc.c { indent_size: 1,
  indent_char: '\t',
  indent_with_tabs: true,
  configPath: '' } indent_size=1, indent_char=  , indent_with_tabs=true, configPath=, configPath=, configPath=, configPath=, indent_size=2, 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=, indent_size=2, indent_char= , emacs_path=, emacs_script_path=, 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], end_with_newline=false, extra_liners=[head, body, /html], 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-10-09T07:37:07.974Z - verbose: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/index.coffee] beautifier Uncrustify silly=function (msg) {
      // build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
      var args = [level].concat(Array.prototype.slice.call(arguments));
      target.log.apply(target, args);
    }, debug=function (msg) {
      // build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
      var args = [level].concat(Array.prototype.slice.call(arguments));
      target.log.apply(target, args);
    }, verbose=function (msg) {
      // build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
      var args = [level].concat(Array.prototype.slice.call(arguments));
      target.log.apply(target, args);
    }, info=function (msg) {
      // build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
      var args = [level].concat(Array.prototype.slice.call(arguments));
      target.log.apply(target, args);
    }, warn=function (msg) {
      // build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
      var args = [level].concat(Array.prototype.slice.call(arguments));
      target.log.apply(target, args);
    }, error=function (msg) {
      // build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
      var args = [level].concat(Array.prototype.slice.call(arguments));
      target.log.apply(target, args);
    }, onLogging=function (handler) {
        var subscription;
        subscription = emitter.on('logging', handler);
        return subscription;
      }, silly=function (msg) {
      // build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
      var args = [level].concat(Array.prototype.slice.call(arguments));
      target.log.apply(target, args);
    }, debug=function (msg) {
      // build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
      var args = [level].concat(Array.prototype.slice.call(arguments));
      target.log.apply(target, args);
    }, verbose=function (msg) {
      // build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
      var args = [level].concat(Array.prototype.slice.call(arguments));
      target.log.apply(target, args);
    }, info=function (msg) {
      // build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
      var args = [level].concat(Array.prototype.slice.call(arguments));
      target.log.apply(target, args);
    }, warn=function (msg) {
      // build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
      var args = [level].concat(Array.prototype.slice.call(arguments));
      target.log.apply(target, args);
    }, error=function (msg) {
      // build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
      var args = [level].concat(Array.prototype.slice.call(arguments));
      target.log.apply(target, args);
    }, onLogging=function (handler) {
        var subscription;
        subscription = emitter.on('logging', handler);
        return subscription;
      }, languages=[C, C++, C#, Objective-C, D, Pawn, Vala, Java, Arduino], XDG_VTNR=7, LC_PAPER=es_ES.UTF-8, XDG_SESSION_ID=c1, LC_ADDRESS=es_ES.UTF-8, SELINUX_INIT=YES, XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/byjokese, LC_MONETARY=es_ES.UTF-8, CLUTTER_IM_MODULE=xim, GIO_LAUNCHED_DESKTOP_FILE_PID=4096, SESSION=ubuntu, GPG_AGENT_INFO=/run/user/1000/keyring-iefCth/gpg:0:1, SHELL=/bin/bash, DERBY_HOME=/usr/lib/jvm/java-8-oracle/db, LC_NUMERIC=es_ES.UTF-8, UPSTART_SESSION=unix:abstract, GNOME_KEYRING_CONTROL=/run/user/1000/keyring-iefCth, GTK_MODULES=overlay-scrollbar:unity-gtk-module:unity-gtk-module, ATOM_HOME=/home/byjokese/.atom, USER=byjokese, LS_COLORS=, LC_TELEPHONE=es_ES.UTF-8, XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0, XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0, SSH_AUTH_SOCK=/run/user/1000/keyring-iefCth/ssh, DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path, GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/atom.desktop, XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg, GOOGLE_API_KEY=AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q, DESKTOP_SESSION=ubuntu, PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin, QT_QPA_PLATFORMTHEME=appmenu-qt5, QT_IM_MODULE=ibus, LC_IDENTIFICATION=es_ES.UTF-8, JOB=unity-settings-daemon, PWD=/home/byjokese, JAVA_HOME=/usr/lib/jvm/java-8-oracle, XMODIFIERS=@im, GNOME_KEYRING_PID=1340, LANG=en_US.UTF-8, GDM_LANG=en_US, MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path, NODE_PATH=/opt/atom/resources/app.asar/exports, LC_MEASUREMENT=es_ES.UTF-8, CHROME_DESKTOP=Atom.desktop, COMPIZ_CONFIG_PROFILE=ubuntu, IM_CONFIG_PHASE=1, NODE_ENV=production, GDMSESSION=ubuntu, SESSIONTYPE=gnome-session, HOME=/home/byjokese, XDG_SEAT=seat0, SHLVL=1, LANGUAGE=en_US, GNOME_DESKTOP_SESSION_ID=this-is-deprecated, UPSTART_INSTANCE=, UPSTART_EVENTS=xsession started, LOGNAME=byjokese, COMPIZ_BIN_PATH=/usr/bin/, DBUS_SESSION_BUS_ADDRESS=unix:abstract, J2SDKDIR=/usr/lib/jvm/java-8-oracle, XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/, QT4_IM_MODULE=xim, LESSOPEN=| /usr/bin/lesspipe %s, UPSTART_JOB=unity7, INSTANCE=, TEXTDOMAIN=im-config, DISPLAY=:0, XDG_RUNTIME_DIR=/run/user/1000, XDG_CURRENT_DESKTOP=Unity, J2REDIR=/usr/lib/jvm/java-8-oracle/jre, GTK_IM_MODULE=ibus, LESSCLOSE=/usr/bin/lesspipe %s %s, LC_TIME=es_ES.UTF-8, TEXTDOMAINDIR=/usr/share/locale/, LC_NAME=es_ES.UTF-8, XAUTHORITY=/home/byjokese/.Xauthority, _=/usr/bin/env, _envCacheDate=Fri Oct 09 2015 09:36:52 GMT+0200 (CEST)
2015-10-09T07:37:08.017Z - debug: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/beautifier.coffee] tempFile input null path=/tmp/input11599-4132-1tdd2wb, fd=70
2015-10-09T07:37:08.018Z - debug: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/beautifier.coffee] tempFile output null path=/tmp/output11599-4132-16w1zub, fd=71
2015-10-09T07:37:08.019Z - debug: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/beautifier.coffee] exeName, args: uncrustify 0=-c, 1=/tmp/11599-4132-1uz60ru.cfg, 2=-f, 3=/tmp/input11599-4132-1tdd2wb, 4=-o, 5=/tmp/output11599-4132-16w1zub, 6=-l, 7=C
2015-10-09T07:37:08.296Z - debug: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/beautifier.coffee] exePath, env: uncrustify XDG_VTNR=7, LC_PAPER=es_ES.UTF-8, XDG_SESSION_ID=c1, LC_ADDRESS=es_ES.UTF-8, SELINUX_INIT=YES, XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/byjokese, LC_MONETARY=es_ES.UTF-8, CLUTTER_IM_MODULE=xim, GIO_LAUNCHED_DESKTOP_FILE_PID=4096, SESSION=ubuntu, GPG_AGENT_INFO=/run/user/1000/keyring-iefCth/gpg:0:1, SHELL=/bin/bash, DERBY_HOME=/usr/lib/jvm/java-8-oracle/db, LC_NUMERIC=es_ES.UTF-8, UPSTART_SESSION=unix:abstract, GNOME_KEYRING_CONTROL=/run/user/1000/keyring-iefCth, GTK_MODULES=overlay-scrollbar:unity-gtk-module:unity-gtk-module, ATOM_HOME=/home/byjokese/.atom, USER=byjokese, LS_COLORS=, LC_TELEPHONE=es_ES.UTF-8, XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0, XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0, SSH_AUTH_SOCK=/run/user/1000/keyring-iefCth/ssh, DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path, GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/atom.desktop, XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg, GOOGLE_API_KEY=AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q, DESKTOP_SESSION=ubuntu, PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin, QT_QPA_PLATFORMTHEME=appmenu-qt5, QT_IM_MODULE=ibus, LC_IDENTIFICATION=es_ES.UTF-8, JOB=unity-settings-daemon, PWD=/home/byjokese, JAVA_HOME=/usr/lib/jvm/java-8-oracle, XMODIFIERS=@im, GNOME_KEYRING_PID=1340, LANG=en_US.UTF-8, GDM_LANG=en_US, MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path, NODE_PATH=/opt/atom/resources/app.asar/exports, LC_MEASUREMENT=es_ES.UTF-8, CHROME_DESKTOP=Atom.desktop, COMPIZ_CONFIG_PROFILE=ubuntu, IM_CONFIG_PHASE=1, NODE_ENV=production, GDMSESSION=ubuntu, SESSIONTYPE=gnome-session, HOME=/home/byjokese, XDG_SEAT=seat0, SHLVL=1, LANGUAGE=en_US, GNOME_DESKTOP_SESSION_ID=this-is-deprecated, UPSTART_INSTANCE=, UPSTART_EVENTS=xsession started, LOGNAME=byjokese, COMPIZ_BIN_PATH=/usr/bin/, DBUS_SESSION_BUS_ADDRESS=unix:abstract, J2SDKDIR=/usr/lib/jvm/java-8-oracle, XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/, QT4_IM_MODULE=xim, LESSOPEN=| /usr/bin/lesspipe %s, UPSTART_JOB=unity7, INSTANCE=, TEXTDOMAIN=im-config, DISPLAY=:0, XDG_RUNTIME_DIR=/run/user/1000, XDG_CURRENT_DESKTOP=Unity, J2REDIR=/usr/lib/jvm/java-8-oracle/jre, GTK_IM_MODULE=ibus, LESSCLOSE=/usr/bin/lesspipe %s %s, LC_TIME=es_ES.UTF-8, TEXTDOMAINDIR=/usr/share/locale/, LC_NAME=es_ES.UTF-8, XAUTHORITY=/home/byjokese/.Xauthority, _=/usr/bin/env
2015-10-09T07:37:08.299Z - debug: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/beautifier.coffee] spawn uncrustify 0=-c, 1=/tmp/11599-4132-1uz60ru.cfg, 2=-f, 3=/tmp/input11599-4132-1tdd2wb, 4=-o, 5=/tmp/output11599-4132-16w1zub, 6=-l, 7=C
2015-10-09T07:37:08.313Z - debug: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/beautifier.coffee] error Error: spawn uncrustify ENOENT
    at exports._errnoException (util.js:734:11)
    at Process.ChildProcess._handle.onexit (child_process.js:1035:32)
    at child_process.js:1127:20
    at process._tickCallback (node.js:357:13)
2015-10-09T07:37:08.315Z - debug: [/home/byjokese/.atom/packages/atom-beautify/src/beautifiers/beautifier.coffee] error Error: spawn uncrustify ENOENT
    at exports._errnoException (util.js:734:11)
    at Process.ChildProcess._handle.onexit (child_process.js:1035:32)
    at child_process.js:1127:20
    at process._tickCallback (node.js:357:13)

@vrtknt
Copy link

vrtknt commented Dec 7, 2015

I have the same problem. It was working before (when i used it a month ago). I don't know how i broke this (atom update maybe ?).

Anyway i am using debian jessie with xfce and am using the official deb for atom. Uncrustify is in my local home directory. my path is ok in terminal and i can launch uncrustify from anywhere ("which uncrustify" shows the correct binary).

I can't use Atom Beautify Debug (after i press "ok" nothing happens) and in my console i get the following error.

    Unhandled promise rejection Promise with error: TypeError: value.split is not a function
        at Object.lineDiff.tokenize (/home/xxx/.atom/packages/atom-beautify/node_modules/diff/lib/diff/line.js:20:32)
        at Object.diff (/home/xxx/.atom/packages/atom-beautify/node_modules/diff/lib/diff/base.js:37:39)
        at Object.diffLines (/home/xxx/.atom/packages/atom-beautify/node_modules/diff/lib/diff/line.js:45:19)
        at structuredPatch (/home/xxx/.atom/packages/atom-beautify/node_modules/diff/lib/patch/create.js:18:24)
        at createTwoFilesPatch (/home/xxx/.atom/packages/atom-beautify/node_modules/diff/lib/patch/create.js:130:14)
        at Object.createPatch (/home/xxx/.atom/packages/atom-beautify/node_modules/diff/lib/patch/create.js:150:10)
        at Promise.all.then.cb (/home/xxx/.atom/packages/atom-beautify/src/beautify.coffee:399:21)
        at tryCatcher (/usr/share/atom/resources/app.asar/node_modules/babel-core/node_modules/bluebird/js/main/util.js:26:23)
        at Promise._settlePromiseFromHandler (/usr/share/atom/resources/app.asar/node_modules/babel-core/node_modules/bluebird/js/main/promise.js:507:31)
        at Promise._settlePromiseAt (/usr/share/atom/resources/app.asar/node_modules/babel-core/node_modules/bluebird/js/main/promise.js:581:18)
        at Promise._settlePromises (/usr/share/atom/resources/app.asar/node_modules/babel-core/node_modules/bluebird/js/main/promise.js:697:14)
        at Async._drainQueue (/usr/share/atom/resources/app.asar/node_modules/babel-core/node_modules/bluebird/js/main/async.js:123:16)
        at Async._drainQueues (/usr/share/atom/resources/app.asar/node_modules/babel-core/node_modules/bluebird/js/main/async.js:133:10)
        at MutationObserver.Async.drainQueues (/usr/share/atom/resources/app.asar/node_modules/babel-core/node_modules/bluebird/js/main/async.js:15:14)
        at process._tickCallback (node.js:368:9)

I can get Atom Beautify Debug to work by commenting out lines 398 to 401 in beautify.coffee but i think thats another story (beautify.coffee line 398 to 401)

      JsDiff = require('diff')
      diff = JsDiff.createPatch(filePath, text, \
        result, "original", "beautified")
      addInfo('Original vs. Beautified Diff', "\n```#{codeBlockSyntax}\n#{diff}\n```")

What i noticed is that the PATH variable in the log does not match my actual PATH variable. But when i type process.env['PATH'] in the atom console it shows the correct PATH variable contents.

I think that gddabe in this thread #394 had the same problem. He or she managed to solve it by reinstalling everything. That did not help me.

@gibbon-cn
Copy link

The problem is caused by non-existence of unscrustify.exe. The solution is to download uncrustify.exe from http://sourceforge.net/projects/uncrustify/, and then copy it to c:\windows\ and c:\windows\system32.

@gjmveloso
Copy link

Why not embedding uncrustify inside the package itself? - some other packages out there download additional required dependencies on-demand

@Glavin001
Copy link
Owner

@gjmveloso if you submit a Pull Request I'd be happy to review the code and the implications (change in file size, etc) of bundling the executables with Atom-Beautify. Note that we must support Mac, Linux, and Windows.

@ghost
Copy link

ghost commented Oct 31, 2016

just install the programm: linux: sudo apt-get install uncrustitfy

@a1exlism
Copy link

a1exlism commented Mar 2, 2017

A spell wrong.

$sudo apt-get install uncrustify

@nyaapass
Copy link

nyaapass commented Apr 27, 2017

For macOS users to instal uncrustify using brew:
$ brew install uncrustify

if you want to change the tab width from 8(Unix default) to 4:

$ atom ~/.atom/packages/atom-beautify/src/beautifiers/uncrustify/default.cfg
output_tab_size = 4 # (edit about line 14) 
indent_columns  = 4 # (edit about line 42) 

then change path of the C and C++ setting of atom-beautify:
~/.atom/packages/atom-beautify/src/beautifiers/uncrustify/default.cfg

@Glavin001
Copy link
Owner

I really want to focus on improving the installation experience for users. I have created a new Issue, #1687, to target this problem. Please provide your feedback! Thanks in advance.

@GuaiLong618
Copy link

download uncrustify copy to this path
C:/Users/Zeus/.atom/packages/atom-beautify/src/beautifiers

@zuster
Copy link

zuster commented Aug 21, 2017

I have the same problem when I installed this plugin use command "apm install atom-beautify"。

Could not find 'uncrustify'. The program may not be installed.

See uncrustify installation instructions at https://github.com/Glavin001/atom-beautify#beautifiers or go to https://github.com/uncrustify/uncrustify
You can configure Atom Beautify with the absolute path to 'uncrustify' by setting 'Executable - Uncrustify - Path' in the Atom Beautify package settings.
Your program is properly installed if running 'which uncrustify' in your Terminal returns an absolute path to the executable.
Hide Stack Trace
Error: Could not find 'uncrustify'. The program may not be installed.
    at Function.Executable.commandNotFoundError (/Users/zuster/.atom/packages/atom-beautify/src/beautifiers/executable.coffee:276:14)
    at HybridExecutable.Executable.commandNotFoundError (/Users/zuster/.atom/packages/atom-beautify/src/beautifiers/executable.coffee:268:18)
    at /Users/zuster/.atom/packages/atom-beautify/src/beautifiers/executable.coffee:196:22
    at tryCatcher (/Users/zuster/.atom/packages/atom-beautify/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/zuster/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/Users/zuster/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/Users/zuster/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/Users/zuster/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:689:18)
    at Async._drainQueue (/Users/zuster/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:133:16)
    at Async._drainQueues (/Users/zuster/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:143:10)
    at Async.drainQueues (/Users/zuster/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:17:14)
    at process._tickCallback (internal/process/next_tick.js:103:7)

@harshk9
Copy link

harshk9 commented Feb 4, 2018

You need 'uncrustify' to beautify code of c,c++ etc. in 'atom-beautify' since it is not given in the default package. Installing uncrustify from terminal using
$sudo apt-get install uncrustify
will fix the error for linux users. For windows, install uncrustify.exe and set the path from 'beautify->executables->uncrustify->path..'

@yywxdgy
Copy link

yywxdgy commented Jul 23, 2020

该问题是由unscrustify.exe不存在引起的。解决方案是从http://sourceforge.net/projects/uncrustify/下载uncrustify.exe ,然后将其复制到c:\windows\c:\windows\system32
Yes, I solved the problem that way,thanks

@kro-cat
Copy link

kro-cat commented Jan 13, 2022

Hi. I found something that worked for me. In atom-beautify/src/beautifiers/uncrustify/index.coffee, on lines 22 through 26:

          try
            v = text.match(/uncrustify (\d+\.\d+)/)[1]
          catch error
            @error(error)
            v = text.match(/Uncrustify-(\d+\.\d+)/)[1] if not v?

it attempts to get the uncrustify version by parsing the output of uncrustify --version.
My version string, Uncrustify_d-0.74.0-98-62fd526c doesn't match these regex patterns.
Simply replacing these lines with:

          try
            v = text.match(/[Uu]ncrustify[^\d]*(\d+\.\d+)/)[1]
          catch error
            @error(error)

Fixed the problem for me.

@emendir
Copy link

emendir commented Apr 29, 2022

Hi. I found something that worked for me. In atom-beautify/src/beautifiers/uncrustify/index.coffee, on lines 22 through 26:

          try
            v = text.match(/uncrustify (\d+\.\d+)/)[1]
          catch error
            @error(error)
            v = text.match(/Uncrustify-(\d+\.\d+)/)[1] if not v?

it attempts to get the uncrustify version by parsing the output of uncrustify --version. My version string, Uncrustify_d-0.74.0-98-62fd526c doesn't match these regex patterns. Simply replacing these lines with:

          try
            v = text.match(/[Uu]ncrustify[^\d]*(\d+\.\d+)/)[1]
          catch error
            @error(error)

Fixed the problem for me using a manual build of uncrustify.
Didn't work with uncrustify installed from Ubuntu 20's APT repository (sudo apt install uncrustify), which seems to have yet another version string format (Uncrustify-0.69.0_f)!

@kro-cat
Copy link

kro-cat commented May 11, 2022

Didn't work with uncrustify installed from Ubuntu 20's APT repository (sudo apt install uncrustify), which seems to have yet another version string format (Uncrustify-0.69.0_f)!

Hey @emendir ! Sorry it took so long to get back to you.
Uncrustify seems to have quite a diversity, lol.
If you haven't found one yet, I believe a solution that includes that version string might be something like:

          try
            v = text.match(/[Uu]ncrustify[^0-9]*(\d+\.\d+)/)[1]
          catch error
            @error(error)

-- which swaps out that first character group for only digits. (if I remember corrently, \d matches a + or - at the beginning of a number, or something like that.)
Also, if you came up with a different solution, I'd love to see!

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