Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. how to sort errors (issues panel) by file?
Forum Updated to NodeBB v4.3 + New Features

how to sort errors (issues panel) by file?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
11 Posts 5 Posters 1.4k 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.
  • D Offline
    D Offline
    davecotter
    wrote on last edited by davecotter
    #1

    look at this: is there some way to sort that by file then line number? seems kindof randomly sorted now.

    0_1548373149018_Screen Shot 2019-01-24 at 3.29.44 PM.png

    jsulmJ 1 Reply Last reply
    0
    • D davecotter

      look at this: is there some way to sort that by file then line number? seems kindof randomly sorted now.

      0_1548373149018_Screen Shot 2019-01-24 at 3.29.44 PM.png

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @davecotter The order is the same as the compiler outputs these errors. Usually it is better to start with the first error as many other errors are follow ups of the first one. So, if you would sort the errors like you suggest you would not know what the first error was and try to fix issues which are actually just follow up and disappear when the real issue is fixed.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      3
      • D Offline
        D Offline
        davecotter
        wrote on last edited by
        #3

        perhaps i'm not making myself clear.

        i want the errors sorted by file, then by line number. fixing an error on an earlier line number may make subsequent errors (on higher line numbers) go away.

        there's no way that an error in a file2 can cause errors in file1 (assuming it's not a header)

        JonBJ 1 Reply Last reply
        0
        • D davecotter

          perhaps i'm not making myself clear.

          i want the errors sorted by file, then by line number. fixing an error on an earlier line number may make subsequent errors (on higher line numbers) go away.

          there's no way that an error in a file2 can cause errors in file1 (assuming it's not a header)

          JonBJ Online
          JonBJ Online
          JonB
          wrote on last edited by
          #4

          @davecotter
          Sorry I don't use C++ or Creator and can't answer whether you can sort by file perhaps at he end of the build. But:

          seems kindof randomly sorted now.

          For C++ can't each .cpp be compiled in its own thread, so is that what's happening? If, say, you've changed a .h causing a bunch of .cpps to be re-compiled that could lead to the output order you see?

          1 Reply Last reply
          0
          • D Offline
            D Offline
            davecotter
            wrote on last edited by
            #5

            yes, i expect the errors are happening on different compile threads, that explains why several entries from the same file are interleaved with entries from another file. this is exactly how i do NOT want to read errors. i want them by file, not by chronological order of reporting from separate threads

            how do i sort by file?

            kshegunovK JonBJ 2 Replies Last reply
            0
            • D davecotter

              yes, i expect the errors are happening on different compile threads, that explains why several entries from the same file are interleaved with entries from another file. this is exactly how i do NOT want to read errors. i want them by file, not by chronological order of reporting from separate threads

              how do i sort by file?

              kshegunovK Offline
              kshegunovK Offline
              kshegunov
              Moderators
              wrote on last edited by
              #6

              @davecotter said in how to sort errors (issues panel) by file?:

              how do i sort by file?

              You don't, at least not to my knowledge. You could file this as a feature request on the bugtracker.

              Read and abide by the Qt Code of Conduct

              1 Reply Last reply
              2
              • D davecotter

                yes, i expect the errors are happening on different compile threads, that explains why several entries from the same file are interleaved with entries from another file. this is exactly how i do NOT want to read errors. i want them by file, not by chronological order of reporting from separate threads

                how do i sort by file?

                JonBJ Online
                JonBJ Online
                JonB
                wrote on last edited by JonB
                #7

                @davecotter
                I realise it would be a drastic step, but would you even consider seeing if you can tell whatever builds or compiles to be limited to only using one thread, like in the olden days, then you'd get the output order you'd like? I know MSVC/Visual Studio allows that choice. Whether it would sufficiently slow you down in practice, or you'd just use it when you had multiple errors to deal with, you'd have to test.

                You should certainly request the sorting as future feature if you'd like to.

                aha_1980A 1 Reply Last reply
                3
                • JonBJ JonB

                  @davecotter
                  I realise it would be a drastic step, but would you even consider seeing if you can tell whatever builds or compiles to be limited to only using one thread, like in the olden days, then you'd get the output order you'd like? I know MSVC/Visual Studio allows that choice. Whether it would sufficiently slow you down in practice, or you'd just use it when you had multiple errors to deal with, you'd have to test.

                  You should certainly request the sorting as future feature if you'd like to.

                  aha_1980A Offline
                  aha_1980A Offline
                  aha_1980
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @JonB Good idea. In practice, it would be enought, to build the file in doubt again (Ctrl+Alt+B), then the list only contains the errors from this file and should be pretty good sorted.

                  The normal build should use all cores. C++ can still takes some minutes to compile, depending on the project size.

                  Qt has to stay free or it will die.

                  JonBJ 1 Reply Last reply
                  1
                  • aha_1980A Offline
                    aha_1980A Offline
                    aha_1980
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    Continued as QTCREATORBUG-21893

                    Qt has to stay free or it will die.

                    1 Reply Last reply
                    3
                    • aha_1980A aha_1980

                      @JonB Good idea. In practice, it would be enought, to build the file in doubt again (Ctrl+Alt+B), then the list only contains the errors from this file and should be pretty good sorted.

                      The normal build should use all cores. C++ can still takes some minutes to compile, depending on the project size.

                      JonBJ Online
                      JonBJ Online
                      JonB
                      wrote on last edited by JonB
                      #10

                      @aha_1980
                      I've always had a healthy suspicion of multiprocessing. In theory men are multi-core/threaded too. However, in practice if we use more than one core they tend to overheat, stand around waiting for each core to finish, and end up taking more time than if they'd stuck to a single core anyway. Maybe compilers are female then....

                      aha_1980A 1 Reply Last reply
                      0
                      • JonBJ JonB

                        @aha_1980
                        I've always had a healthy suspicion of multiprocessing. In theory men are multi-core/threaded too. However, in practice if we use more than one core they tend to overheat, stand around waiting for each core to finish, and end up taking more time than if they'd stuck to a single core anyway. Maybe compilers are female then....

                        aha_1980A Offline
                        aha_1980A Offline
                        aha_1980
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11

                        @JonB said in how to sort errors (issues panel) by file?:

                        Maybe compilers are female then....

                        Haha, made my day.

                        Just as example: completely compiling QtCreator on my personal notebook takes approx. 25 minutes with 6 to 8 cores. One more or less does not matter. However, with only 1 core it would take over two hours.

                        So when dealing with large C++ projectes, multicores are a must. Really.

                        Qt has to stay free or it will die.

                        1 Reply Last reply
                        1

                        • Login

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