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

An unexpected error was encountered by the Analysis Server - null #59756

Open
thermoworker opened this issue Dec 18, 2024 · 0 comments
Open

An unexpected error was encountered by the Analysis Server - null #59756

thermoworker opened this issue Dec 18, 2024 · 0 comments
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. P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@thermoworker
Copy link

fvm dart --version
Dart SDK version: 3.6.0 (stable) (Thu Dec 5 07:46:24 2024 -0800) on "macos_arm64"

fvm dart fix --dry-run
Computing fixes in mobile-app (dry run)...
An unexpected error was encountered by the Analysis Server.
Please file an issue at https://github.com/dart-lang/sdk/issues/new/choose with the following details:

Internal error: Exception while using a AvoidRedundantArgumentValues to visit a FunctionExpressionInvocationImpl in NamedExpressionImpl in ArgumentListImpl in InstanceCreationExpressionImpl in NamedExpressionImpl in ArgumentListImpl in InstanceCreationExpressionImpl in ExpressionFunctionBodyImpl in MethodDeclarationImpl in MixinDeclarationImpl in CompilationUnitImpl
Bad state: [library: null][this: (DefaultParameterElementImpl) [TextTheme? textTheme]][enclosingElement: null][reference: null]
#0 ConstVariableElement.computeConstantValue (package:analyzer/src/dart/element/element.dart:1667:9)
#1 _Visitor.checkArgument (package:linter/src/rules/avoid_redundant_argument_values.dart:71:23)
#2 _Visitor.check (package:linter/src/rules/avoid_redundant_argument_values.dart:54:7)
#3 _Visitor.visitFunctionExpressionInvocation (package:linter/src/rules/avoid_redundant_argument_values.dart:92:5)
#4 FunctionExpressionInvocationImpl.accept (package:analyzer/src/dart/ast/ast.dart:8705:15)
#5 LinterVisitor._runSubscriptions (package:analyzer/src/lint/linter_visitor.dart:1090:14)
#6 LinterVisitor.visitFunctionExpressionInvocation (package:analyzer/src/lint/linter_visitor.dart:440:5)
#7 FunctionExpressionInvocationImpl.accept (package:analyzer/src/dart/ast/ast.dart:8705:15)
#8 NamedExpressionImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:12593:17)
#9 LinterVisitor.visitNamedExpression (package:analyzer/src/lint/linter_visitor.dart:651:10)
#10 NamedExpressionImpl.accept (package:analyzer/src/dart/ast/ast.dart:12583:50)
#11 NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:13009:20)
#12 ArgumentListImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:476:16)
#13 LinterVisitor.visitArgumentList (package:analyzer/src/lint/linter_visitor.dart:45:10)
#14 ArgumentListImpl.accept (package:analyzer/src/dart/ast/ast.dart:472:50)
#15 InstanceCreationExpressionImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:10518:19)
#16 LinterVisitor.visitInstanceCreationExpression (package:analyzer/src/lint/linter_visitor.dart:531:10)
#17 InstanceCreationExpressionImpl.accept (package:analyzer/src/dart/ast/ast.dart:10507:15)
#18 NamedExpressionImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:12593:17)
#19 LinterVisitor.visitNamedExpression (package:analyzer/src/lint/linter_visitor.dart:651:10)
#20 NamedExpressionImpl.accept (package:analyzer/src/dart/ast/ast.dart:12583:50)
#21 NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:13009:20)
#22 ArgumentListImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:476:16)
#23 LinterVisitor.visitArgumentList (package:analyzer/src/lint/linter_visitor.dart:45:10)
#24 ArgumentListImpl.accept (package:analyzer/src/dart/ast/ast.dart:472:50)
#25 InstanceCreationExpressionImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:10518:19)
#26 LinterVisitor.visitInstanceCreationExpression (package:analyzer/src/lint/linter_visitor.dart:531:10)
#27 InstanceCreationExpressionImpl.accept (package:analyzer/src/dart/ast/ast.dart:10507:15)
#28 ExpressionFunctionBodyImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:6138:17)
#29 LinterVisitor.visitExpressionFunctionBody (package:analyzer/src/lint/linter_visitor.dart:315:10)
#30 ExpressionFunctionBodyImpl.accept (package:analyzer/src/dart/ast/ast.dart:6130:15)
#31 MethodDeclarationImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:12069:10)
#32 LinterVisitor.visitMethodDeclaration (package:analyzer/src/lint/linter_visitor.dart:627:10)
#33 MethodDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:12061:50)
#34 NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:13009:20)
#35 MixinDeclarationImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:12417:13)
#36 LinterVisitor.visitMixinDeclaration (package:analyzer/src/lint/linter_visitor.dart:639:10)
#37 MixinDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:12409:50)
#38 NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:13009:20)
#39 CompilationUnitImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:3621:21)
#40 LinterVisitor.visitCompilationUnit (package:analyzer/src/lint/linter_visitor.dart:183:10)
#41 CompilationUnitImpl.accept (package:analyzer/src/dart/ast/ast.dart:3614:50)
#42 LibraryAnalyzer._computeLints (package:analyzer/src/dart/analysis/library_analyzer.dart:410:12)
#43 LibraryAnalyzer._computeDiagnostics (package:analyzer/src/dart/analysis/library_analyzer.dart:334:7)
#44 LibraryAnalyzer.analyze (package:analyzer/src/dart/analysis/library_analyzer.dart:109:5)
#45 AnalysisDriver._analyzeFileImpl. (package:analyzer/src/dart/analysis/driver.dart:1401:11)

#46 PerformanceLog.runAsync (package:analyzer/src/dart/analysis/performance_logger.dart:50:14)

#47 AnalysisDriver._analyzeFile. (package:analyzer/src/dart/analysis/driver.dart:1315:9)

#48 OperationPerformanceImpl.runAsync (package:analyzer/src/util/performance/operation_performance.dart:174:14)

#49 AnalysisDriver._analyzeFile (package:analyzer/src/dart/analysis/driver.dart:1312:5)

#50 AnalysisDriver._getErrors (package:analyzer/src/dart/analysis/driver.dart:1743:5)

#51 AnalysisDriver.performWork (package:analyzer/src/dart/analysis/driver.dart:1214:7)

#52 AnalysisDriverScheduler._run (package:analyzer/src/dart/analysis/driver.dart:2446:7)

null
An unexpected error was encountered by the Analysis Server.
Please file an issue at https://github.com/dart-lang/sdk/issues/new/choose with the following details:

Internal error: Exception while using a AvoidRedundantArgumentValues to visit a FunctionExpressionInvocationImpl in NamedExpressionImpl in ArgumentListImpl in InstanceCreationExpressionImpl in NamedExpressionImpl in ArgumentListImpl in InstanceCreationExpressionImpl in ReturnStatementImpl in BlockImpl in BlockFunctionBodyImpl in MethodDeclarationImpl in ClassDeclarationImpl in CompilationUnitImpl
Bad state: [library: null][this: (DefaultParameterElementImpl) [TextTheme? textTheme]][enclosingElement: null][reference: null]
#0 ConstVariableElement.computeConstantValue (package:analyzer/src/dart/element/element.dart:1667:9)
#1 _Visitor.checkArgument (package:linter/src/rules/avoid_redundant_argument_values.dart:71:23)
#2 _Visitor.check (package:linter/src/rules/avoid_redundant_argument_values.dart:54:7)
#3 _Visitor.visitFunctionExpressionInvocation (package:linter/src/rules/avoid_redundant_argument_values.dart:92:5)
#4 FunctionExpressionInvocationImpl.accept (package:analyzer/src/dart/ast/ast.dart:8705:15)
#5 LinterVisitor._runSubscriptions (package:analyzer/src/lint/linter_visitor.dart:1090:14)
#6 LinterVisitor.visitFunctionExpressionInvocation (package:analyzer/src/lint/linter_visitor.dart:440:5)
#7 FunctionExpressionInvocationImpl.accept (package:analyzer/src/dart/ast/ast.dart:8705:15)
#8 NamedExpressionImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:12593:17)
#9 LinterVisitor.visitNamedExpression (package:analyzer/src/lint/linter_visitor.dart:651:10)
#10 NamedExpressionImpl.accept (package:analyzer/src/dart/ast/ast.dart:12583:50)
#11 NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:13009:20)
#12 ArgumentListImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:476:16)
#13 LinterVisitor.visitArgumentList (package:analyzer/src/lint/linter_visitor.dart:45:10)
#14 ArgumentListImpl.accept (package:analyzer/src/dart/ast/ast.dart:472:50)
#15 InstanceCreationExpressionImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:10518:19)
#16 LinterVisitor.visitInstanceCreationExpression (package:analyzer/src/lint/linter_visitor.dart:531:10)
#17 InstanceCreationExpressionImpl.accept (package:analyzer/src/dart/ast/ast.dart:10507:15)
#18 NamedExpressionImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:12593:17)
#19 LinterVisitor.visitNamedExpression (package:analyzer/src/lint/linter_visitor.dart:651:10)
#20 NamedExpressionImpl.accept (package:analyzer/src/dart/ast/ast.dart:12583:50)
#21 NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:13009:20)
#22 ArgumentListImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:476:16)
#23 LinterVisitor.visitArgumentList (package:analyzer/src/lint/linter_visitor.dart:45:10)
#24 ArgumentListImpl.accept (package:analyzer/src/dart/ast/ast.dart:472:50)
#25 InstanceCreationExpressionImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:10518:19)
#26 LinterVisitor.visitInstanceCreationExpression (package:analyzer/src/lint/linter_visitor.dart:531:10)
#27 InstanceCreationExpressionImpl.accept (package:analyzer/src/dart/ast/ast.dart:10507:15)
#28 ReturnStatementImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:15635:18)
#29 LinterVisitor.visitReturnStatement (package:analyzer/src/lint/linter_visitor.dart:867:10)
#30 ReturnStatementImpl.accept (package:analyzer/src/dart/ast/ast.dart:15631:50)
#31 NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:13009:20)
#32 BlockImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:2051:17)
#33 LinterVisitor.visitBlock (package:analyzer/src/lint/linter_visitor.dart:105:10)
#34 BlockImpl.accept (package:analyzer/src/dart/ast/ast.dart:2047:50)
#35 BlockFunctionBodyImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:2007:12)
#36 LinterVisitor.visitBlockFunctionBody (package:analyzer/src/lint/linter_visitor.dart:111:10)
#37 BlockFunctionBodyImpl.accept (package:analyzer/src/dart/ast/ast.dart:1999:50)
#38 MethodDeclarationImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:12069:10)
#39 LinterVisitor.visitMethodDeclaration (package:analyzer/src/lint/linter_visitor.dart:627:10)
#40 MethodDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:12061:50)
#41 NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:13009:20)
#42 ClassDeclarationImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:2939:13)
#43 LinterVisitor.visitClassDeclaration (package:analyzer/src/lint/linter_visitor.dart:159:10)
#44 ClassDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:2929:50)
#45 NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:13009:20)
#46 CompilationUnitImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:3621:21)
#47 LinterVisitor.visitCompilationUnit (package:analyzer/src/lint/linter_visitor.dart:183:10)
#48 CompilationUnitImpl.accept (package:analyzer/src/dart/ast/ast.dart:3614:50)
#49 LibraryAnalyzer._computeLints (package:analyzer/src/dart/analysis/library_analyzer.dart:410:12)
#50 LibraryAnalyzer._computeDiagnostics (package:analyzer/src/dart/analysis/library_analyzer.dart:334:7)
#51 LibraryAnalyzer.analyze (package:analyzer/src/dart/analysis/library_analyzer.dart:109:5)
#52 AnalysisDriver._analyzeFileImpl. (package:analyzer/src/dart/analysis/driver.dart:1401:11)

#53 PerformanceLog.runAsync (package:analyzer/src/dart/analysis/performance_logger.dart:50:14)

#54 AnalysisDriver._analyzeFile. (package:analyzer/src/dart/analysis/driver.dart:1315:9)

#55 OperationPerformanceImpl.runAsync (package:analyzer/src/util/performance/operation_performance.dart:174:14)

#56 AnalysisDriver._analyzeFile (package:analyzer/src/dart/analysis/driver.dart:1312:5)

#57 AnalysisDriver._getErrors (package:analyzer/src/dart/analysis/driver.dart:1743:5)

#58 AnalysisDriver.performWork (package:analyzer/src/dart/analysis/driver.dart:1214:7)

#59 AnalysisDriverScheduler._run (package:analyzer/src/dart/analysis/driver.dart:2446:7)

null

@thermoworker thermoworker added the area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. label Dec 18, 2024
@bwilkerson bwilkerson added analyzer-linter Issues with the analyzer's support for the linter package P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) labels Dec 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. P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

2 participants