Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Beautyfier error

Beautyfier error

Scheduled Pinned Locked Moved Unsolved General and Desktop
19 Posts 2 Posters 2.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mrjjM Offline
    mrjjM Offline
    mrjj
    Lifetime Qt Champion
    wrote on last edited by mrjj
    #10

    Hi
    make sure you run it on a CPP/H file. not QML.
    It wont format QML as far as i know.

    G 1 Reply Last reply
    0
    • mrjjM mrjj

      Hi
      make sure you run it on a CPP/H file. not QML.
      It wont format QML as far as i know.

      G Offline
      G Offline
      gabor53
      wrote on last edited by
      #11

      Hi @mrjj ,
      When I try to run it on a cpp/h file I get the following error message:
      Error in Beautifier: Failed to format: The command "C:\AStyle\bin\AStyle.exe" terminated with exit code 1..

      Is there any beautifyer to format QML?
      Thank you.

      mrjjM 1 Reply Last reply
      0
      • G gabor53

        Hi @mrjj ,
        When I try to run it on a cpp/h file I get the following error message:
        Error in Beautifier: Failed to format: The command "C:\AStyle\bin\AStyle.exe" terminated with exit code 1..

        Is there any beautifyer to format QML?
        Thank you.

        mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by mrjj
        #12

        Hi
        Not sure what it means by that.
        Please try this config. and see.

        --style=kr 
        --indent=spaces=4 
        --align-pointer=name 
        --align-reference=name 
        --convert-tabs 
        --attach-namespaces
        --max-code-length=100 
        --max-instatement-indent=120 
        --pad-header
        --pad-oper
        

        I have not seen any external formatters for QML but I think the build in works pretty ok ?

        G 1 Reply Last reply
        0
        • mrjjM mrjj

          Hi
          Not sure what it means by that.
          Please try this config. and see.

          --style=kr 
          --indent=spaces=4 
          --align-pointer=name 
          --align-reference=name 
          --convert-tabs 
          --attach-namespaces
          --max-code-length=100 
          --max-instatement-indent=120 
          --pad-header
          --pad-oper
          

          I have not seen any external formatters for QML but I think the build in works pretty ok ?

          G Offline
          G Offline
          gabor53
          wrote on last edited by
          #13

          @mrjj
          The built in QML formatter works great.
          I entered the codes you recommended into Options - Beautifier - Artistic Style - Options - Use customized style - edit, but got the same error message
          Error in Beautifier: Failed to format: The command "C:\AStyle\bin\AStyle.exe" terminated with exit code 1..

          mrjjM 1 Reply Last reply
          0
          • G gabor53

            @mrjj
            The built in QML formatter works great.
            I entered the codes you recommended into Options - Beautifier - Artistic Style - Options - Use customized style - edit, but got the same error message
            Error in Beautifier: Failed to format: The command "C:\AStyle\bin\AStyle.exe" terminated with exit code 1..

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #14

            Hi
            Ok, that is a bit odd.

            If you open a command prompt and type (past)
            C:\AStyle\bin\AStyle.exe
            it does run the tool and it lists its options ?

            G 1 Reply Last reply
            0
            • mrjjM mrjj

              Hi
              Ok, that is a bit odd.

              If you open a command prompt and type (past)
              C:\AStyle\bin\AStyle.exe
              it does run the tool and it lists its options ?

              G Offline
              G Offline
              gabor53
              wrote on last edited by
              #15

              Hi @mrjj ,

              The command generated the error message below:

              C:\AStyle\bin\Atyle.exe : The term 'C:\AStyle\bin\Atyle.exe' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the
              path is correct and try again.
              At line:1 char:1

              • C:\AStyle\bin\Atyle.exe
              •   + CategoryInfo          : ObjectNotFound: (C:\AStyle\bin\Atyle.exe:String) [], CommandNotFoundException
                  + FullyQualifiedErrorId : CommandNotFoundException
                
                

              Thank you for your help.

              mrjjM 1 Reply Last reply
              0
              • G gabor53

                Hi @mrjj ,

                The command generated the error message below:

                C:\AStyle\bin\Atyle.exe : The term 'C:\AStyle\bin\Atyle.exe' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the
                path is correct and try again.
                At line:1 char:1

                • C:\AStyle\bin\Atyle.exe
                •   + CategoryInfo          : ObjectNotFound: (C:\AStyle\bin\Atyle.exe:String) [], CommandNotFoundException
                    + FullyQualifiedErrorId : CommandNotFoundException
                  
                  

                Thank you for your help.

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #16

                @gabor53
                hi
                you spelled it wrong
                C:\AStyle\bin\Atyle.exe << missing an s

                G 1 Reply Last reply
                0
                • mrjjM mrjj

                  @gabor53
                  hi
                  you spelled it wrong
                  C:\AStyle\bin\Atyle.exe << missing an s

                  G Offline
                  G Offline
                  gabor53
                  wrote on last edited by
                  #17

                  @mrjj
                  C:>C:\AStyle\bin\AStyle.exe

                  Absolutely nothing happened.

                  mrjjM 1 Reply Last reply
                  0
                  • G gabor53

                    @mrjj
                    C:>C:\AStyle\bin\AStyle.exe

                    Absolutely nothing happened.

                    mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by
                    #18

                    @gabor53
                    Hi
                    C:\AStyle\bin\AStyle.exe -h
                    and see if its alive

                    G 1 Reply Last reply
                    0
                    • mrjjM mrjj

                      @gabor53
                      Hi
                      C:\AStyle\bin\AStyle.exe -h
                      and see if its alive

                      G Offline
                      G Offline
                      gabor53
                      wrote on last edited by
                      #19

                      Hi @mrjj,
                      It is alive.

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved