Error when lupdate calling.
-
When I start lupdate on my *.ts file in qt project I have such error:
@
Index was out of range. Must be non-negative and less then the size of the collection.
Parameter name: indexStacktrace:
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at System.Collections.Generic.List' 1.set_Item(Int32 index, T value)
at Nokia.QtProjectLib.ProgectExporter.ConvertFilesToFullPath(List' 1 files, String path)
at Qt4VSAddin.Translation.RunlUpdate(VCFile vcFile, Project pro)
at Qt4VSAddin.Translation.RunlUpdate(VCFile[] vcFile, Project pro)
at Qt4VSAddin.ConnectExec(String commandName, vsCommandExecOption executeOption, Object& varIn, Object& varOut, Boolean& handled)
@Also I find that if i delete one of my *.ui files in project and recompile it I have no error. What it can be ?
[EDIT: code formatting for stack trace, Volker]
-
I don't try to make lupdate with all the list of my files needed to be translated. I make some simple console application which stores all *.cpp, *.ui and *.h files(founded in *.vcproj file) in list file and then run lupdate using this list file. And now It's work correctly. Of course using shell. I make some batch file to do some automation of making list and then lupdating.