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

Linter crashes #57386

Closed
dskloetg opened this issue Oct 17, 2016 · 4 comments
Closed

Linter crashes #57386

dskloetg opened this issue Oct 17, 2016 · 4 comments
Assignees
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.

Comments

@dskloetg
Copy link

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)

@zoechi
Copy link
Contributor

zoechi commented Oct 17, 2016

How are you using it? Just by adding an .analysis_options file?

@dskloetg
Copy link
Author

$ pub global run linter some/google/path

@bwilkerson bwilkerson self-assigned this Oct 17, 2016
@bwilkerson
Copy link
Member

@alexeieleusis
Copy link
Contributor

thank you Brian!

@devoncarew devoncarew added 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. labels Nov 18, 2024
@devoncarew devoncarew transferred this issue from dart-lang/linter Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

5 participants