Open ChaserVasya opened 1 month ago
Summary: The user is experiencing an "Internal error: Bad state: Expected existing element" error during Dart analysis. The error occurs frequently with different files and appears to be related to the analysis of the schedule_calendar.dart
file.
This error is threw very often with different files
Dart analysis issue
Internal error: Bad state: Expected existing element: root::package:CONFIDENTIAL_INFO/domain/models/schedule/schedule_calendar.dart::@unit::package:CONFIDENTIAL_INFO/domain/models/schedule/schedule_calendar.dart
Version information
Details
Internal error: Bad state: Expected existing element: root::package:CONFIDENTIAL_INFO/domain/models/schedule/schedule_calendar.dart::@unit::package:CONFIDENTIAL_INFO/domain/models/schedule/schedule_calendar.dart
0 LinkedElementFactory.elementOfReference (package:analyzer/src/summary2/linked_element_factory.dart:225:7)
1 LinkedElementFactory.elementOfReference (package:analyzer/src/summary2/linked_element_factory.dart:216:25)
2 ResolutionReader._readRawElement (package:analyzer/src/summary2/bundle_reader.dart:2502:28)
3 ResolutionReader.readElement (package:analyzer/src/summary2/bundle_reader.dart:2008:19)
4 ResolutionReader.readType (package:analyzer/src/summary2/bundle_reader.dart:2149:21)
5 ResolutionReader.readRequiredType (package:analyzer/src/summary2/bundle_reader.dart:2111:12)
6 ResolutionReader._readRecordType. (package:analyzer/src/summary2/bundle_reader.dart:2515:15)
7 SummaryDataReader.readTypedList. (package:analyzer/src/summary2/data_reader.dart:144:18)
8 new _List.generate (dart:core-patch/array.dart:113:28)
9 SummaryDataReader.readTypedList (package:analyzer/src/summary2/data_reader.dart:143:12)
10 ResolutionReader.readTypedList (package:analyzer/src/summary2/bundle_reader.dart:2188:20)
11 ResolutionReader._readRecordType (package:analyzer/src/summary2/bundle_reader.dart:2512:23)
12 ResolutionReader.readType (package:analyzer/src/summary2/bundle_reader.dart:2169:18)
13 ResolutionReader.readRequiredType (package:analyzer/src/summary2/bundle_reader.dart:2111:12)
14 ResolutionReader._readTypeList. (package:analyzer/src/summary2/bundle_reader.dart:2535:14)
15 SummaryDataReader.readTypedList. (package:analyzer/src/summary2/data_reader.dart:144:18)
16 new _List.generate (dart:core-patch/array.dart:113:28)
17 SummaryDataReader.readTypedList (package:analyzer/src/summary2/data_reader.dart:143:12)
18 ResolutionReader.readTypedList (package:analyzer/src/summary2/bundle_reader.dart:2188:20)
19 ResolutionReader._readTypeList (package:analyzer/src/summary2/bundle_reader.dart:2534:12)
20 ResolutionReader.readType (package:analyzer/src/summary2/bundle_reader.dart:2140:27)
21 ResolutionReader.readRequiredType (package:analyzer/src/summary2/bundle_reader.dart:2111:12)
22 ExtensionElementLinkedData._read (package:analyzer/src/summary2/bundle_reader.dart:399:33)
23 ElementLinkedData.read (package:analyzer/src/summary2/bundle_reader.dart:257:5)
24 ExtensionElementImpl.augmented (package:analyzer/src/dart/element/element.dart:2989:17)
25 ExtensionsExtensions.havingMemberWithBaseName (package:analyzer/src/dart/resolver/applicable_extensions.dart:146:37)
26 _ImportLibraryContainingExtension.compute (package:analysis_server/src/services/correction/dart/import_library.dart:494:10)
27 FixProcessor._addFromProducers.compute (package:analysis_server/src/services/correction/fix_processor.dart:111:24)
28 FixProcessor._addFromProducers (package:analysis_server/src/services/correction/fix_processor.dart:147:17)