Skip to content

[bug] negative filter not working anymore #671

@gaeljw

Description

@gaeljw

Describe the bug

After upgrade to 4.10.2, negative filters seems to not work anymore: they filter out too many results.

To reproduce

(Regex enabled in all my tests but that doesn't seem to change anything)

Here's an example:

  • query file:gitlab-ci.yml "maven:test" (no negative filter), 28 matches
  • query file:gitlab-ci.yml "maven:test" "maven:test_with_jacoco" (still no negative filter), 1 match only => meaning only of the 28 match has both strings
  • query: file:gitlab-ci.yml "maven:test" -"maven:test_with_jacoco": 0 matches with v4.10.2 whereas it was giving the expected 27 matches with v4.9.2

Sourcebot deployment information

Sourcebot version (e.g. v3.0.1): 4.10.2

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions