Task #3217

Corpus, position virtual property is broken in commands

Added by Matthieu Decorde 5 months ago. Updated 4 months ago.

Status:New Start date:02/04/2022
Priority:Normal Due date:
Assignee:- % Done:

80%

Category:Commands Spent time: -
Target version:TXM 0.8.2

Description

From LexicalTable:

Table lexicale de la partition VOEUX/locs, propriété @position...
** null.
java.lang.NullPointerException
    at org.txm.searchengine.cqp.corpus.CQPLexicon.getLexicon(CQPLexicon.java:676)
    at org.txm.lexicaltable.core.functions.LexicalTable._computeFromPartition(LexicalTable.java:197)
    at org.txm.lexicaltable.core.functions.LexicalTable._compute(LexicalTable.java:370)
    at org.txm.core.results.TXMResult.compute(TXMResult.java:2394)
    at org.txm.core.results.TXMResult.compute(TXMResult.java:2282)
    at org.txm.rcp.editors.TXMEditor$4.run(TXMEditor.java:1002)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
TXMEditor.compute(): LexicalTableEditor: computing failed.

then the editors fails with %org.eclipse.core.runtime.AssertionFailedException: assertion failed: Column 3 has no label provider.% errors

to reproduce

From Index OR Concordance editor, select the (position) property

!ENTRY org.eclipse.ui 4 0 2022-02-04 14:33:28.114
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.ClassCastException: org.txm.searchengine.cqp.corpus.PositionProperty cannot be cast to org.txm.searchengine.cqp.corpus.StructuralUnitProperty
    at org.txm.rcp.swt.widget.PropertiesSelector.refresh(PropertiesSelector.java:172)
    at org.txm.rcp.swt.widget.PropertiesSelector$1.widgetSelected(PropertiesSelector.java:120)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5797)

History

#1 Updated by Matthieu Decorde 5 months ago

  • Description updated (diff)

#2 Updated by Matthieu Decorde 5 months ago

  • Description updated (diff)

#3 Updated by Matthieu Decorde 4 months ago

  • % Done changed from 0 to 80

Also available in: Atom PDF