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

Verbatim string with mismatched line endings triggers "failed syntax tree validation" #244

Closed
belav opened this issue May 31, 2021 · 0 comments · Fixed by #342
Closed

Verbatim string with mismatched line endings triggers "failed syntax tree validation" #244

belav opened this issue May 31, 2021 · 0 comments · Fixed by #342
Assignees
Labels
type:bug Something isn't working
Milestone

Comments

@belav
Copy link
Owner

belav commented May 31, 2021

Use "auto" line endings.
Format the following file

public class ClassName
{
    public string Value = @"EndThisLineWith\r\n
EndThisLineWith\n
";
}
CSharpier will trigger the "failed syntax tree vaildation" message because it is comparing the line endings in the verbatim string.
@belav belav added the type:bug Something isn't working label May 31, 2021
@belav belav added this to the 0.9.6 milestone May 31, 2021
@belav belav modified the milestones: 0.9.6, 0.9.7 Jun 12, 2021
@belav belav modified the milestones: 0.9.7, 0.9.8 Jun 26, 2021
@belav belav self-assigned this Jun 27, 2021
@belav belav changed the title When verbatim string with mistmatch line endings triggers "failed syntax tree validation" Verbatim string with mismatched line endings triggers "failed syntax tree validation" Jun 27, 2021
belav added a commit that referenced this issue Jun 27, 2021
belav added a commit that referenced this issue Jun 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant