-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Dart analysis issue. Missing library: dart:async #56798
Comments
Summary: The user is experiencing an error during Dart analysis, where the "dart:async" library is missing. The error occurs despite restarting, cleaning the cache, updating packages, and upgrading the IDE. The user has provided their project repository, version information, and a detailed log of the error. |
Try close IDE, purge analysis driver cache by doing If that helps then something is wrong with analysis driver cache got somehow corrupted and might be of interest to analyzer team. |
@mraleph Your advice didn't work, but I discovered that downgrading to Flutter version 3.22.0 solved the issue. |
Version where it works is:
|
I created a specific branch in my project: https://github.com/mjablecnik/startup_project/tree/dart-analysis-issue where I had the problem if you will need it for test. |
Hello, I have some issue with Dart analysis.
Can you say me how can I fix it?
It is appeared in this my project: https://github.com/mjablecnik/startup_project
Restart, clean cache, update/upgrade packages or IDE doesn't work..
Here is my log from Dart analysis:
Dart analysis issue
Internal error: Invalid argument(s): Missing library: dart:async
Version information
Details
Internal error: Invalid argument(s): Missing library: dart:async
Libraries: [dart:core]
Root children: [dart:core, dart:async]
Readers: []
Log: [removeLibraries][uriSet: {}][#0 LinkedElementFactory.removeLibraries (package:analyzer/src/summary2/linked_element_factory.dart:262:67)
#1 LibraryContext.remove (package:analyzer/src/dart/analysis/library_context.dart:315:20)
#2 AnalysisDriver._removePotentiallyAffectedLibraries (package:analyzer/src/dart/analysis/driver.dart:2037:22)
#3 AnalysisDriver._applyPendingFileChanges (package:analyzer/src/dart/analysis/driver.dart:1510:7)
#4 AnalysisDriverScheduler._run (package:analyzer/src/dart/analysis/driver.dart:2411:16)
]
[removeLibraries][uriSet: {}][#0 LinkedElementFactory.removeLibraries (package:analyzer/src/summary2/linked_element_factory.dart:262:67)
#1 LibraryContext.remove (package:analyzer/src/dart/analysis/library_context.dart:315:20)
#2 AnalysisDriver._removePotentiallyAffectedLibraries (package:analyzer/src/dart/analysis/driver.dart:2037:22)
#3 AnalysisDriver._applyPendingFileChanges (package:analyzer/src/dart/analysis/driver.dart:1510:7)
#4 AnalysisDriverScheduler._run (package:analyzer/src/dart/analysis/driver.dart:2411:16)
]
[removeLibraries][uriSet: {}][#0 LinkedElementFactory.removeLibraries (package:analyzer/src/summary2/linked_element_factory.dart:262:67)
#1 LibraryContext.remove (package:analyzer/src/dart/analysis/library_context.dart:315:20)
#2 AnalysisDriver._removePotentiallyAffectedLibraries (package:analyzer/src/dart/analysis/driver.dart:2037:22)
#3 AnalysisDriver._applyPendingFileChanges (package:analyzer/src/dart/analysis/driver.dart:1510:7)
#4 AnalysisDriverScheduler._run (package:analyzer/src/dart/analysis/driver.dart:2411:16)
]
[removeLibraries][uriSet: {}][#0 LinkedElementFactory.removeLibraries (package:analyzer/src/summary2/linked_element_factory.dart:262:67)
#1 LibraryContext.remove (package:analyzer/src/dart/analysis/library_context.dart:315:20)
#2 AnalysisDriver._removePotentiallyAffectedLibraries (package:analyzer/src/dart/analysis/driver.dart:2037:22)
#3 AnalysisDriver._applyPendingFileChanges (package:analyzer/src/dart/analysis/driver.dart:1510:7)
#4 AnalysisDriverScheduler._run (package:analyzer/src/dart/analysis/driver.dart:2411:16)
]
[removeLibraries][uriSet: {}][#0 LinkedElementFactory.removeLibraries (package:analyzer/src/summary2/linked_element_factory.dart:262:67)
#1 LibraryContext.remove (package:analyzer/src/dart/analysis/library_context.dart:315:20)
#2 AnalysisDriver._removePotentiallyAffectedLibraries (package:analyzer/src/dart/analysis/driver.dart:2037:22)
#3 AnalysisDriver._applyPendingFileChanges (package:analyzer/src/dart/analysis/driver.dart:1510:7)
#4 AnalysisDriverScheduler._run (package:analyzer/src/dart/analysis/driver.dart:2411:16)
]
[removeLibraries][uriSet: {}][#0 LinkedElementFactory.removeLibraries (package:analyzer/src/summary2/linked_element_factory.dart:262:67)
#1 LibraryContext.remove (package:analyzer/src/dart/analysis/library_context.dart:315:20)
#2 AnalysisDriver._removePotentiallyAffectedLibraries (package:analyzer/src/dart/analysis/driver.dart:2037:22)
#3 AnalysisDriver._applyPendingFileChanges (package:analyzer/src/dart/analysis/driver.dart:1510:7)
#4 AnalysisDriverScheduler._run (package:analyzer/src/dart/analysis/driver.dart:2411:16)
]
[removeLibraries][uriSet: {}][#0 LinkedElementFactory.removeLibraries (package:analyzer/src/summary2/linked_element_factory.dart:262:67)
#1 LibraryContext.remove (package:analyzer/src/dart/analysis/library_context.dart:315:20)
#2 AnalysisDriver._removePotentiallyAffectedLibraries (package:analyzer/src/dart/analysis/driver.dart:2037:22)
#3 AnalysisDriver._applyPendingFileChanges (package:analyzer/src/dart/analysis/driver.dart:1510:7)
#4 AnalysisDriverScheduler._run (package:analyzer/src/dart/analysis/driver.dart:2411:16)
]
[removeLibraries][uriSet: {}][#0 LinkedElementFactory.removeLibraries (package:analyzer/src/summary2/linked_element_factory.dart:262:67)
#1 LibraryContext.remove (package:analyzer/src/dart/analysis/library_context.dart:315:20)
#2 AnalysisDriver._removePotentiallyAffectedLibraries (package:analyzer/src/dart/analysis/driver.dart:2037:22)
#3 AnalysisDriver._applyPendingFileChanges (package:analyzer/src/dart/analysis/driver.dart:1510:7)
#4 AnalysisDriverScheduler._run (package:analyzer/src/dart/analysis/driver.dart:2411:16)
]
[removeLibraries][uriSet: {}][#0 LinkedElementFactory.removeLibraries (package:analyzer/src/summary2/linked_element_factory.dart:262:67)
#1 LibraryContext.remove (package:analyzer/src/dart/analysis/library_context.dart:315:20)
#2 AnalysisDriver._removePotentiallyAffectedLibraries (package:analyzer/src/dart/analysis/driver.dart:2037:22)
#3 AnalysisDriver._applyPendingFileChanges (package:analyzer/src/dart/analysis/driver.dart:1510:7)
#4 AnalysisDriverScheduler._run (package:analyzer/src/dart/analysis/driver.dart:2411:16)
]
[load][targetLibrary: file:///Users/martin/Projects/Templates/startup_project/apps/flutter_project_template/layers/project_repository/test/http_client_test.dart = /Users/martin/Projects/Templates/startup_project/apps/flutter_project_template/layers/project_repository/test/http_client_test.dart]
#0 LinkedElementFactory.createLibraryElementForReading (package:analyzer/src/summary2/linked_element_factory.dart:153:7)
#1 LinkedElementFactory.elementOfReference (package:analyzer/src/summary2/linked_element_factory.dart:212:14)
#2 LinkedElementFactory.libraryOfUri (package:analyzer/src/summary2/linked_element_factory.dart:241:12)
#3 LinkedElementFactory.libraryOfUri2 (package:analyzer/src/summary2/linked_element_factory.dart:245:19)
#4 LinkedElementFactory.dartAsyncElement (package:analyzer/src/summary2/linked_element_factory.dart:52:12)
#5 Linker._createTypeSystem (package:analyzer/src/summary2/link.dart:349:22)
#6 Linker._buildOutlines (package:analyzer/src/summary2/link.dart:247:5)
#7 Linker.link. (package:analyzer/src/summary2/link.dart:123:7)
#8 OperationPerformanceImpl.runAsync (package:analyzer/src/util/performance/operation_performance.dart:174:14)
#9 Linker.link (package:analyzer/src/summary2/link.dart:122:5)
#10 link (package:analyzer/src/summary2/link.dart:41:3)
#11 LibraryContext.load.loadBundle. (package:analyzer/src/dart/analysis/library_context.dart:211:22)
#12 OperationPerformanceImpl.runAsync (package:analyzer/src/util/performance/operation_performance.dart:174:14)
#13 LibraryContext.load.loadBundle (package:analyzer/src/dart/analysis/library_context.dart:208:24)
#14 LibraryContext.load.loadBundle (package:analyzer/src/dart/analysis/library_context.dart:158:9)
#15 LibraryContext.load.loadBundle (package:analyzer/src/dart/analysis/library_context.dart:158:9)
#16 LibraryContext.load. (package:analyzer/src/dart/analysis/library_context.dart:296:7)
#17 PerformanceLog.runAsync (package:analyzer/src/dart/analysis/performance_logger.dart:50:14)
#18 LibraryContext.load (package:analyzer/src/dart/analysis/library_context.dart:287:5)
#19 AnalysisDriver._produceErrors (package:analyzer/src/dart/analysis/driver.dart:1976:5)
#20 AnalysisDriver.performWork (package:analyzer/src/dart/analysis/driver.dart:1251:7)
#21 AnalysisDriverScheduler._run (package:analyzer/src/dart/analysis/driver.dart:2455:7)
Debug log
The text was updated successfully, but these errors were encountered: