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. Errors running lupdate
Forum Updated to NodeBB v4.3 + New Features

Errors running lupdate

Scheduled Pinned Locked Moved Unsolved General and Desktop
13 Posts 3 Posters 1.6k 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.
  • PerdrixP Offline
    PerdrixP Offline
    Perdrix
    wrote on last edited by Perdrix
    #1

    When I run lupdate on my project today I got:

    lupdate i18n\DSS_en.ts
    (C:/Qt/6.6.1/msvc2019_64/bin/lupdate.exe -no-obsolete -no-obsolete "@x64\Debug\DSS_en.in.txt" -ts i18n\DSS_en.ts)
    C:/Users/amonra/Documents/GitHub/DSS/DeepSkyStacker/ExplorerBar.cpp:298: Qualifying with unknown namespace/class ::ExplorerBar
    C:/Users/amonra/Documents/GitHub/DSS/DeepSkyStacker/ExplorerBar.cpp:341: Qualifying with unknown namespace/class ::ExplorerBar
    C:/Users/amonra/Documents/GitHub/DSS/DeepSkyStacker/ExplorerBar.cpp:408: Qualifying with unknown namespace/class ::ExplorerBar
    C:/Users/amonra/Documents/GitHub/DSS/DeepSkyStacker/ExplorerBar.cpp:574: Qualifying with unknown namespace/class ::ExplorerBar
    C:/Users/amonra/Documents/GitHub/DSS/DeepSkyStacker/ExplorerBar.cpp:621: Qualifying with unknown namespace/class ::ExplorerBar
    
    C:/Users/amonra/Documents/GitHub/DSS/DeepSkyStacker/StackRecap.cpp:186: Qualifying with unknown namespace/class ::StackRecap
    Updating 'i18n/DSS_en.ts'...
    Found 507 source text(s) (0 new and 507 already existing)
    

    What's worse is when I open the file in Qt Linguist and select a context (doesn't matter which one), the Linguist goes into "Not Responding" state! ARGH!

    What has gone wrong please?

    Thanks
    David

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Perhaps a missing Q_OBJECT macro in these classes?

      (Z(:^

      1 Reply Last reply
      0
      • PerdrixP Offline
        PerdrixP Offline
        Perdrix
        wrote on last edited by
        #3

        Thanks for that suggestion. The headers did contain Q_OBJECT macros, but I'd moved the classes into a namespace and the header file was correct, but a namespace statement was missing in the cpp files. Adding the missing namespace statement fixed the lupdate errors.

        Unfortunately, Qt Linguist still goes to "Not Responding" after the .ts file has been updated. Prior to the lupdate, Linguist worked to edit this .ts file

        1 Reply Last reply
        0
        • PerdrixP Offline
          PerdrixP Offline
          Perdrix
          wrote on last edited by
          #4

          This is a problem with Linguist 6.6.1, I can work with the file using Linguist at the 6.4.0, 6.5.0. and 6.5.1 levels without problems. 6.6.1 just locks up

          1 Reply Last reply
          0
          • PerdrixP Offline
            PerdrixP Offline
            Perdrix
            wrote on last edited by
            #5

            6.6.3 and 6.7.3 are also borked

            1 Reply Last reply
            0
            • PerdrixP Offline
              PerdrixP Offline
              Perdrix
              wrote on last edited by
              #6

              So the Linguist issue would seem to be a bug introduced between 6.5.1 and 6.6.1

              1 Reply Last reply
              0
              • Christian EhrlicherC Offline
                Christian EhrlicherC Offline
                Christian Ehrlicher
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Now you just have to provide a minimal, compilable example to reproduce the problem and write a bug report about it.

                Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                Visit the Qt Academy at https://academy.qt.io/catalog

                1 Reply Last reply
                0
                • PerdrixP Offline
                  PerdrixP Offline
                  Perdrix
                  wrote on last edited by
                  #8

                  Very funny (not)! The ts file was many hundreds of lines - and I've no clue what caused Linguist to choke on it

                  Christian EhrlicherC 1 Reply Last reply
                  0
                  • PerdrixP Offline
                    PerdrixP Offline
                    Perdrix
                    wrote on last edited by Perdrix
                    #9

                    I believe I can recreate the .ts file that causes Linguist to choke. Surely that should be enough?

                    1 Reply Last reply
                    0
                    • PerdrixP Perdrix

                      Very funny (not)! The ts file was many hundreds of lines - and I've no clue what caused Linguist to choke on it

                      Christian EhrlicherC Offline
                      Christian EhrlicherC Offline
                      Christian Ehrlicher
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @Perdrix said in Errors running lupdate:

                      The ts file was many hundreds of lines - and I've no clue what caused Linguist to choke on it

                      That's also one part of programming - finding out what the problem is...

                      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                      Visit the Qt Academy at https://academy.qt.io/catalog

                      1 Reply Last reply
                      0
                      • sierdzioS Offline
                        sierdzioS Offline
                        sierdzio
                        Moderators
                        wrote on last edited by
                        #11

                        I think in this instance, the TS file is enough for a bug report. After all, the bug is in Linguist, not in lupdate - at least that's what it seems to be at the moment.

                        (Z(:^

                        1 Reply Last reply
                        0
                        • PerdrixP Offline
                          PerdrixP Offline
                          Perdrix
                          wrote on last edited by
                          #12

                          https://bugreports.qt.io/browse/QTBUG-129707

                          1 Reply Last reply
                          1
                          • sierdzioS Offline
                            sierdzioS Offline
                            sierdzio
                            Moderators
                            wrote on last edited by
                            #13

                            Nice, thanks for posting! I've voted for this bug.

                            I don't want to be on 6.5.1 as there are problems I had that were fixed in 6.6.1

                            BTW. it should be totally fine to use Linguist from another Qt version - both TS and QM formats are stable and compatible both forwards and backwards (at least in my experience). So you can keep developing your app using Qt 6.7, but handle translations using 6.5 Linguist. It's annoying, sure, but better than waiting for the bug to get fixed and next Qt release to roll out.

                            (Z(:^

                            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