You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Given("I have a menu item with name \"([^\"]+)\" and price (\\d+)")
The \ before " is required by Java but the language server should only see ". Also, when I run the tests everything is well, so it's not an issue with the definition of the step or the feature file. However, the language server gives the below exception and the step is not recognized in the feature file:
[Error - 5:03:40 PM] * Step Definition errors: Error: This Cucumber Expression has a problem at column 31:I have a menu item with name \"([^\"]+)\" and price (\d+) ^Only the characters '{', '}', '(', ')', '\', '/' and whitespace can be escaped.If you did mean to use an '\' you can use '\\' to escape it at RT (c:\Users\dstanciu\.vscode\extensions\cucumberopen.cucumber-official-1.5.1\out\extension.js:67:79988) at d (c:\Users\dstanciu\.vscode\extensions\cucumberopen.cucumber-official-1.5.1\out\extension.js:84:501) at c:\Users\dstanciu\.vscode\extensions\cucumberopen.cucumber-official-1.5.1\out\extension.js:84:702 at Array.forEach (<anonymous>) at ac.tokenize (c:\Users\dstanciu\.vscode\extensions\cucumberopen.cucumber-official-1.5.1\out\extension.js:84:636) at uc.parse (c:\Users\dstanciu\.vscode\extensions\cucumberopen.cucumber-official-1.5.1\out\extension.js:84:2357) at new ji (c:\Users\dstanciu\.vscode\extensions\cucumberopen.cucumber-official-1.5.1\out\extension.js:84:5199) at ga.createExpression (c:\Users\dstanciu\.vscode\extensions\cucumberopen.cucumber-official-1.5.1\out\extension.js:84:11717) at c:\Users\dstanciu\.vscode\extensions\cucumberopen.cucumber-official-1.5.1\out\extension.js:427:748 at $f.eachStepDefinitionExpression (c:\Users\dstanciu\.vscode\extensions\cucumberopen.cucumber-official-1.5.1\out\extension.js:424:1769) at Wf.build (c:\Users\dstanciu\.vscode\extensions\cucumberopen.cucumber-official-1.5.1\out\extension.js:427:695) at Sc.<anonymous> (c:\Users\dstanciu\.vscode\extensions\cucumberopen.cucumber-official-1.5.1\out\extension.js:433:19176) at Generator.next (<anonymous>) at u (c:\Users\dstanciu\.vscode\extensions\cucumberopen.cucumber-official-1.5.1\out\extension.js:433:11215) at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
✅ What did you expect to see?
The step definition would be parsed without error.
📦 Which tool/library version are you using?
I am running VSCode with cucumber extension 1,5,1 as seen also in the stack trace.
🔬 How could we reproduce it?
Steps to reproduce the behavior:
Install VSCode with Cucumber extension version '1.5.1'
Create a Java based Cucumber project, with one feature and one step definition. Use " in the step definition to allow " characters
Create a features file using that step.
The step is not recognized and the 'Cucumber Server Language' output window shows the exception mentioned above.
The text was updated successfully, but these errors were encountered:
👓 What did you see?
I have below step defined in my steps file:
The
\
before"
is required by Java but the language server should only see"
. Also, when I run the tests everything is well, so it's not an issue with the definition of the step or the feature file. However, the language server gives the below exception and the step is not recognized in the feature file:✅ What did you expect to see?
The step definition would be parsed without error.
📦 Which tool/library version are you using?
I am running VSCode with cucumber extension 1,5,1 as seen also in the stack trace.
🔬 How could we reproduce it?
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: