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

Exception when adding tag after the last row in the feature file #126

Closed
alexandrafung opened this issue Jun 7, 2021 · 0 comments · Fixed by #131
Closed

Exception when adding tag after the last row in the feature file #126

alexandrafung opened this issue Jun 7, 2021 · 0 comments · Fixed by #131
Labels
bug Something isn't working

Comments

@alexandrafung
Copy link
Contributor

Steps to reproduce:

Given this feature file:

Feature: Calculator
	Simple calculator for adding two numbers

@mytag
Scenario: Add two numbers
	Given the first number is 50
	And the second number is 70
	When the two numbers are added
	Then the result should be 120

Type an @ character after the last row:

Feature: Calculator
	Simple calculator for adding two numbers

@mytag
Scenario: Add two numbers
	Given the first number is 50
	And the second number is 70
	When the two numbers are added
	Then the result should be 120

@

com.jetbrains.rdclient.util.BackendException: Incremental reparse cannot step past the end

--- EXCEPTION #1/3 [AssertionException]
Message = “cannot step past the end”
ExceptionPath = Root.InnerException.InnerException
ClassName = JetBrains.Diagnostics.Assertion+AssertionException
HResult = COR_E_EXCEPTION=80131500
Source = JetBrains.Lifetimes
StackTraceString = “
at JetBrains.Diagnostics.Assertion.Fail(String message)
at JetBrains.ReSharper.Psi.TreeBuilder.PsiBuilder.AdvanceLexer()
at ReSharperPlugin.SpecflowRiderPlugin.Psi.GherkinParser.ParseScenario(PsiBuilder builder) in C:\Users\alefu\Work\resharper-specflow\src\dotnet\ReSharperPlugin.SpecflowRiderPlugin\Psi\GherkinParser.cs:line 200
at ReSharperPlugin.SpecflowRiderPlugin.Psi.GherkinParser.ParseFeatureElements(PsiBuilder builder) in C:\Users\alefu\Work\resharper-specflow\src\dotnet\ReSharperPlugin.SpecflowRiderPlugin\Psi\GherkinParser.cs:line 159
at ReSharperPlugin.SpecflowRiderPlugin.Psi.GherkinParser.ParseFeature(PsiBuilder builder) in C:\Users\alefu\Work\resharper-specflow\src\dotnet\ReSharperPlugin.SpecflowRiderPlugin\Psi\GherkinParser.cs:line 132
at ReSharperPlugin.SpecflowRiderPlugin.Psi.GherkinParser.ParseFile() in C:\Users\alefu\Work\resharper-specflow\src\dotnet\ReSharperPlugin.SpecflowRiderPlugin\Psi\GherkinParser.cs:line 51
at JetBrains.ReSharper.Psi.LanguageService.ParseFile(ILexer lexer, IPsiSourceFile sourceFile)
at JetBrains.ReSharper.Psi.Files.CachedPsiFile.GetIncrementalReparseResult(TokenBuffer oldTokenBuffer, IBuffer newBuffer, ISecondaryRangeTranslator secondaryRangeTranslator, TextRange originalRange, Int32 insertedTextLength, IDocument document)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant