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 AddSwitchCaseBreak #52226

Closed
scheglov opened this issue May 1, 2023 · 1 comment
Closed

Exception in AddSwitchCaseBreak #52226

scheglov opened this issue May 1, 2023 · 1 comment
Assignees
Labels
analyzer-crash-report Issues which have been reported due to an analysis server crash analyzer-quick-fix 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

scheglov commented May 1, 2023

Thread 0 main threadStateError: Bad state: No element
at ListBase.last(dart:collection)
at AddSwitchCaseBreak.compute.<fn>.<fn>(add_switch_case_break.dart:29)
at DartFileEditBuilderImpl.addInsertion.<fn>(change_builder_dart.dart:1446)
at FileEditBuilderImpl.addInsertion(change_builder_core.dart:496)
at DartFileEditBuilderImpl.addInsertion(change_builder_dart.dart:1445)
at AddSwitchCaseBreak.compute.<fn>(add_switch_case_break.dart:27)
at ChangeBuilderImpl.addDartFileEdit(change_builder_core.dart:151)
at <asynchronous gap>(async)
at AddSwitchCaseBreak.compute(add_switch_case_break.dart:26)
at <asynchronous gap>(async)
at FixProcessor._addFromProducers.compute(fix_internal.dart:1742)
at <asynchronous gap>(async)
at FixProcessor._addFromProducers(fix_internal.dart:1760)
at <asynchronous gap>(async)
at FixProcessor.compute(fix_internal.dart:1697)
at <asynchronous gap>(async)
at DartFixContributor.computeFixes(fix_internal.dart:249)
at <asynchronous gap>(async)
at DartCodeActionsProducer.getFixActions(dart.dart:160)
at <asynchronous gap>(async)
at OperationPerformanceImpl.runAsync(operation_performance.dart:172)
at <asynchronous gap>(async)
at CodeActionHandler.handle(handler_code_actions.dart:202)
at <asynchronous gap>(async)
at ServerStateMessageHandler.handleMessage(handlers.dart:267)
at <asynchronous gap>(async)
at LspAnalysisServer._handleRequestMessage(lsp_analysis_server.dart:990)
at <asynchronous gap>(async)
at LspAnalysisServer.handleMessage.<fn>.<fn>(lsp_analysis_server.dart:467)
at <asynchronous gap>(async)
at OperationPerformanceImpl.runAsync(operation_performance.dart:172)
at <asynchronous gap>(async)
at LspAnalysisServer.handleMessage.<fn>(lsp_analysis_server.dart:450)
@scheglov scheglov added area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. analyzer-server analyzer-quick-fix P2 A bug or feature request we're likely to work on analyzer-crash-report Issues which have been reported due to an analysis server crash labels May 1, 2023
@scheglov scheglov self-assigned this May 1, 2023
@scheglov
Copy link
Contributor Author

scheglov commented May 1, 2023

copybara-service bot pushed a commit that referenced this issue May 2, 2023
Bug: #52226
Change-Id: Ia330b7db7de3f38ec7c0849f760bbbaf0d009012
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/300160
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
@scheglov scheglov closed this as completed May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-crash-report Issues which have been reported due to an analysis server crash analyzer-quick-fix 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