Skip to content

Commit

Permalink
Don't throw error from flutter-l10n-flycheck workdir function
Browse files Browse the repository at this point in the history
Throwing an error from the working-directory function leads to freezes
in buffers that produce an error.
`(flutter-project-get-root)` throws an error when the project is not a
flutter project.
This change fixes the freezes experienced in `dart-mode` buffers for
files that are not part of a flutter project.
  • Loading branch information
fapdash authored and amake committed Aug 23, 2024
1 parent 004c91e commit e3e5480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flutter-l10n-flycheck.el
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
:command ("flutter" "packages" "pub"
"run" "intl_translation:extract_to_arb"
source)
:working-directory (lambda (_) (flutter-project-get-root))
:working-directory (lambda (_) (ignore-errors (flutter-project-get-root)))
:modes (dart-mode)
:enabled flutter-l10n-flycheck--enable-p
:error-patterns
Expand Down

0 comments on commit e3e5480

Please sign in to comment.