Closed mi5ha closed 4 years ago
Did you try any step without '$' symbol?
That was the problem, thank you! So any RE special character would produce this problem?
You can try to escape such chars like:
"cucumberautocomplete.customParameters": [
{
"parameter":"$",
"value":"\\$"
}
]
Works but with that I turn of $ as RE character right?
Right, but do you have any '$' regex symbol in your steps? How cucumber determine, that $
in 100$
is not 'regex end' character?
Yeah I see the conundrum... But I can always escape $ in step pattern so all good.
There is just one more thing I dont understand.
When step definition is {int} is deposited
In autocomplete I get: -?\d+ is deposited
What is -? for? \d+ is RE I guess.
It would be better if I got {int} selected as placeholder maybe?
-?\d+ - is a regex part, which should exec integer, like '1120' or '-12'
Describe the bug: Curly lines are displayed in the feature file even when step definitions are available and properly mentioned in the settings.json file Go to step definitions and Peek Step definitions options aren't displayed Note: I'm literally unable to get help from anywhere apart from creating an bug.
Expected behavior: User should be displayed Curly lines only for steps which doesn't have step definitions and user should be able to Go to step definitions from feature files
Settings.json file:
{
"cucumberautocomplete.steps": ["stepDefinitions/*.ts"],
"cucumberautocomplete.syncfeatures": "featureFiles/*feature",
"cucumberautocomplete.strictGherkinCompletion": true,
"cucumberautocomplete.strictGherkinValidation": true,
"cucumberautocomplete.smartSnippets": true,
"cucumberautocomplete.stepsInvariants": true,
"workbench.iconTheme": "vscode-icons",
"files.autoSave": "afterDelay",
"cucumberautocomplete.customParameters": [
]
}
Project structure:
-PROJECT NAME
-featureFiles
-features1.feature
-features1.feature
-stepDefinitions
-stepDefintions_1.ts
-stepDefintions_2.ts
-stepDefintions_3.ts
-pageObjects
-logs
-configFiles
-commonUtlities
-node_modules
-reports
-package.json
-ts-config.json
Describe the bug: Curly lines are displayed in the feature file even when step definitions are available and properly mentioned in the settings.json file Go to step definitions and Peek Step definitions options aren't displayed Note: I'm literally unable to get help from anywhere apart from creating an bug.
Expected behavior: User should be displayed Curly lines only for steps which doesn't have step definitions and user should be able to Go to step definitions from feature files
Settings.json file:
{ "cucumberautocomplete.steps": ["stepDefinitions/*.ts"], "cucumberautocomplete.syncfeatures": "featureFiles/*feature", "cucumberautocomplete.strictGherkinCompletion": true, "cucumberautocomplete.strictGherkinValidation": true, "cucumberautocomplete.smartSnippets": true, "cucumberautocomplete.stepsInvariants": true, "workbench.iconTheme": "vscode-icons", "files.autoSave": "afterDelay", "cucumberautocomplete.customParameters": [ ] }
Project structure:
-PROJECT NAME -featureFiles -features1.feature -features1.feature -stepDefinitions -stepDefintions_1.ts -stepDefintions_2.ts -stepDefintions_3.ts -pageObjects -logs -configFiles -commonUtlities -node_modules -reports -package.json -ts-config.json
Could you please create a separate issue for this if it still valid?
Closed due to looks like, that original issue was fixed.
Describe the bug It can not find any of my step definitions.
I have these files:
features/01 Example.feature features-steps/example.ts
Screenshots
Cucumberautocomplete part of VSCode settings:
Step definition: