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

form_builder_validator is not compatible with intl. 0.19.0 #73

Closed
4 of 7 tasks
iKK001 opened this issue Dec 12, 2023 · 15 comments
Closed
4 of 7 tasks

form_builder_validator is not compatible with intl. 0.19.0 #73

iKK001 opened this issue Dec 12, 2023 · 15 comments
Labels
bug Something isn't working

Comments

@iKK001
Copy link

iKK001 commented Dec 12, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Package/Plugin version

9.1.0

Platforms

  • Android
  • iOS
  • Linux
  • MacOS
  • Web
  • Windows

Flutter doctor

not needed

Minimal code example

dependencies:
  flutter:
    sdk: flutter
  flutter_localizations:
    sdk: flutter
  intl: ^0.19.0
  form_builder_validators: ^9.1.0

Current Behavior

Because form_builder_validators >=9.1.0 depends on intl ^0.18.1 and my_app depends on intl ^0.19.0, form_builder_validators >=9.1.0 is forbidden.

Expected Behavior

form_builder_validator should be compatible with intl. 0.19.0

Steps To Reproduce

add intl: ^0.19.0 to your pubscpec.yaml dependencies...

Aditional information

No response

@iKK001 iKK001 added the bug Something isn't working label Dec 12, 2023
@deandreamatias
Copy link
Contributor

Flutter SDK on 3.16.x depends on intl 0.19.0?

@iKK001
Copy link
Author

iKK001 commented Dec 13, 2023

@deandreamatias, not sure if I understand your question.

The reason I pinpoint that compatibility is not that I am interested in finding out what version works with what dependency exactly for how long. I am interested in using the newest packages for my new App. And if I find a package that is not catching up with its sub-packages, then I will always pinpoint the incompatibiltiy.

@deandreamatias
Copy link
Contributor

If you see the package flutter_localizations that use the dependency intl, on Flutter stable version, use de version number 0.18.1.
So, if I upgrade the dependency to 0.19.x, the form_builder_validator will be not build because flutter sdk use the 0.18.1 version

@iKK001
Copy link
Author

iKK001 commented Dec 14, 2023

ah I understand , I did not see that - it makes sense then to wait with intl 0.19.x until flutter sdk also uses it. Sorry did not want to stress things...

@ch-arslan-kip-tm
Copy link

Flutter SDK on 3.16.x depends on intl 0.19.0?

Now - yes

https://github.com/flutter/flutter/blob/master/packages/flutter_localizations/pubspec.yaml#L14

@ariefsn
Copy link

ariefsn commented Mar 28, 2024

if you are using the flutter from master instead of the stable one, you can try this for temporary. update the pubspec.

  form_builder_validators:
    git:
      url: https://github.com/ariefsn/form_builder_validators
      ref: intl-v0.19.0

@nietsmmar
Copy link

Shouldn't this issue be reopened?

@muazam99
Copy link

up

@Albertbol
Copy link

up

@JakobLichterfeld
Copy link

JakobLichterfeld commented May 14, 2024

Flutter 3.22 now depends on intl 0.19.0, see issues #90, #91 and #92 for reference.

@deandreamatias
Copy link
Contributor

Version 10.0.0 with fix, deployed https://pub.dev/packages/form_builder_validators

@SamuelGadiel
Copy link

SamuelGadiel commented May 22, 2024

@deandreamatias

The update to 10.0.0 seems to be missing some files. The static analysis of pub.dev shows the following

image

And I'm getting this error when running the project

image

@JakobLichterfeld
Copy link

JakobLichterfeld commented May 23, 2024

The update to 10.0.0 seems to be missing some files.

Same behavior here:

[WARNING] build_resolvers:transitive_digests on package:form_builder_validators/form_builder_validators.dart:
Unable to read asset, could not compute transitive deps: form_builder_validators|lib/localization/intl/messages_de.dart

This may cause less efficient builds, see the following doc for help:
https://github.com/dart-lang/build/blob/master/docs/faq.md#unable-to-read-asset-could-not-compute-transitive-deps
[WARNING] build_resolvers:transitive_digests on package:form_builder_validators/src/form_builder_validators.dart:
Unable to read asset, could not compute transitive deps: form_builder_validators|lib/localization/intl/messages_de.dart

This may cause less efficient builds, see the following doc for help:
https://github.com/dart-lang/build/blob/master/docs/faq.md#unable-to-read-asset-could-not-compute-transitive-deps
[WARNING] build_resolvers:transitive_digests on package:form_builder_validators/localization/l10n.dart:
Unable to read asset, could not compute transitive deps: form_builder_validators|lib/localization/intl/messages.dart

#98 and #99 try to solve it

@RepliedSage11
Copy link

As a workaround you can cd into the directory printed in the error message:

cd ../../.pub-cache/hosted/pub.dev/form_builder_validators-10.0.0

and run the flutter gen-l10n command.

This will generate the missing localisation files which are missing in this version.

@deandreamatias
Copy link
Contributor

Version 10.0.1 of form_builder_validators published. That should be fix the error

@deandreamatias deandreamatias unpinned this issue May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

10 participants