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

Exception in ConvertToIfCaseStatementChain #52146

Closed
scheglov opened this issue Apr 23, 2023 · 1 comment
Closed

Exception in ConvertToIfCaseStatementChain #52146

scheglov opened this issue Apr 23, 2023 · 1 comment
Assignees
Labels
analyzer-assist Issues with analysis server assists analyzer-server 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

Comments

@scheglov
Copy link
Contributor

Bad state: No element
at ListBase.first(dart:collection)
at ConvertToIfCaseStatementChain._writeStatements(convert_to_if_case_statement_chain.dart:79)
at ConvertToIfCaseStatementChain.compute..(convert_to_if_case_statement_chain.dart:61)
at DartFileEditBuilderImpl.addReplacement.(change_builder_dart.dart:1453)
at FileEditBuilderImpl.addReplacement(change_builder_core.dart:515)
at DartFileEditBuilderImpl.addReplacement(change_builder_dart.dart:1452)
at ConvertToIfCaseStatementChain.compute.(convert_to_if_case_statement_chain.dart:42)
at ChangeBuilderImpl.addDartFileEdit(change_builder_core.dart:151)
at (async)
at ConvertToIfCaseStatementChain.compute(convert_to_if_case_statement_chain.dart:41)
at (async)
at AssistProcessor._addFromProducers.compute(assist_internal.dart:213)
at (async)
at AssistProcessor._addFromProducers(assist_internal.dart:231)
at (async)
at AssistProcessor.compute(assist_internal.dart:182)
at (async)
at DartCodeActionsProducer.getAssistActions(dart.dart:118)
at (async)
at OperationPerformanceImpl.runAsync(operation_performance.dart:172)
at (async)
at CodeActionHandler.handle(handler_code_actions.dart:210)
at (async)
at ServerStateMessageHandler.handleMessage(handlers.dart:267)
at (async)
at LspAnalysisServer._handleRequestMessage(lsp_analysis_server.dart:989)
at (async)
at LspAnalysisServer.handleMessage..(lsp_analysis_server.dart:454)
at (async)
at OperationPerformanceImpl.runAsync(operation_performance.dart:172)
at (async)
at LspAnalysisServer.handleMessage.(lsp_analysis_server.dart:437)

@scheglov scheglov added area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. analyzer-server P2 A bug or feature request we're likely to work on analyzer-assist Issues with analysis server assists labels Apr 23, 2023
@scheglov scheglov self-assigned this Apr 23, 2023
@scheglov
Copy link
Contributor Author

copybara-service bot pushed a commit that referenced this issue Apr 24, 2023
…tements.

Bug: #52146
Change-Id: I2947111a0e1a4c6e739bda851f1f91c9637a745a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/297420
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-assist Issues with analysis server assists analyzer-server 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
Projects
None yet
Development

No branches or pull requests

1 participant