Uploaded image for project: 'Qt Visual Studio Tools'
  1. Qt Visual Studio Tools
  2. QTVSADDINBUG-888

lupdate fails to locate source files

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.7.1 (rev.08)
    • Fix Version/s: 2.7.1 (rev.15)
    • Component/s: General
    • Labels:
      None
    • Platform/s:
      Windows
    • Commits:
      fa65d9ce2271db855d1ac1753523a180d101d409

      Description

      We have a old Qt project that worked fine with Qt Visual Studio Tools 2.6.

      After upgrading to 2.7.1, we would like to use the lupdate feature because we added new files and texts to translate. As usual, we right clicked on the .ts file and selected the lupdate action. The ouput tells me that everything is ok:

      == MyProjectInstallerMMI: starting build...
       * Properties: 
       QtTranslationForceUpdate = true
       SelectedFiles = myprojectinstallermmi_fr.ts;
       * Targets: QtTranslation
      Translation disabled during build; skipping.
      == MyProjectInstallerMMI: build successful
      

       

      But the .ts file remains unchanged!

       

      So I tried to create a new translation file, but this time, I've got an error: 

      == MyProjectInstallerMMI: starting build...
       * Properties: 
       QtTranslationForceUpdate = true
       SelectedFiles = myprojectinstallermmi_de.ts
       * Targets: QtTranslation
      lupdate myprojectinstallermmi_de.ts
       File 'D:\Develops\Main\Installer\MyProject\MyProjectInstallerUI\MyProjectInstallerMMI\build\v142\..\ThirdParty\SQLite\3.21.0\sqlite3.c' does not exist.
       The command "(D:/Develops/ThirdParty/Qt/Qt5.12.5/5.12.5/msvc2017_64/bin/lupdate "@D:\Develops\Main\Installer\MyProject\MyProjectInstallerUI\MyProjectInstallerMMI\build\v142\Intermediate\v142\MyProjectInstallerMMI\x64\Debug\myprojectinstallermmi_de.in.txt" -ts myprojectinstallermmi_de.ts)" exited with code 1.
       MyProjectInstallerMMI.vcxproj: background build FAILED!
      == MyProjectInstallerMMI: build ERROR
      

       

      After investigation, the issue comes from the file sqlite.c which is included through a .props file (see attached SQLite_static_3.21.0.props). The problem seems to be the $(SolutionDir) macro.

      <SQLitePath>$(SolutionDir)..\ThirdParty\SQLite\3.21.0\</SQLitePath>

      You can find attached the related .in.txt.

       

      And my other question is: is there a way to migrate old .ts file to the new .in.txt system? Or do I need to recreate all my .ts files? If yes, how do I reccover my old translations?

       

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            mecfc Miguel Costa
            Reporter:
            aurel Aurélien Meurenand
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes