Open navaronbracke opened 1 year ago
Hi @navaronbracke,
Thank you for bringing this issue to our attention.
I've noted that this error tends to occur when running the intl_utils
package after the Flutter upgrade. This might be linked to issues with the Flutter cache following the upgrade, though I still need to investigate further to understand the exact cause.
As a temporary workaround, reinstalling intl_utils
often resolves the issue. Could you try this and let us know if it works for you?
Similar issues: FileSystemEvent error, Watcher fails with class FileSystemEvent.
I do not have intl_utils globally activated, only under dev dependencies, since I can run it with dart run intl_utils:generate
anyway after fetching dependencies. I did wipe my deps with flutter clean
but that didn't fix it iirc.
I do have the latest version of intl_utils
, version 2.8.5. For now I have a workaround (explicit dependency on watcher
) and it is working.
Interesting.
I've attempted to replicate the reported issue using the example project, ensuring that the same versions of Flutter and intl_utils
are utilized. However, in my testing environment, everything seems to be functioning correctly.
@navaronbracke As far as I know this is because of an inconsistency between watcher v1.0.0 and v1.1.0 with latest Dart.
If you do flutter pub upgrade
or dart pub upgrade
, your transitive dependencies will get updated and you wouldn't need to explicitly depend on version 1.1.0.
There were breaking changes in Dart for file system events.
But the
watcher
dependency ofintl_utils
has not been updated (it actually is not even a direct dependency).Adding a specific dependency on
watcher: ^1.1.0
fixed the executable script, though.My dev dependencies look like:
Logs: