sidekick icon indicating copy to clipboard operation
sidekick copied to clipboard

Linux Build Process Failed

Open dileep9490 opened this issue 2 years ago • 4 comments

Flutter Doctor:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.7.7, on Ubuntu 22.04.2 LTS 5.19.0-35-generic, locale en_IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2021.3)
[✓] VS Code
[✓] Connected device (2 available)
[✓] HTTP Host Availability

• No issues found!

Flutter run :

Launching lib/main.dart on Linux in debug mode...
ERROR: ../../../../.pub-cache/hosted/pub.dev/file-6.1.2/lib/src/interface/file.dart:15:16: Error: The method 'File.create' has fewer named arguments than
 those of overridden method 'File.create'.
ERROR:   Future<File> create({bool recursive = false});
ERROR:                ^
ERROR: org-dartlang-sdk:///third_party/dart/sdk/lib/io/file.dart:232:16: Context: This is the overridden method ('create').
ERROR:   Future<File> create({bool recursive = false, bool exclusive = false});
ERROR:                ^
ERROR: ../../../../.pub-cache/hosted/pub.dev/file-6.1.2/lib/src/interface/file.dart:15:16: Error: The method 'File.create' doesn't have the named paramet
er 'exclusive' of overridden method 'File.create'.
ERROR:   Future<File> create({bool recursive = false});
ERROR:                ^
ERROR: org-dartlang-sdk:///third_party/dart/sdk/lib/io/file.dart:232:16: Context: This is the overridden method ('create').
ERROR:   Future<File> create({bool recursive = false, bool exclusive = false});
ERROR:                ^
ERROR: ../../../../.pub-cache/hosted/pub.dev/file-6.1.2/lib/src/forwarding/forwarding_file.dart:22:8: Error: The method 'ForwardingFile.createSync' has f
ewer named arguments than those of overridden method 'File.createSync'.
ERROR:   void createSync({bool recursive = false}) =>
ERROR:        ^
ERROR: org-dartlang-sdk:///third_party/dart/sdk/lib/io/file.dart:248:8: Context: This is the overridden method ('createSync').
ERROR:   void createSync({bool recursive = false, bool exclusive = false});
ERROR:        ^
ERROR: ../../../../.pub-cache/hosted/pub.dev/file-6.1.2/lib/src/forwarding/forwarding_file.dart:22:8: Error: The method 'ForwardingFile.createSync' doesn
't have the named parameter 'exclusive' of overridden method 'File.createSync'.
ERROR:   void createSync({bool recursive = false}) =>
ERROR:        ^
ERROR: org-dartlang-sdk:///third_party/dart/sdk/lib/io/file.dart:248:8: Context: This is the overridden method ('createSync').
ERROR:   void createSync({bool recursive = false, bool exclusive = false});
ERROR:        ^
ERROR: Target kernel_snapshot failed: Exception
Building Linux application...                                           
Exception: Build process failed

dileep9490 avatar Mar 10 '23 08:03 dileep9490

Hmmmm, according to https://github.com/fluttertools/sidekick/actions/runs/4351969485/jobs/7604186184 Build is passing...

This seems an issue with the io version

aguilaair avatar Mar 10 '23 17:03 aguilaair

I experience the same issue on my machine:

Launching lib/main.dart on Linux in debug mode...
Building Linux application...                                   
ERROR: ../../.pub-cache/hosted/pub.dev/google_fonts-2.3.3/lib/src/google_fonts_base.dart:14:1: Error: 'AssetManifest' is imported from both 'package:flutter/src/services/asset_manifest.dart' and 'package:google_fonts/src/asset_manifest.dart'.
ERROR: import 'asset_manifest.dart';
ERROR: ^^^^^^^^^^^^^
ERROR: ../../.pub-cache/hosted/pub.dev/google_fonts-2.3.3/lib/src/google_fonts_base.dart:32:31: Error: 'AssetManifest' is imported from both 'package:flutter/src/services/asset_manifest.dart' and 'package:google_fonts/src/asset_manifest.dart'.
ERROR: AssetManifest assetManifest = AssetManifest();
ERROR:                               ^^^^^^^^^^^^^
ERROR: lib/src/modules/common/app_shell.dart:203:25: Error: 'SearchBar' is imported from both 'package:flutter/src/material/search_anchor.dart' and 'package:sidekick/src/modules/search/components/search_bar.dart'.
ERROR:                   const SearchBar(),
ERROR:                         ^^^^^^^^^
ERROR: lib/src/modules/fvm/dialogs/fvm_global_dialog.dart:55:64: Error: The argument type 'String?' can't be assigned to the parameter type 'String' because 'String?' is nullable and 'String' isn't.
ERROR:                                 ClipboardData(text: configured.currentPath));
ERROR:                                                                ^
ERROR: ../../.pub-cache/git/material_floating_search_bar-e71c90e759f7b6bea64f846f5597c0a7734bbfe7/lib/src/floating_search_bar_scroll_notifier.dart:38:41: Error: Required named parameter 'devicePixelRatio' must be provided.
ERROR:             metrics = FixedScrollMetrics(
ERROR:                                         ^
ERROR: ../../fvm/versions/stable/packages/flutter/lib/src/widgets/scroll_metrics.dart:140:3: Context: Found this candidate, but the arguments don't match.
ERROR:   FixedScrollMetrics({
ERROR:   ^^^^^^^^^^^^^^^^^^
ERROR: Target kernel_snapshot failed: Exception
Exception: Build process failed

astrolemonade avatar May 15 '23 16:05 astrolemonade

@astrolemonade, that looks to me like a Flutter 3.10 issue, I'll take a look

aguilaair avatar May 15 '23 21:05 aguilaair

@astrolemonade Solved those errors

aguilaair avatar May 16 '23 00:05 aguilaair