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

Crash while trying to find the compilation unit for an element #56070

Open
bwilkerson opened this issue Jun 24, 2024 · 1 comment
Open

Crash while trying to find the compilation unit for an element #56070

bwilkerson opened this issue Jun 24, 2024 · 1 comment
Labels
analyzer-crash-report Issues which have been reported due to an analysis server crash 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

@bwilkerson
Copy link
Member

The following crash occurred while trying to find the compilation unit for an element:

StateError: Bad state: No unit: as prefix0
at _getUnitElement	(protocol_server.dart:303)
at newLocation_fromElement	(protocol_server.dart:191)
at convertElement	(protocol_dart.dart:33)
at addDartOccurrences.<fn>	(occurrences_dart.dart:18)
at _LinkedHashMapMixin.forEach	(dart:collection)
at addDartOccurrences	(occurrences_dart.dart:16)
at DocumentHighlightsHandler.handle.<fn>	(handler_document_highlights.dart:41)
at ErrorOrRecord2Extension.mapResults	(error_or.dart:125)
at DocumentHighlightsHandler.handle	(handler_document_highlights.dart:39)
at <asynchronous gap>	(async)
at ServerStateMessageHandler.handleMessage	(handlers.dart:397)
at <asynchronous gap>	(async)
at LspAnalysisServer._handleRequestMessage	(lsp_analysis_server.dart:1022)
at <asynchronous gap>	(async)
at LspAnalysisServer.handleMessage.<fn>.<fn>	(lsp_analysis_server.dart:477)
at <asynchronous gap>	(async)
at OperationPerformanceImpl.runAsync	(operation_performance.dart:174)
at <asynchronous gap>	(async)
at LspAnalysisServer.handleMessage.<fn>	(lsp_analysis_server.dart:460)
@bwilkerson bwilkerson added 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 analyzer-crash-report Issues which have been reported due to an analysis server crash labels Jun 24, 2024
@bwilkerson
Copy link
Member Author

@scheglov

@keertip keertip added the type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) label Jul 10, 2024
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 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