Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

comments within a table leads to "generator raised StopIteration" #67

Open
amkurz opened this issue Aug 4, 2023 · 0 comments
Open

comments within a table leads to "generator raised StopIteration" #67

amkurz opened this issue Aug 4, 2023 · 0 comments

Comments

@amkurz
Copy link

amkurz commented Aug 4, 2023

Describe the bug

When reformatting files with table rows commented out, the parser stops with an StopIteration error.

To Reproduce


Feature: table_bug

Scenario: 1 StopIteration error after "And I set fields"
Given I open an editor "Zeitbuchung" for tip command "Zeitbuchung" and arguments ""
And I set field "barmex" to "nummer" from editor "RM1_FallR2"
And I set fields
# | barmex    | !Rückmeldung2^nummer|
    | lgr       | 1                   |
    | bzeit     | -3                  |
And I save the current editor

Actual behaviour

No formatting is done.
Error: cannot format tablebug.feature: generator raised StopIteration

Environment

  • reformat-gherkin 3.0.1
  • Python 3.9.2
  • Debian GNU/Linux 11 (bullseye)

Additional context

The error happens in every table, independent whether it start with "And I set fields", "And I modify table" or "Then table has values".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant