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 in folding when adding tags before a Background #125

Closed
nemesv opened this issue Jun 7, 2021 · 0 comments · Fixed by #127
Closed

Exception in folding when adding tags before a Background #125

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

Comments

@nemesv
Copy link
Contributor

nemesv commented Jun 7, 2021

Steps to reproduce:

Given this feature file:

Feature: Test
   
    Background: 
        Given this is step

Type an @ character before the Background:

Feature: Test
   @
    Background: 
        Given this is step

com.jetbrains.rdclient.util.BackendException: left.IsValid() & right.IsValid()

--- EXCEPTION #1/2 [AssertionException]
Message = “left.IsValid() & right.IsValid()”
ExceptionPath = Root.InnerException
ClassName = JetBrains.Diagnostics.Assertion+AssertionException
HResult = COR_E_EXCEPTION=80131500
Source = JetBrains.Lifetimes
StackTraceString = “
at JetBrains.Diagnostics.Assertion.Fail(String message)
at JetBrains.DocumentModel.DocumentOffset.op_Subtraction(DocumentOffset left, DocumentOffset right)
at ReSharperPlugin.SpecflowRiderPlugin.Folding.SpecFlowFoldingProcessor.CalculateLength(Nullable`1 textRange, DocumentRange keywordRange, DocumentRange range) in C:\Work\Github\resharper-specflow\src\dotnet\ReSharperPlugin.SpecflowRiderPlugin\Folding\SpecFlowFoldingProcessor.cs:line 62

@nemesv nemesv added the bug Something isn't working label Jun 7, 2021
@alexandrafung alexandrafung linked a pull request Jun 7, 2021 that will close this issue
nemesv added a commit that referenced this issue Jun 8, 2021
fix folding when adding tags before a Background #125
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