Skip to content
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

Linux Build Process Failed #286

Open
dileep9490 opened this issue Mar 10, 2023 · 4 comments
Open

Linux Build Process Failed #286

dileep9490 opened this issue Mar 10, 2023 · 4 comments
Assignees
Labels
bug Something isn't working dependencies help wanted Extra attention is needed

Comments

@dileep9490
Copy link

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

@aguilaair
Copy link
Collaborator

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 aguilaair self-assigned this Mar 10, 2023
@aguilaair aguilaair added bug Something isn't working help wanted Extra attention is needed dependencies labels Mar 10, 2023
@astrolemonade
Copy link

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

@aguilaair
Copy link
Collaborator

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

@aguilaair
Copy link
Collaborator

@astrolemonade Solved those errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants