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. Error in Beautifier: Cannot get configuration file for Artistic Style ,etc ?
Forum Updated to NodeBB v4.3 + New Features

Error in Beautifier: Cannot get configuration file for Artistic Style ,etc ?

Scheduled Pinned Locked Moved Solved General and Desktop
12 Posts 3 Posters 12.2k Views 2 Watching
  • 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
    #2

    Hi
    Did you install and set it up?
    I think its missing its format file.

    1 Reply Last reply
    4
    • L Offline
      L Offline
      Lineaxe
      wrote on last edited by
      #3

      Sounds great! I did download a file last night that was called clang somethin or other , so I guess I need to download astyle and Uncrustify as well and then set them all to their folder locations.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        Lineaxe
        wrote on last edited by Lineaxe
        #4

        Ok I did a build to get artistic binary file and used
        sudo apt-get install clang-format-3.5

        Error in Beautifier: /home/username/Qt5.7.0/Tools/QtCreator/libexec/qtcreator/clang-3.6: clang-3.6: error: unknown argument: '-style=LLVM'
        clang-3.6: error: no input files

        mrjjM 1 Reply Last reply
        0
        • L Lineaxe

          Ok I did a build to get artistic binary file and used
          sudo apt-get install clang-format-3.5

          Error in Beautifier: /home/username/Qt5.7.0/Tools/QtCreator/libexec/qtcreator/clang-3.6: clang-3.6: error: unknown argument: '-style=LLVM'
          clang-3.6: error: no input files

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

          @Lineaxe
          Hi
          I never tried clang-format.
          I do wonder why you seem to install 3.5
          but the errors seems to come from 3.6 ?

          1 Reply Last reply
          0
          • L Offline
            L Offline
            Lineaxe
            wrote on last edited by
            #6

            I haven't tried any of them, but I really like the concept so I will do some digging into it all so I can get it working too :)

            mrjjM 1 Reply Last reply
            0
            • L Lineaxe

              I haven't tried any of them, but I really like the concept so I will do some digging into it all so I can get it working too :)

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

              @Lineaxe
              Hi
              Just installing
              sudo apt-get install clang-format-3.6
              and point to exe worked for me in linux.

              1 Reply Last reply
              0
              • L Offline
                L Offline
                Lineaxe
                wrote on last edited by Lineaxe
                #8

                Now I wonder why I had the option of pointing to 3.6 ,when I had downloaded 3.5 ?I couldn't pick 3.5 as an option. But of course this makes sense , just get 3.6 :)
                I I found that it was the wrong file that I had been pointing to, you see running the make on the Artistic one built a file called astyle , and I was pointing to that one as well with no luck. I had not found enough info on the subject when I was searching online. Thanks , I will check out getting the other styles workingl. !!

                1 Reply Last reply
                0
                • L Offline
                  L Offline
                  Lineaxe
                  wrote on last edited by Lineaxe
                  #9

                  Hi, well I used
                  sudo apt-get install uncrustify
                  to get it installed into usr/bin . I couldn't find a name for artistic style to use with apt-get install , so I downloaded a tar and used make to get a bin.
                  I include here the directories for both of them:
                  /home/username/astyle/astyle
                  /usr/bin/uncrustify
                  When I tested them out on a file , I got the following errors:
                  Error in Beautifier: Cannot get configuration file for Artistic Style.
                  Error in Beautifier: Cannot get configuration file for Uncrustify.

                  By looking online I found adding a config for astyle and putting the following into it has worked ,however it now requires an xml documentation file.
                  --style=gnu
                  Testing atyle again comes up with:
                  Error in Beautifier: Cannot open documentation file "/home/username/.config/QtProject/qtcreator/beautifier/documentation/artisticstyle.xml".
                  Looks like I keep on opening up whole new projects to keep myself busy !

                  mrjjM 1 Reply Last reply
                  1
                  • L Lineaxe

                    Hi, well I used
                    sudo apt-get install uncrustify
                    to get it installed into usr/bin . I couldn't find a name for artistic style to use with apt-get install , so I downloaded a tar and used make to get a bin.
                    I include here the directories for both of them:
                    /home/username/astyle/astyle
                    /usr/bin/uncrustify
                    When I tested them out on a file , I got the following errors:
                    Error in Beautifier: Cannot get configuration file for Artistic Style.
                    Error in Beautifier: Cannot get configuration file for Uncrustify.

                    By looking online I found adding a config for astyle and putting the following into it has worked ,however it now requires an xml documentation file.
                    --style=gnu
                    Testing atyle again comes up with:
                    Error in Beautifier: Cannot open documentation file "/home/username/.config/QtProject/qtcreator/beautifier/documentation/artisticstyle.xml".
                    Looks like I keep on opening up whole new projects to keep myself busy !

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

                    @Lineaxe
                    hi
                    This is what i use for Artistic style.
                    I just add it directly in Creator with the Add button.

                    1 Reply Last reply
                    2
                    • L Offline
                      L Offline
                      Lineaxe
                      wrote on last edited by Lineaxe
                      #11

                      Now that seems to work. although I couldn't edit the Documentation text field. No messages coming up for artistic. I am down to getting the format error message problem sofved for Uncrustify . From what I am reading so far on the ones I have working , this stuff looks fairly robust.

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        Sipex
                        wrote on last edited by
                        #12

                        *.astylerc file must be added in Qt projects' pro file.
                        It can be added like any other source file.
                        After that, the style file is found automatically by Qt Creator.

                        example.pro:

                        ...
                        SOURCES += style.astylerc
                        ...
                        
                        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