sdk
sdk copied to clipboard
Unhelpful error from failure to load analyzer plugin
CI for the Jaspr repository has been inconsistently experiencing a failure due to being unable to load the compiled analyzer_plugin AOT snapshot when running dart analyze. The error is understandable, but there's no actionable suggestion for me on how this state could have occurred.
It's perhaps not a bug in the plugin handling, but it'd be nice if there's more guidance for users that encounter this state.
Versions:
- Dart SDK 3.9.0-3.9.2
- analyzer 7.6.0
- analyzer_plugin 0.13.4
- custom_lint 0.8.0
Error (from https://github.com/schultek/jaspr/actions/runs/17307786694/job/49135028687?pr=531):
File truncated before or at offset 0x0.
Loading dynamic library failed: not an ELF shared object
An error occurred while executing an analyzer plugin: IsolateSpawnException: Unable to spawn isolate: The uri(file:///home/runner/.dartServer/.plugin_manager/43c9ca485c6fd5cd29b9613b50d3d170/analyzer_plugin/bin/plugin.aot) provided to `Isolate.spawnUri()` does not contain a valid AOT snapshot.
An error occurred while executing an analyzer plugin: Unrecorded error while starting the plugin.
#0 PluginSession.start (package:analysis_server/src/plugin/plugin_manager.dart:1184)
<asynchronous suspension>
#1 PluginInfo.start (package:analysis_server/src/plugin/plugin_manager.dart:244)
<asynchronous suspension>
#2 PluginManager.addPluginToContextRoot (package:analysis_server/src/plugin/plugin_manager.dart:402)
<asynchronous suspension>