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

Crash when computing lints and part of not this library #49395

Closed
scheglov opened this issue Jul 4, 2022 · 1 comment
Closed

Crash when computing lints and part of not this library #49395

scheglov opened this issue Jul 4, 2022 · 1 comment
Assignees
Labels
analyzer-crash-report Issues which have been reported due to an analysis server crash area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P1 A high priority bug; for example, a single project is unusable or has many test failures

Comments

@scheglov
Copy link
Contributor

scheglov commented Jul 4, 2022

For example when the part file is empty, or absent, or has part of SomethingElse;.

Thread 0 main thread_CastError: Null check operator used on a null value
at LibraryAnalyzer._computeDiagnostics.<fn>(library_analyzer.dart:275)
at ListIterable.toList(dart:_internal)
at LibraryAnalyzer._computeDiagnostics(library_analyzer.dart:276)
at LibraryAnalyzer.analyze(library_analyzer.dart:90)
at AnalysisDriver._computeAnalysisResult.<fn>(driver.dart:1337)
at <asynchronous gap>(async)
at PerformanceLog.runAsync(performance_logger.dart:50)
at <asynchronous gap>(async)
at AnalysisDriver.performWork(driver.dart:1162)
at <asynchronous gap>(async)
at AnalysisDriverScheduler._run(driver.dart:2105)
@scheglov scheglov added P1 A high priority bug; for example, a single project is unusable or has many test failures area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. analyzer-crash-report Issues which have been reported due to an analysis server crash labels Jul 4, 2022
@scheglov
Copy link
Contributor Author

scheglov commented Jul 4, 2022

copybara-service bot pushed a commit that referenced this issue Jul 5, 2022
Bug: #49395
Change-Id: I112a27177df6c3ed0e0b4b99f2c9e634b5208c06
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/250581
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
@scheglov scheglov closed this as completed Jul 5, 2022
@scheglov scheglov self-assigned this Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-crash-report Issues which have been reported due to an analysis server crash area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P1 A high priority bug; for example, a single project is unusable or has many test failures
Projects
None yet
Development

No branches or pull requests

1 participant