sourcegraph / sourcegraph-public-snapshot

Code AI platform with Code Search & Cody
https://sourcegraph.com
Other
10.1k stars 1.27k forks source link

query validation on `not` is too strict #26338

Open rvantonder opened 2 years ago

rvantonder commented 2 years ago

not (foo) is rejected in literal/regex mode, but this is too strict, we know it can't be a subexpression. The workaround with content exists but again this is unintentionally strict. Just tracking for myself to address soon.

/cc @sourcegraph/search-platform

keegancsmith commented 6 months ago

cc @stefanhengl

stefanhengl commented 6 months ago

I can still reproduce this.