Closed mtkennerly closed 5 months ago
The function finder is also case sensitive, but rip grave dig 2018.
Should be fixed with "cucumberautocomplete.pureTextSteps": true
option using after 2.16.0 release.
This issue is to be fixed or implemented in the 3.0.0 version of the extension. If this issue is unresolved or there are additional notes, please create a new ticket with the necessary details.
Describe the bug Using Behave for Python, the default step definition matcher is non-regex, so you can define a step like
@given("a ? is displayed")
or@when("I pay $5")
. The plugin (2.12.1) is unable to find these definitions. The plugin can find@given("a \? is displayed")
, but Behave won't recognize that.A boolean config option like
cucumberautocomplete.stepDefinitionsUseRegex
(true
for current behavior) would be enough for most use cases, including mine. However, it's not foolproof. In Behave, it's possible to selectively use the default matcher, a regex matcher, or even define your own on a per-step basis (see here). I'm not sure how you could handle that without in-file configuration, like:To Reproduce See the files below.
Expected behavior Steps with literal regex-type characters can be detected.
Screenshots
Cucumberautocomplete part of VSCode settings:
Step definition:
Gherkin step line