Closed DanielArndt closed 2 years ago
I think the problem is that you are running it from Dart instead of Flutter. And as the package depends on Flutter libs it need to be ran from flutter instead. Try just changing the command from dart pub global activate arb_utils
to flutter pub global activate arb_utils
and let's see if that does the trick
Same error with flutter pub ...
. I tried clearing the cache again as well, no luck.
Hmm. I just cloned the repo and activated it with
dart pub global activate --source path projects/arb_utils
and it works fine.
Scratch that. It "activates", but I guess it doesn't build until I execute
dart pub global run arb_utils:sort lib/l10n/arb/app_en.arb
When I do that, I get the same error as above.
But, I'm able to successfully activate and run if I checkout version 0.2.0 of arb_utils instead.
The culprit seems to be
Which in turn depends on flutter
I made #7 to attempt to fix this, although I don't know if it is the correct approach.
I made a 0.4.0 version with a good approach and so, but it seems to just read the incompatibility with flutter and refuses to work:
$ dart pub global activate arb_utils
$ arb_utils
Can't load Kernel binary: Invalid kernel binary format version.
arb_utils as globally activated requires the Flutter SDK, which is unsupported for global executables.
It seems the Flutter part must be decoupled from this package. So sad
I've been using
arb_utils
as a script for several months successfully, however it seems to not be working any more since I cleared my cache. I tried debugging as much as I could on my own, but it's getting out of my level of knowledge.To make sure I've started with a clean slate, I tried the following:
The start of the output looks like this:
and it just goes on and on. Eventually it ends with this:
I've upgraded flutter to the latest version
Happy to do more digging, but I have no idea where to keep looking. Flutter and dart appear to work fine otherwise, but I still acknowledge this could be related to my setup. I just don't know how to debug further.