Skip to content

flutter tool crash reporting does not include plugins used #169318

@matanlurey

Description

@matanlurey

In 3.32, .flutter-plugins is no longer emitted:

https://docs.flutter.dev/release/breaking-changes/flutter-plugins-configuration

However, the crash reporting feature in the flutter tool was hard-coded to read/use that file:

final File file = project.flutterPluginsFile;
if (file.existsSync()) {
description.writeln('### Plugins');
// Format is:
// camera=/path/to/.pub-cache/hosted/pub.dartlang.org/camera-0.5.7+2/
for (final String plugin in project.flutterPluginsFile.readAsLinesSync()) {
final List<String> pluginParts = plugin.split('=');
if (pluginParts.length != 2) {
continue;
}
// Write the last part of the path, which includes the plugin name and version.
// Example: camera-0.5.7+2
final List<String> pathParts = _fileSystem.path.split(pluginParts[1]);
description.writeln(pathParts.isEmpty ? pluginParts.first : pathParts.last);
}
}

This needs to be re-written to use .flutter-plugins-dependencies, and probably cherry-picked into 3.32/3.33.

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listc: regressionIt was better in the past than it is nowteam-toolOwned by Flutter Tool team

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions