Linter crashes #57386
Labels
analyzer-linter
Issues with the analyzer's support for the linter package
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
I'm trying to use the linter but it crashes.
Task failed: GenerateLintsTask for source [google confidential]
An error occurred while linting
Please report it at: github.com/dart-lang/linter/issues
AnalysisException: Cannot compute DART_ERRORS for [google confidential]
Caused by Unexpected exception while performing GenerateLintsTask for source [google confidential]
#0 AnalysisTask._safelyPerform (package:analyzer/task/model.dart:350)
#57147 AnalysisTask.perform (package:analyzer/task/model.dart:238)
#57148 AnalysisDriver.performWorkItem (package:analyzer/src/task/driver.dart:284)
#57149 AnalysisDriver.computeResult (package:analyzer/src/task/driver.dart:109)
#57150 AnalysisContextImpl.computeResult (package:analyzer/src/context/context.dart:721)
#57151 AnalysisContextImpl.computeErrors (package:analyzer/src/context/context.dart:669)
#57152 AnalysisDriver.analyze (package:linter/src/analysis.dart:139)
dart-lang/linter#7 DartLinter.lintFiles (package:linter/src/linter.dart:68)
#57154 runLinter (http://localhost:39173/linter.dart:158)
#57155 main (http://localhost:39173/linter.dart:18)
#57156 _startIsolate. (dart:isolate-patch/isolate_patch.dart:259)
#57157 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:148)
Caused by The null object does not have a getter 'parameters'.
NoSuchMethodError: method not found: 'parameters'
Receiver: null
Arguments: []
#0 Object._noSuchMethod (dart:core-patch/object_patch.dart:44)
#57147 Object.noSuchMethod (dart:core-patch/object_patch.dart:47)
#57148 _Visitor.visitFunctionDeclaration (package:linter/src/rules/parameter_assignments.dart:72)
#57149 DelegatingAstVisitor.visitFunctionDeclaration. (package:analyzer/dart/ast/visitor.dart:431)
#57150 List.forEach (dart:core-patch/growable_array.dart:258)
#57151 DelegatingAstVisitor.visitFunctionDeclaration (package:analyzer/dart/ast/visitor.dart:431)
#57152 FunctionDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:5073)
dart-lang/linter#7 NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:7688)
#57154 CompilationUnitImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:2446)
#57155 DelegatingAstVisitor.visitCompilationUnit (package:analyzer/dart/ast/visitor.dart:252)
#57156 CompilationUnitImpl.accept (package:analyzer/src/dart/ast/ast.dart:2439)
#57157 GenerateLintsTask.internalPerform (package:analyzer/src/task/dart.dart:3259)
#57158 AnalysisTask._safelyPerform (package:analyzer/task/model.dart:338)
#57159 AnalysisTask.perform (package:analyzer/task/model.dart:238)
#57160 AnalysisDriver.performWorkItem (package:analyzer/src/task/driver.dart:284)
#57161 AnalysisDriver.computeResult (package:analyzer/src/task/driver.dart:109)
#57162 AnalysisContextImpl.computeResult (package:analyzer/src/context/context.dart:721)
#57163 AnalysisContextImpl.computeErrors (package:analyzer/src/context/context.dart:669)
#57164 AnalysisDriver.analyze (package:linter/src/analysis.dart:139)
#57165 DartLinter.lintFiles (package:linter/src/linter.dart:68)
#57166 runLinter (http://localhost:39173/linter.dart:158)
#57167 main (http://localhost:39173/linter.dart:18)
#57168 _startIsolate. (dart:isolate-patch/isolate_patch.dart:259)
#57169 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:148)
#0 AnalysisContextImpl.computeResult (package:analyzer/src/context/context.dart:726)
#57147 AnalysisContextImpl.computeErrors (package:analyzer/src/context/context.dart:669)
#57148 AnalysisDriver.analyze (package:linter/src/analysis.dart:139)
#57149 DartLinter.lintFiles (package:linter/src/linter.dart:68)
#57150 runLinter (http://localhost:39173/linter.dart:158)
#57151 main (http://localhost:39173/linter.dart:18)
#57152 _startIsolate. (dart:isolate-patch/isolate_patch.dart:259)
dart-lang/linter#7 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:148)
The text was updated successfully, but these errors were encountered: