-
Notifications
You must be signed in to change notification settings - Fork 231
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
Metrics analyzer for Razor: Lines of code are outside the range of the file #9288
Milestone
Comments
martin-strecker-sonarsource
added
Type: Bug
Exceptions and blocking issues during analysis.
Area: C#
C# rules related issues.
labels
May 16, 2024
This was referenced May 16, 2024
Closed
How to fix:
|
costin-zaharia-sonarsource
added a commit
that referenced
this issue
May 17, 2024
costin-zaharia-sonarsource
added a commit
that referenced
this issue
May 17, 2024
costin-zaharia-sonarsource
added a commit
that referenced
this issue
May 17, 2024
gregory-paidis-sonarsource
pushed a commit
that referenced
this issue
May 17, 2024
This was referenced May 17, 2024
github-actions
bot
assigned martin-strecker-sonarsource and gregory-paidis-sonarsource and unassigned martin-strecker-sonarsource and gregory-paidis-sonarsource
May 21, 2024
github-actions
bot
assigned costin-zaharia-sonarsource and unassigned gregory-paidis-sonarsource
May 22, 2024
costin-zaharia-sonarsource
added a commit
that referenced
this issue
May 22, 2024
costin-zaharia-sonarsource
added a commit
that referenced
this issue
May 22, 2024
costin-zaharia-sonarsource
added a commit
that referenced
this issue
May 22, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Community report:
https://community.sonarsource.com/t/java-lang-illegalargumentexception-line-575-is-out-of-range-for-file-xxx-file-has-386-lines/108740/15
The razor source generator of .Net SDK 9.0.100-preview.3.24204.13 produces a file with missing
#line default
and#line hidden
directives forusing
directives:Instead, the generated code should look like so:
As a result, we count the
;
as code line but the mapping is beyond the length of the file if theusing
is the only content of the file like in_Imports.razor
The text was updated successfully, but these errors were encountered: