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

some of the rules throw #159

Closed
danylo-safonov-solid opened this issue Apr 15, 2024 · 0 comments · Fixed by #160
Closed

some of the rules throw #159

danylo-safonov-solid opened this issue Apr 15, 2024 · 0 comments · Fixed by #160
Assignees

Comments

@danylo-safonov-solid
Copy link
Contributor

> dart run custom_lint
Plugin proper_super_calls threw while analyzing ...:
type 'EmptyFunctionBodyImpl' is not a subtype of type 'BlockFunctionBody' in type cast
#0      ProperSuperCallsRule.run.<anonymous closure> (package:solid_lints/src/lints/proper_super_calls/proper_super_calls_rule.dart:94:41)
#1      _rootRunUnary (dart:async/zone.dart:1415:13)
#2      _CustomZone.runUnary (dart:async/zone.dart:1308:19)
#3      LinterVisitor._runSubscriptions (package:custom_lint_core/src/node_lint_visitor.g.dart:29:27)
#4      LinterVisitor.visitMethodDeclaration (package:custom_lint_core/src/node_lint_visitor.g.dart:729:5)
#5      MethodDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:12117:50)
#6      NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:12998:20)
#7      ClassDeclarationImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:2903:13)
#8      GeneralizingAstVisitor.visitNode (package:analyzer/dart/ast/visitor.dart:535:10)
#9      LinterVisitor.visitNode (package:custom_lint_core/src/node_lint_visitor.g.dart:784:11)
#10     GeneralizingAstVisitor.visitAnnotatedNode (package:analyzer/dart/ast/visitor.dart:137:48)
#11     LinterVisitor.visitAnnotatedNode (package:custom_lint_core/src/node_lint_visitor.g.dart:46:11)
#12     GeneralizingAstVisitor.visitDeclaration (package:analyzer/dart/ast/visitor.dart:260:44)
#13     LinterVisitor.visitDeclaration (package:custom_lint_core/src/node_lint_visitor.g.dart:286:11)
#14     GeneralizingAstVisitor.visitCompilationUnitMember (package:analyzer/dart/ast/visitor.dart:222:7)
#15     LinterVisitor.visitCompilationUnitMember (package:custom_lint_core/src/node_lint_visitor.g.dart:214:11)
#16     GeneralizingAstVisitor.visitNamedCompilationUnitMember (package:analyzer/dart/ast/visitor.dart:516:7)
#17     LinterVisitor.visitNamedCompilationUnitMember (package:custom_lint_core/src/node_lint_visitor.g.dart:748:11)
#18     GeneralizingAstVisitor.visitClassDeclaration (package:analyzer/dart/ast/visitor.dart:201:7)
#19     LinterVisitor.visitClassDeclaration (package:custom_lint_core/src/node_lint_visitor.g.dart:166:11)
#20     ClassDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:2893:50)
#21     NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:12998:20)
#22     CompilationUnitImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:3631:21)
#23     GeneralizingAstVisitor.visitNode (package:analyzer/dart/ast/visitor.dart:535:10)
#24     LinterVisitor.visitNode (package:custom_lint_core/src/node_lint_visitor.g.dart:784:11)
#25     GeneralizingAstVisitor.visitCompilationUnit (package:analyzer/dart/ast/visitor.dart:219:52)
#26     LinterVisitor.visitCompilationUnit (package:custom_lint_core/src/node_lint_visitor.g.dart:208:11)
#27     CompilationUnitImpl.accept (package:analyzer/src/dart/ast/ast.dart:3624:50)
#28     DartLintRule.startUp.<anonymous closure> (package:custom_lint_core/src/lint_rule.dart:136:17)
#29     _rootRun (dart:async/zone.dart:1399:13)
#30     _CustomZone.run (dart:async/zone.dart:1301:19)
#31     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:1233:23)
#32     runPostRunCallbacks (package:custom_lint_core/src/plugin_base.dart:16:19)
#33     _ClientAnalyzerPlugin.analyzeFile.<anonymous closure> (package:custom_lint_builder/src/client.dart:926:7)
<asynchronous suspension>
#34     _ClientAnalyzerPlugin._runOperation (package:custom_lint_builder/src/client.dart:1078:14)
<asynchronous suspension>
#35     _ClientAnalyzerPlugin.analyzeFile (package:custom_lint_builder/src/client.dart:890:5)
<asynchronous suspension>
#36     ServerPlugin.analyzeFiles (package:analyzer_plugin/plugin/plugin.dart:119:7)
<asynchronous suspension>
#37     ServerPlugin.afterNewContextCollection.<anonymous closure> (package:analyzer_plugin/plugin/plugin.dart:86:7)
<asynchronous suspension>
#38     ServerPlugin._forAnalysisContexts (package:analyzer_plugin/plugin/plugin.dart:517:7)
<asynchronous suspension>
#39     ServerPlugin.afterNewContextCollection (package:analyzer_plugin/plugin/plugin.dart:84:5)
<asynchronous suspension>
#40     _ClientAnalyzerPlugin._runOperation (package:custom_lint_builder/src/client.dart:1078:14)
<asynchronous suspension>
#41     ServerPlugin.handleAnalysisSetContextRoots (package:analyzer_plugin/plugin/plugin.dart:273:5)
<asynchronous suspension>
#42     ServerPlugin._getResponse (package:analyzer_plugin/plugin/plugin.dart:536:18)
<asynchronous suspension>
#43     ServerPlugin._onRequest (package:analyzer_plugin/plugin/plugin.dart:599:18)
<asynchronous suspension>

Plugin proper_super_calls threw while analyzing ...:
type 'ExpressionFunctionBodyImpl' is not a subtype of type 'BlockFunctionBody' in type cast
#0      ProperSuperCallsRule.run.<anonymous closure> (package:solid_lints/src/lints/proper_super_calls/proper_super_calls_rule.dart:94:41)
#1      _rootRunUnary (dart:async/zone.dart:1415:13)
#2      _CustomZone.runUnary (dart:async/zone.dart:1308:19)
#3      LinterVisitor._runSubscriptions (package:custom_lint_core/src/node_lint_visitor.g.dart:29:27)
#4      LinterVisitor.visitMethodDeclaration (package:custom_lint_core/src/node_lint_visitor.g.dart:729:5)
#5      MethodDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:12117:50)
#6      NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:12998:20)
#7      ClassDeclarationImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:2903:13)
#8      GeneralizingAstVisitor.visitNode (package:analyzer/dart/ast/visitor.dart:535:10)
#9      LinterVisitor.visitNode (package:custom_lint_core/src/node_lint_visitor.g.dart:784:11)
#10     GeneralizingAstVisitor.visitAnnotatedNode (package:analyzer/dart/ast/visitor.dart:137:48)
#11     LinterVisitor.visitAnnotatedNode (package:custom_lint_core/src/node_lint_visitor.g.dart:46:11)
#12     GeneralizingAstVisitor.visitDeclaration (package:analyzer/dart/ast/visitor.dart:260:44)
#13     LinterVisitor.visitDeclaration (package:custom_lint_core/src/node_lint_visitor.g.dart:286:11)
#14     GeneralizingAstVisitor.visitCompilationUnitMember (package:analyzer/dart/ast/visitor.dart:222:7)
#15     LinterVisitor.visitCompilationUnitMember (package:custom_lint_core/src/node_lint_visitor.g.dart:214:11)
#16     GeneralizingAstVisitor.visitNamedCompilationUnitMember (package:analyzer/dart/ast/visitor.dart:516:7)
#17     LinterVisitor.visitNamedCompilationUnitMember (package:custom_lint_core/src/node_lint_visitor.g.dart:748:11)
#18     GeneralizingAstVisitor.visitClassDeclaration (package:analyzer/dart/ast/visitor.dart:201:7)
#19     LinterVisitor.visitClassDeclaration (package:custom_lint_core/src/node_lint_visitor.g.dart:166:11)
#20     ClassDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:2893:50)
#21     NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:12998:20)
#22     CompilationUnitImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:3631:21)
#23     GeneralizingAstVisitor.visitNode (package:analyzer/dart/ast/visitor.dart:535:10)
#24     LinterVisitor.visitNode (package:custom_lint_core/src/node_lint_visitor.g.dart:784:11)
#25     GeneralizingAstVisitor.visitCompilationUnit (package:analyzer/dart/ast/visitor.dart:219:52)
#26     LinterVisitor.visitCompilationUnit (package:custom_lint_core/src/node_lint_visitor.g.dart:208:11)
#27     CompilationUnitImpl.accept (package:analyzer/src/dart/ast/ast.dart:3624:50)
#28     DartLintRule.startUp.<anonymous closure> (package:custom_lint_core/src/lint_rule.dart:136:17)
#29     _rootRun (dart:async/zone.dart:1399:13)
#30     _CustomZone.run (dart:async/zone.dart:1301:19)
#31     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:1233:23)
#32     runPostRunCallbacks (package:custom_lint_core/src/plugin_base.dart:16:19)
#33     _ClientAnalyzerPlugin.analyzeFile.<anonymous closure> (package:custom_lint_builder/src/client.dart:926:7)
<asynchronous suspension>
#34     _ClientAnalyzerPlugin._runOperation (package:custom_lint_builder/src/client.dart:1078:14)
<asynchronous suspension>
#35     _ClientAnalyzerPlugin.analyzeFile (package:custom_lint_builder/src/client.dart:890:5)
<asynchronous suspension>
#36     ServerPlugin.analyzeFiles (package:analyzer_plugin/plugin/plugin.dart:119:7)
<asynchronous suspension>
#37     ServerPlugin.afterNewContextCollection.<anonymous closure> (package:analyzer_plugin/plugin/plugin.dart:86:7)
<asynchronous suspension>
#38     ServerPlugin._forAnalysisContexts (package:analyzer_plugin/plugin/plugin.dart:517:7)
<asynchronous suspension>
#39     ServerPlugin.afterNewContextCollection (package:analyzer_plugin/plugin/plugin.dart:84:5)
<asynchronous suspension>
#40     _ClientAnalyzerPlugin._runOperation (package:custom_lint_builder/src/client.dart:1078:14)
<asynchronous suspension>
#41     ServerPlugin.handleAnalysisSetContextRoots (package:analyzer_plugin/plugin/plugin.dart:273:5)
<asynchronous suspension>
#42     ServerPlugin._getResponse (package:analyzer_plugin/plugin/plugin.dart:536:18)
<asynchronous suspension>
#43     ServerPlugin._onRequest (package:analyzer_plugin/plugin/plugin.dart:599:18)
<asynchronous suspension>

Plugin proper_super_calls threw while analyzing ...:
type 'ExpressionFunctionBodyImpl' is not a subtype of type 'BlockFunctionBody' in type cast
#0      ProperSuperCallsRule.run.<anonymous closure> (package:solid_lints/src/lints/proper_super_calls/proper_super_calls_rule.dart:94:41)
#1      _rootRunUnary (dart:async/zone.dart:1415:13)
#2      _CustomZone.runUnary (dart:async/zone.dart:1308:19)
#3      LinterVisitor._runSubscriptions (package:custom_lint_core/src/node_lint_visitor.g.dart:29:27)
#4      LinterVisitor.visitMethodDeclaration (package:custom_lint_core/src/node_lint_visitor.g.dart:729:5)
#5      MethodDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:12117:50)
#6      NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:12998:20)
#7      ClassDeclarationImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:2903:13)
#8      GeneralizingAstVisitor.visitNode (package:analyzer/dart/ast/visitor.dart:535:10)
#9      LinterVisitor.visitNode (package:custom_lint_core/src/node_lint_visitor.g.dart:784:11)
#10     GeneralizingAstVisitor.visitAnnotatedNode (package:analyzer/dart/ast/visitor.dart:137:48)
#11     LinterVisitor.visitAnnotatedNode (package:custom_lint_core/src/node_lint_visitor.g.dart:46:11)
#12     GeneralizingAstVisitor.visitDeclaration (package:analyzer/dart/ast/visitor.dart:260:44)
#13     LinterVisitor.visitDeclaration (package:custom_lint_core/src/node_lint_visitor.g.dart:286:11)
#14     GeneralizingAstVisitor.visitCompilationUnitMember (package:analyzer/dart/ast/visitor.dart:222:7)
#15     LinterVisitor.visitCompilationUnitMember (package:custom_lint_core/src/node_lint_visitor.g.dart:214:11)
#16     GeneralizingAstVisitor.visitNamedCompilationUnitMember (package:analyzer/dart/ast/visitor.dart:516:7)
#17     LinterVisitor.visitNamedCompilationUnitMember (package:custom_lint_core/src/node_lint_visitor.g.dart:748:11)
#18     GeneralizingAstVisitor.visitClassDeclaration (package:analyzer/dart/ast/visitor.dart:201:7)
#19     LinterVisitor.visitClassDeclaration (package:custom_lint_core/src/node_lint_visitor.g.dart:166:11)
#20     ClassDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:2893:50)
#21     NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:12998:20)
#22     CompilationUnitImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:3631:21)
#23     GeneralizingAstVisitor.visitNode (package:analyzer/dart/ast/visitor.dart:535:10)
#24     LinterVisitor.visitNode (package:custom_lint_core/src/node_lint_visitor.g.dart:784:11)
#25     GeneralizingAstVisitor.visitCompilationUnit (package:analyzer/dart/ast/visitor.dart:219:52)
#26     LinterVisitor.visitCompilationUnit (package:custom_lint_core/src/node_lint_visitor.g.dart:208:11)
#27     CompilationUnitImpl.accept (package:analyzer/src/dart/ast/ast.dart:3624:50)
#28     DartLintRule.startUp.<anonymous closure> (package:custom_lint_core/src/lint_rule.dart:136:17)
#29     _rootRun (dart:async/zone.dart:1399:13)
#30     _CustomZone.run (dart:async/zone.dart:1301:19)
#31     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:1233:23)
#32     runPostRunCallbacks (package:custom_lint_core/src/plugin_base.dart:16:19)
#33     _ClientAnalyzerPlugin.analyzeFile.<anonymous closure> (package:custom_lint_builder/src/client.dart:926:7)
<asynchronous suspension>
#34     _ClientAnalyzerPlugin._runOperation (package:custom_lint_builder/src/client.dart:1078:14)
<asynchronous suspension>
#35     _ClientAnalyzerPlugin.analyzeFile (package:custom_lint_builder/src/client.dart:890:5)
<asynchronous suspension>
#36     ServerPlugin.analyzeFiles (package:analyzer_plugin/plugin/plugin.dart:119:7)
<asynchronous suspension>
#37     ServerPlugin.afterNewContextCollection.<anonymous closure> (package:analyzer_plugin/plugin/plugin.dart:86:7)
<asynchronous suspension>
#38     ServerPlugin._forAnalysisContexts (package:analyzer_plugin/plugin/plugin.dart:517:7)
<asynchronous suspension>
#39     ServerPlugin.afterNewContextCollection (package:analyzer_plugin/plugin/plugin.dart:84:5)
<asynchronous suspension>
#40     _ClientAnalyzerPlugin._runOperation (package:custom_lint_builder/src/client.dart:1078:14)
<asynchronous suspension>
#41     ServerPlugin.handleAnalysisSetContextRoots (package:analyzer_plugin/plugin/plugin.dart:273:5)
<asynchronous suspension>
#42     ServerPlugin._getResponse (package:analyzer_plugin/plugin/plugin.dart:536:18)
<asynchronous suspension>
#43     ServerPlugin._onRequest (package:analyzer_plugin/plugin/plugin.dart:599:18)
<asynchronous suspension>

Analyzing...

No issues found!

image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants