hyiso / lint_staged

Run linters on git staged files for your Flutter and Dart projects. Inspired by JavaScript lint-staged library
https://pub.dev/packages/lint_staged
Apache License 2.0
6 stars 2 forks source link

ProcessException: Too many open files #9

Closed unger1984 closed 3 months ago

unger1984 commented 8 months ago

Crash with ProcessException: Too many open files ((

64 files in commit

hyiso commented 8 months ago

You could add VERBOSE=true before the hook script to print verbose error message:

VERBOSE=true dart run lint_staged
cfrias-bardavon commented 3 months ago

Hi, I got this same issue. Here is the output with VERBOSE=true in my case:

lit_staged:git - git diff --name-only -z --diff-filter=ACMR --staged
lib/api/chime_api.dartlib/bloc/report_bloc/report_session_bloc.dartlib/bloc/report_bloc/shift_report_bloc.dartlib/bloc/sensor_bloc/pivot_sensor_bloc_test.dartlib/environment/dev.dartlib/environment/prod.dartlib/models/chat/channel_item.dartlib/models/reporting/location_metadata.dartlib/models/reporting/occupation_metadata.dartlib/models/reporting/task_metadata.dartlib/models/reporting/worker_metadata.dartlib/repo/meta_provider.dartlib/repo/source_provider.dartlib/routes.dartlib/services/file_uploader.dartlib/theme/bardavon_primary.dartlib/theme/primary.dartlib/utils/common_utils.dartlib/utils/crash_report.dartlib/utils/device_storage.dartlib/utils/isolate_helper.dartlib/utils/markdown_parser.dartlib/utils/nano_id.dartlib/utils/pair_sensor_screen_helper.dartlib/views/chat/channel_messages_alt_v2.dartlib/views/chat/chat_platform.dartlib/views/chat/create_channel_screen_v2.dartlib/views/chat/list_channels_alt_v2.dartlib/views/chat/list_chat_users_v2.dartlib/views/home/guest_home_section_v2.dartlib/views/home/home_screen_v2.dartlib/views/home/main_screen.dartlib/views/home/rtw_home_section_v2.dartlib/views/home/supervisor_home_section_v2.dartlib/views/home/worker_home_screen.dartlib/views/login/bard_login.dartlib/views/login/bard_signup.dartlib/views/login/bard_signup_validators.dartlib/views/login/cognito_force_reset_password_screen.dartlib/views/login/mfa_enrolment_screen.dartlib/views/login/splash_screen.dartlib/views/report/form_online_v2.dartlib/views/report/help_screen_v2.dartlib/views/report/metadata_form_v2.dartlib/views/report/metadata_list_v2.dartlib/views/report/pair_sensors_v2.dartlib/views/report/rtw_instructions_screen_v2.dartlib/views/report/rtw_tasks_screen_v2.dartlib/views/report/sensor_not_found_view.dartlib/views/report/shift_recorder_v2.dartlib/views/report/shift_summary_section_v2.dartlib/views/report/task_session_section.dartlib/views/report/task_summary_section_v2.dartlib/views/report/video_session_section.dartlib/views/safety_training/assessment_view_v2.dartlib/views/safety_training/explanation_view_v2.dartlib/views/safety_training/full_screen_video_view.dartlib/views/safety_training/module_details_v2.dartlib/views/safety_training/training_home_screen_v2.dartlib/views/settings/about_preventure_v2.dartlib/views/settings/contact_us_form_v2.dartlib/views/settings/delete_account_screen_v2.dartlib/views/settings/join_company_screen_v2.dartlib/views/settings/settings_view_v2.dartlib/views/settings/show_joining_code_screen_v2.dartlib/views/settings/stored_sessions_v2.dartlib/views/settings/update_app_screen.dartlib/views/settings/upload_details_screen_v2.dartlib/views/settings/upload_legacy_sessions_v2.dartlib/views/settings/user_permissions.dartlib/views/ui_util.dartlib/views/widgets/chat/chat_bubble.dartlib/views/widgets/commons/bard_field_label.dartlib/views/widgets/commons/bard_logo.dartlib/views/widgets/commons/bard_pin_number.dartlib/views/widgets/commons/dialog.dartlib/views/widgets/commons/logo.dartlib/views/widgets/commons/password_hint.dartlib/views/widgets/commons/shimmers.dartlib/views/widgets/commons/video_checkbox_v2.dartlib/views/widgets/generics/generic_home_section.dartlib/views/widgets/generics/generic_home_widget.dartlib/views/widgets/generics/generic_session_section.dartlib/views/widgets/reports/activity_gauge_v2.dartlib/views/widgets/reports/movement_insight_tile_v2.dartlib/views/widgets/reports/movement_load_gauge_v2.dartlib/views/widgets/reports/pending_reports_v2.dartlib/views/widgets/reports/rtw_load_limit_tile_v2.dartlib/views/widgets/reports/simple_line_chart.dartlib/views/widgets/reports/worker_widgets_v2.dartlib/views/widgets/safety_training/training_insight_tile_v2.dart
lit_staged:git - Staged files: [lib/api/chime_api.dart, lib/bloc/report_bloc/report_session_bloc.dart, lib/bloc/report_bloc/shift_report_bloc.dart, lib/bloc/sensor_bloc/pivot_sensor_bloc_test.dart, lib/environment/dev.dart, lib/environment/prod.dart, lib/models/chat/channel_item.dart, lib/models/reporting/location_metadata.dart, lib/models/reporting/occupation_metadata.dart, lib/models/reporting/task_metadata.dart, lib/models/reporting/worker_metadata.dart, lib/repo/meta_provider.dart, lib/repo/source_provider.dart, lib/routes.dart, lib/services/file_uploader.dart, lib/theme/bardavon_primary.dart, lib/theme/primary.dart, lib/utils/common_utils.dart, lib/utils/crash_report.dart, lib/utils/device_storage.dart, lib/utils/isolate_helper.dart, lib/utils/markdown_parser.dart, lib/utils/nano_id.dart, lib/utils/pair_sensor_screen_helper.dart, lib/views/chat/channel_messages_alt_v2.dart, lib/views/chat/chat_platform.dart, lib/views/chat/create_channel_screen_v2.dart, lib/views/chat/list_channels_alt_v2.dart, lib/views/chat/list_chat_users_v2.dart, lib/views/home/guest_home_section_v2.dart, lib/views/home/home_screen_v2.dart, lib/views/home/main_screen.dart, lib/views/home/rtw_home_section_v2.dart, lib/views/home/supervisor_home_section_v2.dart, lib/views/home/worker_home_screen.dart, lib/views/login/bard_login.dart, lib/views/login/bard_signup.dart, lib/views/login/bard_signup_validators.dart, lib/views/login/cognito_force_reset_password_screen.dart, lib/views/login/mfa_enrolment_screen.dart, lib/views/login/splash_screen.dart, lib/views/report/form_online_v2.dart, lib/views/report/help_screen_v2.dart, lib/views/report/metadata_form_v2.dart, lib/views/report/metadata_list_v2.dart, lib/views/report/pair_sensors_v2.dart, lib/views/report/rtw_instructions_screen_v2.dart, lib/views/report/rtw_tasks_screen_v2.dart, lib/views/report/sensor_not_found_view.dart, lib/views/report/shift_recorder_v2.dart, lib/views/report/shift_summary_section_v2.dart, lib/views/report/task_session_section.dart, lib/views/report/task_summary_section_v2.dart, lib/views/report/video_session_section.dart, lib/views/safety_training/assessment_view_v2.dart, lib/views/safety_training/explanation_view_v2.dart, lib/views/safety_training/full_screen_video_view.dart, lib/views/safety_training/module_details_v2.dart, lib/views/safety_training/training_home_screen_v2.dart, lib/views/settings/about_preventure_v2.dart, lib/views/settings/contact_us_form_v2.dart, lib/views/settings/delete_account_screen_v2.dart, lib/views/settings/join_company_screen_v2.dart, lib/views/settings/settings_view_v2.dart, lib/views/settings/show_joining_code_screen_v2.dart, lib/views/settings/stored_sessions_v2.dart, lib/views/settings/update_app_screen.dart, lib/views/settings/upload_details_screen_v2.dart, lib/views/settings/upload_legacy_sessions_v2.dart, lib/views/settings/user_permissions.dart, lib/views/ui_util.dart, lib/views/widgets/chat/chat_bubble.dart, lib/views/widgets/commons/bard_field_label.dart, lib/views/widgets/commons/bard_logo.dart, lib/views/widgets/commons/bard_pin_number.dart, lib/views/widgets/commons/dialog.dart, lib/views/widgets/commons/logo.dart, lib/views/widgets/commons/password_hint.dart, lib/views/widgets/commons/shimmers.dart, lib/views/widgets/commons/video_checkbox_v2.dart, lib/views/widgets/generics/generic_home_section.dart, lib/views/widgets/generics/generic_home_widget.dart, lib/views/widgets/generics/generic_session_section.dart, lib/views/widgets/reports/activity_gauge_v2.dart, lib/views/widgets/reports/movement_insight_tile_v2.dart, lib/views/widgets/reports/movement_load_gauge_v2.dart, lib/views/widgets/reports/pending_reports_v2.dart, lib/views/widgets/reports/rtw_load_limit_tile_v2.dart, lib/views/widgets/reports/simple_line_chart.dart, lib/views/widgets/reports/worker_widgets_v2.dart, lib/views/widgets/safety_training/training_insight_tile_v2.dart]
lint_staged:config - Found config: {lib/**.dart: dart format --fix && dart analyze}
lint_staged:group - lib/**.dart matched files: [lib/api/chime_api.dart, lib/bloc/report_bloc/report_session_bloc.dart, lib/bloc/report_bloc/shift_report_bloc.dart, lib/bloc/sensor_bloc/pivot_sensor_bloc_test.dart, lib/environment/dev.dart, lib/environment/prod.dart, lib/models/chat/channel_item.dart, lib/models/reporting/location_metadata.dart, lib/models/reporting/occupation_metadata.dart, lib/models/reporting/task_metadata.dart, lib/models/reporting/worker_metadata.dart, lib/repo/meta_provider.dart, lib/repo/source_provider.dart, lib/routes.dart, lib/services/file_uploader.dart, lib/theme/bardavon_primary.dart, lib/theme/primary.dart, lib/utils/common_utils.dart, lib/utils/crash_report.dart, lib/utils/device_storage.dart, lib/utils/isolate_helper.dart, lib/utils/markdown_parser.dart, lib/utils/nano_id.dart, lib/utils/pair_sensor_screen_helper.dart, lib/views/chat/channel_messages_alt_v2.dart, lib/views/chat/chat_platform.dart, lib/views/chat/create_channel_screen_v2.dart, lib/views/chat/list_channels_alt_v2.dart, lib/views/chat/list_chat_users_v2.dart, lib/views/home/guest_home_section_v2.dart, lib/views/home/home_screen_v2.dart, lib/views/home/main_screen.dart, lib/views/home/rtw_home_section_v2.dart, lib/views/home/supervisor_home_section_v2.dart, lib/views/home/worker_home_screen.dart, lib/views/login/bard_login.dart, lib/views/login/bard_signup.dart, lib/views/login/bard_signup_validators.dart, lib/views/login/cognito_force_reset_password_screen.dart, lib/views/login/mfa_enrolment_screen.dart, lib/views/login/splash_screen.dart, lib/views/report/form_online_v2.dart, lib/views/report/help_screen_v2.dart, lib/views/report/metadata_form_v2.dart, lib/views/report/metadata_list_v2.dart, lib/views/report/pair_sensors_v2.dart, lib/views/report/rtw_instructions_screen_v2.dart, lib/views/report/rtw_tasks_screen_v2.dart, lib/views/report/sensor_not_found_view.dart, lib/views/report/shift_recorder_v2.dart, lib/views/report/shift_summary_section_v2.dart, lib/views/report/task_session_section.dart, lib/views/report/task_summary_section_v2.dart, lib/views/report/video_session_section.dart, lib/views/safety_training/assessment_view_v2.dart, lib/views/safety_training/explanation_view_v2.dart, lib/views/safety_training/full_screen_video_view.dart, lib/views/safety_training/module_details_v2.dart, lib/views/safety_training/training_home_screen_v2.dart, lib/views/settings/about_preventure_v2.dart, lib/views/settings/contact_us_form_v2.dart, lib/views/settings/delete_account_screen_v2.dart, lib/views/settings/join_company_screen_v2.dart, lib/views/settings/settings_view_v2.dart, lib/views/settings/show_joining_code_screen_v2.dart, lib/views/settings/stored_sessions_v2.dart, lib/views/settings/update_app_screen.dart, lib/views/settings/upload_details_screen_v2.dart, lib/views/settings/upload_legacy_sessions_v2.dart, lib/views/settings/user_permissions.dart, lib/views/ui_util.dart, lib/views/widgets/chat/chat_bubble.dart, lib/views/widgets/commons/bard_field_label.dart, lib/views/widgets/commons/bard_logo.dart, lib/views/widgets/commons/bard_pin_number.dart, lib/views/widgets/commons/dialog.dart, lib/views/widgets/commons/logo.dart, lib/views/widgets/commons/password_hint.dart, lib/views/widgets/commons/shimmers.dart, lib/views/widgets/commons/video_checkbox_v2.dart, lib/views/widgets/generics/generic_home_section.dart, lib/views/widgets/generics/generic_home_widget.dart, lib/views/widgets/generics/generic_session_section.dart, lib/views/widgets/reports/activity_gauge_v2.dart, lib/views/widgets/reports/movement_insight_tile_v2.dart, lib/views/widgets/reports/movement_load_gauge_v2.dart, lib/views/widgets/reports/pending_reports_v2.dart, lib/views/widgets/reports/rtw_load_limit_tile_v2.dart, lib/views/widgets/reports/simple_line_chart.dart, lib/views/widgets/reports/worker_widgets_v2.dart, lib/views/widgets/safety_training/training_insight_tile_v2.dart]
⠋ Preparing lint_staged...
lit_staged:git - git status -z
M  lib/api/chime_api.dartM  lib/bloc/report_bloc/report_session_bloc.dartM  lib/bloc/report_bloc/shift_report_bloc.dartM  lib/bloc/sensor_bloc/pivot_sensor_bloc_test.dartM  lib/environment/dev.dartM  lib/environment/prod.dartM  lib/models/chat/channel_item.dartM  lib/models/reporting/location_metadata.dartM  lib/models/reporting/occupation_metadata.dartM  lib/models/reporting/task_metadata.dartM  lib/models/reporting/worker_metadata.dartM  lib/repo/meta_provider.dartM  lib/repo/source_provider.dartM  lib/routes.dartM  lib/services/file_uploader.dartM  lib/theme/bardavon_primary.dartM  lib/theme/primary.dartM  lib/utils/common_utils.dartM  lib/utils/crash_report.dartM  lib/utils/device_storage.dartM  lib/utils/isolate_helper.dartM  lib/utils/markdown_parser.dartM  lib/utils/nano_id.dartM  lib/utils/pair_sensor_screen_helper.dartM  lib/views/chat/channel_messages_alt_v2.dartM  lib/views/chat/chat_platform.dartM  lib/views/chat/create_channel_screen_v2.dartM  lib/views/chat/list_channels_alt_v2.dartM  lib/views/chat/list_chat_users_v2.dartM  lib/views/home/guest_home_section_v2.dartM  lib/views/home/home_screen_v2.dartM  lib/views/home/main_screen.dartM  lib/views/home/rtw_home_section_v2.dartM  lib/views/home/supervisor_home_section_v2.dartM  lib/views/home/worker_home_screen.dartM  lib/views/login/bard_login.dartM  lib/views/login/bard_signup.dartM  lib/views/login/bard_signup_validators.dartM  lib/views/login/cognito_force_reset_password_screen.dartM  lib/views/login/mfa_enrolment_screen.dartM  lib/views/login/splash_screen.dartM  lib/views/report/form_online_v2.dartM  lib/views/report/help_screen_v2.dartM  lib/views/report/metadata_form_v2.dartM  lib/views/report/metadata_list_v2.dartM  lib/views/report/pair_sensors_v2.dartM  lib/views/report/rtw_instructions_screen_v2.dartM  lib/views/report/rtw_tasks_screen_v2.dartM  lib/views/report/sensor_not_found_view.dartM  lib/views/report/shift_recorder_v2.dartM  lib/views/report/shift_summary_section_v2.dartM  lib/views/report/task_session_section.dartM  lib/views/report/task_summary_section_v2.dartM  lib/views/report/video_session_section.dartM  lib/views/safety_training/assessment_view_v2.dartM  lib/views/safety_training/explanation_view_v2.dartM  lib/views/safety_training/full_screen_video_view.dartM  lib/views/safety_training/module_details_v2.dartM  lib/views/safety_training/training_home_screen_v2.dartM  lib/views/settings/about_preventure_v2.dartM  lib/views/settings/contact_us_form_v2.dartM  lib/views/settings/delete_account_screen_v2.dartM  lib/views/settings/join_company_screen_v2.dartM  lib/views/settings/settings_view_v2.dartM  lib/views/settings/show_joining_code_screen_v2.dartM  lib/views/settings/stored_sessions_v2.dartM  lib/views/settings/update_app_screen.dartM  lib/views/settings/upload_details_screen_v2.dartM  lib/views/settings/upload_legacy_sessions_v2.dartM  lib/views/settings/user_permissions.dartM  lib/views/ui_util.dartM  lib/views/widgets/chat/chat_bubble.dartM  lib/views/widgets/commons/bard_field_label.dartM  lib/views/widgets/commons/bard_logo.dartM  lib/views/widgets/commons/bard_pin_number.dartM  lib/views/widgets/commons/dialog.dartM  lib/views/widgets/commons/logo.dartM  lib/views/widgets/commons/password_hint.dartM  lib/views/widgets/commons/shimmers.dartM  lib/views/widgets/commons/video_checkbox_v2.dartM  lib/views/widgets/generics/generic_home_section.dartM  lib/views/widgets/generics/generic_home_widget.dartM  lib/views/widgets/generics/generic_session_section.dartM  lib/views/widgets/reports/activity_gauge_v2.dartM  lib/views/widgets/reports/movement_insight_tile_v2.dartM  lib/views/widgets/reports/movement_load_gauge_v2.dartM  lib/views/widgets/reports/pending_reports_v2.dartM  lib/views/widgets/reports/rtw_load_limit_tile_v2.dartM  lib/views/widgets/reports/simple_line_chart.dartM  lib/views/widgets/reports/worker_widgets_v2.dartM  lib/views/widgets/safety_training/training_insight_tile_v2.dart
lit_staged:git - Found partially staged files: []
lit_staged:git - git ls-files --deleted
lit_staged:git - Deleted files: []
lit_staged:git - git stash create
296360e1b76c038c326e331f1f4a0e6c1211ac21
lit_staged:git - git stash store --quiet -m lint_staged automatic backup 296360e1b76c038c326e331f1f4a0e6c1211ac21
✔ Prepared lint_staged                    164ms
↓ Hide unstaged changes
⠋ Run tasks for staged files...
lint_staged:run - dart format --fix lib/environment/prod.dart
Formatted 1 file (0 changed) in 1.05 seconds.
lint_staged:run - dart format --fix lib/environment/dev.dart
Formatted 1 file (0 changed) in 1.39 seconds.
lint_staged:run - dart format --fix lib/models/reporting/location_metadata.dart
Formatted 1 file (0 changed) in 1.38 seconds.
lint_staged:run - dart format --fix lib/theme/primary.dart
Formatted 1 file (0 changed) in 1.08 seconds.
lint_staged:run - dart format --fix lib/bloc/report_bloc/report_session_bloc.dart
Formatted 1 file (0 changed) in 1.72 seconds.
lint_staged:run - dart format --fix lib/bloc/sensor_bloc/pivot_sensor_bloc_test.dart
Formatted 1 file (0 changed) in 1.67 seconds.
lint_staged:run - dart format --fix lib/models/reporting/occupation_metadata.dart
Formatted 1 file (0 changed) in 1.65 seconds.
lint_staged:run - dart format --fix lib/models/reporting/task_metadata.dart
Formatted 1 file (0 changed) in 1.53 seconds.
lint_staged:run - dart format --fix lib/utils/crash_report.dart
Formatted 1 file (0 changed) in 1.00 seconds.
lint_staged:run - dart format --fix lib/bloc/report_bloc/shift_report_bloc.dart
Formatted 1 file (0 changed) in 1.95 seconds.
lint_staged:run - dart format --fix lib/repo/meta_provider.dart
Formatted 1 file (0 changed) in 1.59 seconds.
lint_staged:run - dart format --fix lib/models/reporting/worker_metadata.dart
Formatted 1 file (0 changed) in 1.66 seconds.
lint_staged:run - dart format --fix lib/repo/source_provider.dart
Formatted 1 file (0 changed) in 1.84 seconds.
lint_staged:run - dart format --fix lib/models/chat/channel_item.dart
Formatted 1 file (0 changed) in 1.98 seconds.
lint_staged:run - dart format --fix lib/utils/device_storage.dart
Formatted 1 file (0 changed) in 1.43 seconds.
lint_staged:run - dart format --fix lib/api/chime_api.dart
Formatted 1 file (0 changed) in 2.51 seconds.
lint_staged:run - dart format --fix lib/utils/nano_id.dart
Formatted 1 file (0 changed) in 1.18 seconds.
lint_staged:run - dart format --fix lib/routes.dart
Formatted 1 file (0 changed) in 2.27 seconds.
lint_staged:run - dart format --fix lib/theme/bardavon_primary.dart
Formatted 1 file (0 changed) in 2.07 seconds.
lint_staged:run - dart format --fix lib/utils/isolate_helper.dart
Formatted 1 file (0 changed) in 1.95 seconds.
lint_staged:run - dart format --fix lib/views/chat/chat_platform.dart
Formatted 1 file (0 changed) in 1.63 seconds.
lint_staged:run - dart format --fix lib/utils/markdown_parser.dart
Formatted 1 file (0 changed) in 2.09 seconds.
lint_staged:run - dart format --fix lib/utils/pair_sensor_screen_helper.dart
Formatted 1 file (0 changed) in 1.84 seconds.
lint_staged:run - dart format --fix lib/utils/common_utils.dart
Formatted 1 file (0 changed) in 2.71 seconds.
lint_staged:run - dart format --fix lib/views/home/home_screen_v2.dart
Formatted 1 file (0 changed) in 1.43 seconds.
lint_staged:run - dart format --fix lib/views/home/guest_home_section_v2.dart
Formatted 1 file (0 changed) in 1.55 seconds.
lint_staged:run - dart format --fix lib/views/chat/channel_messages_alt_v2.dart
Formatted 1 file (0 changed) in 2.43 seconds.
lint_staged:run - dart format --fix lib/services/file_uploader.dart
Formatted 1 file (0 changed) in 3.17 seconds.
lint_staged:run - dart format --fix lib/views/login/bard_signup_validators.dart
Formatted 1 file (0 changed) in 1.32 seconds.
lint_staged:run - dart format --fix lib/views/chat/list_chat_users_v2.dart
Formatted 1 file (0 changed) in 2.09 seconds.
lint_staged:run - dart format --fix lib/views/login/mfa_enrolment_screen.dart
Formatted 1 file (0 changed) in 1.57 seconds.
lint_staged:run - dart format --fix lib/views/home/supervisor_home_section_v2.dart
Formatted 1 file (0 changed) in 1.86 seconds.
lint_staged:run - dart format --fix lib/views/chat/create_channel_screen_v2.dart
Formatted 1 file (0 changed) in 2.78 seconds.
lint_staged:run - dart format --fix lib/views/chat/list_channels_alt_v2.dart
Formatted 1 file (0 changed) in 2.76 seconds.
lint_staged:run - dart format --fix lib/views/home/worker_home_screen.dart
Formatted 1 file (0 changed) in 2.45 seconds.
lint_staged:run - dart format --fix lib/views/home/rtw_home_section_v2.dart
Formatted 1 file (0 changed) in 2.53 seconds.
lint_staged:run - dart format --fix lib/views/login/bard_signup.dart
Formatted 1 file (0 changed) in 2.42 seconds.
lint_staged:run - dart format --fix lib/views/home/main_screen.dart
Formatted 1 file (0 changed) in 2.82 seconds.
lint_staged:run - dart format --fix lib/views/login/splash_screen.dart
Formatted 1 file (0 changed) in 2.29 seconds.
lint_staged:run - dart format --fix lib/views/login/cognito_force_reset_password_screen.dart
Formatted 1 file (0 changed) in 2.53 seconds.
lint_staged:run - dart format --fix lib/views/login/bard_login.dart
Formatted 1 file (0 changed) in 2.71 seconds.
lint_staged:run - dart format --fix lib/views/report/rtw_instructions_screen_v2.dart
Formatted 1 file (0 changed) in 1.79 seconds.
lint_staged:run - dart format --fix lib/views/report/rtw_tasks_screen_v2.dart
Formatted 1 file (0 changed) in 1.90 seconds.
lint_staged:run - dart format --fix lib/views/report/metadata_form_v2.dart
Formatted 1 file (0 changed) in 2.29 seconds.
lint_staged:run - dart format --fix lib/views/report/help_screen_v2.dart
Formatted 1 file (0 changed) in 2.56 seconds.
lint_staged:run - dart format --fix lib/views/report/sensor_not_found_view.dart
Formatted 1 file (0 changed) in 2.09 seconds.
lint_staged:run - dart format --fix lib/views/report/metadata_list_v2.dart
Formatted 1 file (0 changed) in 2.42 seconds.
lint_staged:run - dart format --fix lib/views/report/task_session_section.dart
Formatted 1 file (0 changed) in 1.81 seconds.
lint_staged:run - dart format --fix lib/views/report/pair_sensors_v2.dart
Formatted 1 file (0 changed) in 2.56 seconds.
lint_staged:run - dart format --fix lib/views/safety_training/explanation_view_v2.dart
Formatted 1 file (0 changed) in 1.65 seconds.
lint_staged:run - dart format --fix lib/views/report/shift_summary_section_v2.dart
Formatted 1 file (0 changed) in 2.21 seconds.
lint_staged:run - dart format --fix lib/views/safety_training/full_screen_video_view.dart
Formatted 1 file (0 changed) in 1.78 seconds.
lint_staged:run - dart format --fix lib/views/report/task_summary_section_v2.dart
Formatted 1 file (0 changed) in 2.15 seconds.
lint_staged:run - dart format --fix lib/views/report/shift_recorder_v2.dart
Formatted 1 file (0 changed) in 2.48 seconds.
lint_staged:run - dart format --fix lib/views/settings/about_preventure_v2.dart
Formatted 1 file (0 changed) in 1.34 seconds.
lint_staged:run - dart format --fix lib/views/safety_training/module_details_v2.dart
Formatted 1 file (0 changed) in 1.67 seconds.
lint_staged:run - dart format --fix lib/views/safety_training/training_home_screen_v2.dart
Formatted 1 file (0 changed) in 1.67 seconds.
lint_staged:run - dart format --fix lib/views/settings/join_company_screen_v2.dart
Formatted 1 file (0 changed) in 1.24 seconds.
lint_staged:run - dart format --fix lib/views/settings/update_app_screen.dart
Formatted 1 file (0 changed) in 0.77 seconds.
lint_staged:run - dart format --fix lib/views/report/video_session_section.dart
Formatted 1 file (0 changed) in 1.99 seconds.
lint_staged:run - dart format --fix lib/views/settings/delete_account_screen_v2.dart
Formatted 1 file (0 changed) in 1.30 seconds.
lint_staged:run - dart format --fix lib/views/settings/show_joining_code_screen_v2.dart
Formatted 1 file (0 changed) in 1.08 seconds.
lint_staged:run - dart format --fix lib/views/settings/contact_us_form_v2.dart
Formatted 1 file (0 changed) in 1.40 seconds.
lint_staged:run - dart format --fix lib/views/settings/settings_view_v2.dart
Formatted 1 file (0 changed) in 1.22 seconds.
lint_staged:run - dart format --fix lib/views/settings/stored_sessions_v2.dart
Formatted 1 file (0 changed) in 1.02 seconds.
lint_staged:run - dart format --fix lib/views/settings/upload_details_screen_v2.dart
Formatted 1 file (0 changed) in 1.19 seconds.
lint_staged:run - dart format --fix lib/views/report/form_online_v2.dart
Formatted 1 file (0 changed) in 2.78 seconds.
lint_staged:run - dart format --fix lib/views/safety_training/assessment_view_v2.dart
Formatted 1 file (0 changed) in 1.91 seconds.
lint_staged:run - dart analyze lib/views/widgets/commons/dialog.dart
Analyzing dialog.dart...
No issues found!
Unhandled exception:
ProcessException: Too many open files
  Command: dart format --fix lib/views/settings/upload_legacy_sessions_v2.dart
#0      _ProcessImpl._start (dart:io-patch/process_patch.dart:401:33)
#1      Process.start (dart:io-patch/process_patch.dart:38:20)
#2      _runNonInteractiveProcess (dart:io-patch/process_patch.dart:578:18)
#3      Process.run (dart:io-patch/process_patch.dart:49:12)
#4      runAll.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:lint_staged/src/run.dart:95:38)
#5      MappedListIterable.elementAt (dart:_internal/iterable.dart:415:31)
#6      ListIterator.moveNext (dart:_internal/iterable.dart:344:26)
#7      Future.wait (dart:async/future.dart:520:26)
#8      runAll.<anonymous closure>.<anonymous closure> (package:lint_staged/src/run.dart:94:20)
#9      MappedListIterable.elementAt (dart:_internal/iterable.dart:415:31)
#10     ListIterator.moveNext (dart:_internal/iterable.dart:344:26)
#11     Future.wait (dart:async/future.dart:520:26)
#12     runAll.<anonymous closure> (package:lint_staged/src/run.dart:91:18)
#13     MappedIterator.moveNext (dart:_internal/iterable.dart:393:20)
#14     Future.wait (dart:async/future.dart:520:26)
#15     runAll (package:lint_staged/src/run.dart:90:16)
<asynchronous suspension>
#16     lintStaged (package:lint_staged/lint_staged.dart:26:17)
<asynchronous suspension>
#17     main (file:///Users/me/.pub-cache/hosted/pub.dev/lint_staged-0.4.2/bin/lint_staged.dart:25:18)
<asynchronous suspension>
hyiso commented 3 months ago

@cfrias-bardavon If this was running on MacOS, could you help to check whether https://github.com/flutter/flutter/issues/18225#issuecomment-396315283 can help?

cfrias-bardavon commented 3 months ago

Right, that worked around it, thanks.

hyiso commented 3 months ago

OK, I'll update the document later.