inception icon indicating copy to clipboard operation
inception copied to clipboard

Error messages shown for multi-valued string features with conditional visibility

Open lfcc1 opened this issue 7 months ago • 1 comments

Describe the bug When creating a multi-valued string feature and enabling the "Show only when constraints apply" option (with the corresponding constraint correctly defined in the constraints file), the feature behaves correctly in the annotation interface (hidden by default and only shown when the constraint applies). However, multiple errors are shown in the interface despite the expected behavior being correctly applied.

To Reproduce Steps to reproduce the behavior:

1- Create a multi-valued string feature. 2 - Enable the "Show only when constraints apply" option. 3 - Add a valid constraint in the constraints file that applies to the feature. 4 - Annotate a document where the constraint should hide/show the feature. 5 - Observe the annotation interface: although the feature is hidden/shown correctly, error messages appear.

Expected behavior The feature should be hidden or shown based on the constraint without generating any errors in the interface.

Screenshots

Image

("Atributos2" is the multi-valued string feature)

Please complete the following information:

  • Version and build ID: 35.2 (2025-02-04 07:13:24, build 18f5fdcd)
  • OS: Linux
  • Browser: edge

lfcc1 avatar May 13 '25 15:05 lfcc1

I have done this:

  • create a project using the basic span and relations template
  • added a multi-value string feature named labels, set the span labels tagset on it and activated show only when constraints apply
  • created the constraints
import custom.Span as Span;

Span {
  label = "A" -> labels = "B";
}
  • imported a document
  • created a span annotation and set the label to A

Now, for me the labels feature did not appear. I also did not get any error messages.

Could you maybe provide an example project that allows me to reproduce the issue?

reckart avatar Sep 16 '25 05:09 reckart