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

Error in build v2.13.0 #169

Closed
Radeox opened this issue Jul 6, 2023 · 2 comments
Closed

Error in build v2.13.0 #169

Radeox opened this issue Jul 6, 2023 · 2 comments

Comments

@Radeox
Copy link

Radeox commented Jul 6, 2023

I've tried to build the new version to update the AUR package but it return a huge list of errors.
Is something missing or not getting generated correctly?

Complete error list:
nyrna-build.md

ERROR: lib/settings/cubit/settings_cubit.dart:16:6: Error: Error when reading 'lib/settings/cubit/settings_cubit.freezed.dart': No such file or directory
ERROR: part 'settings_cubit.freezed.dart';
ERROR:      ^
ERROR: lib/native_platform/src/window.dart:5:6: Error: Error when reading 'lib/native_platform/src/window.freezed.dart': No such file or directory
ERROR: part 'window.freezed.dart';
ERROR:      ^
ERROR: lib/app/cubit/app_cubit.dart:14:6: Error: Error when reading 'lib/app/cubit/app_cubit.freezed.dart': No such file or directory
ERROR: part 'app_cubit.freezed.dart';
ERROR:      ^
ERROR: lib/apps_list/cubit/apps_list_cubit.dart:18:6: Error: Error when reading 'lib/apps_list/cubit/apps_list_cubit.freezed.dart': No such file or directory
ERROR: part 'apps_list_cubit.freezed.dart';
ERROR:      ^
ERROR: lib/logs/cubit/log_cubit.dart:7:6: Error: Error when reading 'lib/logs/cubit/log_cubit.freezed.dart': No such file or directory
ERROR: part 'log_cubit.freezed.dart';
...
@Merrit
Copy link
Owner

Merrit commented Jul 6, 2023

The codebase now does some code generation, which needs to be done before building.

First:

dart run build_runner build --delete-conflicting-outputs

Then after you can build:

flutter build linux

I will update BUILDING.md with this info.. I hope that helps. 🌈

@Radeox
Copy link
Author

Radeox commented Jul 6, 2023

It builds correctly 👍🏻 I've updated the AUR package now. Thank you 😄

@Radeox Radeox closed this as completed Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants