yihong1120 / traffic_report_front_flutter

A platform, 'Traffic-Violation-Report-System', enabling users in Taiwan to upload and share responses from law enforcement to traffic violations. This system aims for greater transparency in traffic law enforcement. It utilises Django for backend and Flutter for a separated frontend web development.
GNU Affero General Public License v3.0
0 stars 0 forks source link

[Sweep GHA Fix] Fix failing GitHub Actions #102

Closed sweep-ai[bot] closed 8 months ago

sweep-ai[bot] commented 8 months ago

PR Feedback (click)

Summary of Changes

sweep-ai[bot] commented 8 months ago

Rollback Files For Sweep

codeautopilot[bot] commented 8 months ago

Your organization has reached the subscribed usage limit. You can upgrade your plan at https://www.codeautopilot.com/#pricing

sweep-ai[bot] commented 8 months ago
Sweeping Fixing PR: track the progress here.

I'm currently fixing this PR to address the following:

[Sweep GHA Fix] The GitHub Actions run failed with the following error logs: ``` The command: Run dart analyze yielded the following error: ##[error]Process completed with exit code 3. Here are the logs: Analyzing traffic_report_front_flutter... error - lib/components/media_picker.dart:17:22 - Undefined name 'context'. Try correcting the name to one that is defined, or defining the name. - undefined_identifier error - lib/components/media_picker.dart:39:10 - '_MediaPickerMenu.build' ('Widget Function()') isn't a valid override of 'StatelessWidget.build' ('Widget Function(BuildContext)'). - invalid_override - The member being overridden at lib/components/media_picker.dart:100:20205. error - lib/components/media_picker.dart:41:51 - Undefined name 'context'. Try correcting the name to one that is defined, or defining the name. - undefined_identifier error - lib/components/media_picker.dart:49:15 - Expected an identifier. - missing_identifier error - lib/components/media_picker.dart:49:15 - Expected to find ')'. - expected_token error - lib/components/media_picker.dart:49:64 - Expected to find '}'. - expected_token error - lib/components/media_picker.dart:55:15 - Undefined name 'context'. Try correcting the name to one that is defined, or defining the name. - undefined_identifier error - lib/components/media_picker.dart:55:24 - The argument type 'NavigatorState' can't be assigned to the parameter type 'ImagePicker'. - argument_type_not_assignable error - lib/components/media_picker.dart:55:35 - The argument type 'ImagePicker' can't be assigned to the parameter type 'ImageSource'. - argument_type_not_assignable error - lib/components/media_picker.dart:55:43 - The argument type 'ImageSource' can't be assigned to the parameter type 'bool'. - argument_type_not_assignable error - lib/components/media_picker.dart:55:64 - Too many positional arguments: 4 expected, but 5 found. Try removing the extra arguments. - extra_positional_arguments error - lib/components/media_picker.dart:61:15 - Undefined name 'context'. Try correcting the name to one that is defined, or defining the name. - undefined_identifier error - lib/components/media_picker.dart:61:24 - The argument type 'NavigatorState' can't be assigned to the parameter type 'ImagePicker'. - argument_type_not_assignable error - lib/components/media_picker.dart:61:35 - The argument type 'ImagePicker' can't be assigned to the parameter type 'ImageSource'. - argument_type_not_assignable error - lib/components/media_picker.dart:61:43 - The argument type 'ImageSource' can't be assigned to the parameter type 'bool'. - argument_type_not_assignable error - lib/components/media_picker.dart:61:63 - Too many positional arguments: 4 expected, but 5 found. Try removing the extra arguments. - extra_positional_arguments error - lib/components/media_picker.dart:67:15 - Undefined name 'context'. Try correcting the name to one that is defined, or defining the name. - undefined_identifier error - lib/components/media_picker.dart:67:24 - The argument type 'NavigatorState' can't be assigned to the parameter type 'ImagePicker'. - argument_type_not_assignable error - lib/components/media_picker.dart:67:35 - The argument type 'ImagePicker' can't be assigned to the parameter type 'ImageSource'. - argument_type_not_assignable error - lib/components/media_picker.dart:67:43 - The argument type 'ImageSource' can't be assigned to the parameter type 'bool'. - argument_type_not_assignable error - lib/components/media_picker.dart:67:63 - Too many positional arguments: 4 expected, but 5 found. Try removing the extra arguments. - extra_positional_arguments error - lib/components/media_picker.dart:77:36 - Expected to find ';'. - expected_token error - lib/components/media_picker.dart:77:39 - Expected an identifier. - missing_identifier error - lib/components/media_picker.dart:77:60 - The name 'navigator' is already defined. Try renaming one of the declarations. - duplicate_definition - The first definition of this name at lib/components/media_picker.dart:77:26. error - lib/components/media_picker.dart:77:85 - Undefined name 'context'. Try correcting the name to one that is defined, or defining the name. - undefined_identifier error - lib/screens/reports/create_report_screen.dart:136:66 - Too many positional arguments: 0 expected, but 1 found. Try removing the extra arguments. - extra_positional_arguments error - test/components/navigation_drawer_test.dart:48:72 - The argument type 'Null' can't be assigned to the parameter type 'Route'. - argument_type_not_assignable error - test/components/navigation_drawer_test.dart:60:57 - The argument type 'Null' can't be assigned to the parameter type 'Route'. - argument_type_not_assignable warning - lib/components/media_picker.dart:77:60 - The value of the local variable 'navigator' isn't used. Try removing the variable or using it. - unused_local_variable info - lib/screens/map/home_map.dart:114:15 - Don't invoke 'print' in production code. Try using a logging framework. - avoid_print 30 issues found. ```

[!CAUTION]

An error has occurred: Cmd('git') failed due to: exit code(128) cmdline: git clone -v -- https://*****:*****@github.com/yihong1120/traffic_report_front_flutter.git /tmp/cache/repos/yihong1120/traffic_report_front_flutter/base/sweep--fix-gha-actions stderr: 'Cloning into '/tmp/cache/repos/yihong1120/traffic_report_front_flutter/base/sweep--fix-gha-actions'... POST git-upload-pack (175 bytes) POST git-upload-pack (767 bytes) error: unable to write file windows/runner/runner.exe.manifest error: unable to write file windows/runner/utils.cpp error: unable to write file windows/runner/utils.h error: unable to write file windows/runner/win32_window.cpp error: unable to write file windows/runner/win32_window.h fatal: unable to checkout working tree warning: Clone succeeded, but checkout failed. You can inspect what was checked out with 'git status' and retry with 'git restore --source=HEAD :/'

' (tracking ID: 6f91fac0ba)