Error in Beautifier: Failed to format: The command "astyle" could not be started..



  • qt5.9.1
    mac os 10.12

    brew install AStyle
    tool - beautifier - artistic style:
    Error in Beautifier: Failed to format: The command "astyle" could not be started..


  • Qt Champions 2017

    @xoraxrax
    hi
    Seems its not installed where Creator expects.
    Set it up in Options
    alt text



  • 0_1503580145016_QQ20170824-210828.png

    osx_test:

    # Allman Coding Style Options
    # Based on an old AStyle release.
    
    # braces and indent
    style=allman
    # indent=spaces    # this is the default
    
    # indentation
    min-conditional-indent=0
    max-continuation-indent=80
    
    # padding
    pad-oper
    pad-header
    unpad-paren
    align-pointer=type
    
    # formatting
    break-one-line-headers
    keep-one-line-blocks
    keep-one-line-statements
    convert-tabs
    
    

    error :

    Error in Beautifier: Cannot open documentation file "/Users/xoraxrax/.config/QtProject/qtcreator/beautifier/documentation/artisticstyle.xml".
    


  • it seems to have been successful ,issues can close.


  • Qt Champions 2017

    Alter the Option so it DO NOT look in user folder or project folder
    (or place file there if u want)

    alt text

    update OK:



  • thanks...


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.