Texstudio 结构视图测试失败!

Texstudio 结构视图测试失败!

安装 TexStudio 后,我收到以下错误。它发生在 TexStudio 2.3(Ubuntu 13.04 repo)以及 2.5.2(ppa:blahota/texstudio)中。在提交 TexStudio 错误报告之前,我想问一下,是否有人可以看看它是否与 TexStudio 有关或其他原因?

********* Start testing of StructureViewTest *********
Config: Using QTest library 4.8.4, Qt 4.8.4
PASS   : StructureViewTest::initTestCase()
FAIL!  : StructureViewTest::script(add Label) Compared values are not the same
   Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2
   Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2
   Loc: [tests/structureview_t.cpp(215)]
FAIL!  : StructureViewTest::script(add Label2) Compared values are not the same
   Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2
   Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2
   Loc: [tests/structureview_t.cpp(215)]
FAIL!  : StructureViewTest::script(add Label3) Compared values are not the same
   Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:test3 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:test6 LVL:0 IND:2
   Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:test3 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:test6 LVL:0 IND:2
   Loc: [tests/structureview_t.cpp(215)]
FAIL!  : StructureViewTest::script(change Label) Compared values are not the same
   Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:test3 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2
   Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:test3 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2
   Loc: [tests/structureview_t.cpp(215)]
FAIL!  : StructureViewTest::script(change Label2) Compared values are not the same
   Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:tabcest3 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2
   Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:tabcest3 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2
   Loc: [tests/structureview_t.cpp(215)]
FAIL!  : StructureViewTest::script(change Label3) Compared values are not the same
   Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:tabcst3 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2
   Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:tabcst3 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2
   Loc: [tests/structureview_t.cpp(215)]
FAIL!  : StructureViewTest::script(remove line) Compared values are not the same
   Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2
   Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test2 LVL:0 IND:2##Label:test4 LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2
   Loc: [tests/structureview_t.cpp(215)]
FAIL!  : StructureViewTest::script(remove lines2) Compared values are not the same
   Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2
   Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2
   Loc: [tests/structureview_t.cpp(215)]
FAIL!  : StructureViewTest::script(add section) Compared values are not the same
   Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1
   Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1
   Loc: [tests/structureview_t.cpp(215)]
FAIL!  : StructureViewTest::script(add section2) Compared values are not the same
   Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sec:test LVL:2 IND:1
   Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sec:test LVL:2 IND:1
   Loc: [tests/structureview_t.cpp(215)]
FAIL!  : StructureViewTest::script(change section) Compared values are not the same
   Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sabcec:test LVL:2 IND:1
   Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sabcec:test LVL:2 IND:1
   Loc: [tests/structureview_t.cpp(215)]
FAIL!  : StructureViewTest::script(change section2) Compared values are not the same
   Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sabcec:test LVL:3 IND:2
   Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sabcec:test LVL:3 IND:2
   Loc: [tests/structureview_t.cpp(215)]
FAIL!  : StructureViewTest::script(change section3) Compared values are not the same
   Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sabcec:test LVL:4 IND:2
   Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sabcec:test LVL:4 IND:2
   Loc: [tests/structureview_t.cpp(215)]
FAIL!  : StructureViewTest::script(change section4) Compared values are not the same
   Actual (res1.join("##")): Root: LVL:0 IND:0##Overview:?TIQUETTES LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sabcec:test LVL:2 IND:1
   Expected (expectedStructure): Root: LVL:0 IND:0##Overview:LABELS LVL:0 IND:1##Label:test LVL:0 IND:2##Label:test5 LVL:0 IND:2##Label:tabcest6 LVL:0 IND:2##Section:sec:test LVL:2 IND:1##Section:sabcec:test LVL:2 IND:1
   Loc: [tests/structureview_t.cpp(215)]
RESULT : StructureViewTest::benchmark():"single line text":
     0.10 msecs per iteration (total: 52, iterations: 512)
RESULT : StructureViewTest::benchmark():"labels1":
     0.18 msecs per iteration (total: 94, iterations: 512)
RESULT : StructureViewTest::benchmark():"labels2":
     0.15 msecs per iteration (total: 79, iterations: 512)
RESULT : StructureViewTest::benchmark():"labels3":
     0.14 msecs per iteration (total: 74, iterations: 512)
RESULT : StructureViewTest::benchmark():"sections":
     0.10 msecs per iteration (total: 53, iterations: 512)
RESULT : StructureViewTest::benchmark():"sections with many children":
     0.15 msecs per iteration (total: 80, iterations: 512)
PASS   : StructureViewTest::benchmark()
PASS   : StructureViewTest::cleanupTestCase()
Totals: 3 passed, 14 failed, 0 skipped
********* Finished testing of StructureViewTest *********

答案1

这是因为 Ubuntu(和 Debian)有构建调试版本并删除软件包调试符号的策略。对于 TXS,调试版本还会运行一组您在此处遇到的测试。

我们已经为此实施了解决方法(另请参阅https://bugs.launchpad.net/ubuntu/+source/texstudio/+bug/1154261)。因此,您可以假设这个问题会在未来的版本中得到修复。或者,如果您想直接修复这个问题,您可以使用 SVN 版本和 BUILD.sh 脚本从源代码进行编译。

相关内容