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

LocalDataException when building new Nylo project #96

Closed
jplata opened this issue Jan 5, 2024 · 15 comments
Closed

LocalDataException when building new Nylo project #96

jplata opened this issue Jan 5, 2024 · 15 comments

Comments

@jplata
Copy link

jplata commented Jan 5, 2024

Just started getting this issue on new installs of nylo.

Screenshot 2024-01-05 at 11 02 56 AM

I'm confused as too why, as dateformat isnt called anywhere in the scaffold.

@agordn52
Copy link
Contributor

agordn52 commented Jan 5, 2024

Hi @jplata,

Could you run flutter--version from the console?

I'll take a look

@jplata
Copy link
Author

jplata commented Jan 5, 2024

Flutter 3.16.5 • channel stable • https://github.com/flutter/flutter.git Framework • revision 78666c8dc5 (2 weeks ago) • 2023-12-19 16:14:14 -0800 Engine • revision 3f3e560236 Tools • Dart 3.2.3 • DevTools 2.28.4

Thanks

@agordn52
Copy link
Contributor

agordn52 commented Jan 6, 2024

Hi @jplata,

I'm also on the same version for Flutter and Dart, it works fine.

Can you try to install it again from the https://nylo.dev website? If you hit run, out of the box, it should yield the same results I'm getting.

Flutter 3.16.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 78666c8dc5 (3 weeks ago) • 2023-12-19 16:14:14 -0800
Engine • revision 3f3e560236
Tools • Dart 3.2.3 • DevTools 2.28.4

Thanks,

@jplata
Copy link
Author

jplata commented Jan 6, 2024

Just installed brand new:

git clone https://github.com/nylo-core/nylo.git nylo_app

Installed dependencies with flutter pub get.

Ran into same error when running. I re-ran again without debugging, and was able to get more details on the error, if this helps:

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: LocaleDataException: Locale data has not been initialized, call initializeDateFormatting(<locale>). #0 UninitializedLocaleData._throwException (package:intl/src/intl_helpers.dart:81:5) #1 UninitializedLocaleData.containsKey (package:intl/src/intl_helpers.dart:75:7) #2 DateFormat.localeExists (package:intl/src/intl/date_format.dart:824:28) #3 verifiedLocale (package:intl/src/intl_helpers.dart:186:19) #4 new DateFormat (package:intl/src/intl/date_format.dart:267:27) #5 NyDateTime.toDateTimeString (package:nylo_support/helpers/extensions.dart:143:17) #6 NyLogger._loggerPrint (package:nylo_support/helpers/helper.dart:422:50) #7 NyLogger.error (package:nylo_support/helpers/helper.dart:386:5) #8 NyStorage.read (package:nylo_support/helpers/helper.dart:210:18) <asynchronous suspension> #9 _DefaultListener.handle (package:nylo_support/events/sync_auth_to_backpack.dart:22:18) <asynchronous<…>

@agordn52
Copy link
Contributor

agordn52 commented Jan 6, 2024

Thanks @jplata,

Last question (sorry), what kind of device are you trying to build for?
E.g. Android Pixel 6 Simulator or IOS iPhone 15 Real device

@jplata
Copy link
Author

jplata commented Jan 6, 2024

IPhone 14 Pro Simulator (iOS 16.4)

@jplata
Copy link
Author

jplata commented Jan 6, 2024

@agordn52 FWIW, i just tried on iPhone 13 Simulator and did not have an issue.

@agordn52
Copy link
Contributor

agordn52 commented Jan 6, 2024

That's bizarre! I think know what's happening though.

Tomorrow I'll do an investigation, I appreciate your help on this 🙂

@agordn52
Copy link
Contributor

Hi @jplata,

I appreciate you helping me debug this one.
I've recently created a new release nylo_framework ^5.18.9 which should fix that issue.

Let me know if that resolves the problem for you when you get a chance, thanks :)

@jitendravn
Copy link

hi @agordn52 I'm also facing the same one

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: LocaleDataException: Locale data has not been initialized, call initializeDateFormatting(<locale>). E/flutter ( 3006): #0 UninitializedLocaleData._throwException (package:intl/src/intl_helpers.dart:81:5) E/flutter ( 3006): #1 UninitializedLocaleData.containsKey (package:intl/src/intl_helpers.dart:75:7) E/flutter ( 3006): #2 DateFormat.localeExists (package:intl/src/intl/date_format.dart:824:28) E/flutter ( 3006): #3 verifiedLocale (package:intl/src/intl_helpers.dart:186:19) E/flutter ( 3006): #4 new DateFormat (package:intl/src/intl/date_format.dart:267:27) E/flutter ( 3006): #5 NyDateTime.toDateTimeString (package:nylo_support/helpers/extensions.dart:143:17) E/flutter ( 3006): #6 NyLogger._loggerPrint (package:nylo_support/helpers/helper.dart:425:50) E/flutter ( 3006): #7 NyLogger.info (package:nylo_support/helpers/helper.dart:393:5) E/flutter ( 3006): #8 NyRouter._addRoute (package:nylo_support/router/router.dart:148:16) E/flutter ( 3006): #9 NyRouter.route (package:nylo_support/router/router.dart:128:10) E/flutter ( 3006): #10 appRouter.<anonymous closure> (package:flutter_app/routes/router.dart:118:14) E/flutter ( 3006): #11 nyRoutes (package:nylo_support/router/router.dart:29:8) E/flutter ( 3006): #12 appRouter (package:flutter_app/routes/router.dart:42:16) E/flutter ( 3006): #13 RouteProvider.boot (package:flutter_app/app/providers/route_provider.dart:7:20) E/flutter ( 3006): #14 bootApplication (package:nylo_support/providers/providers.dart:17:39) E/flutter ( 3006): <asynchronous suspension> E/flutter ( 3006): #15 Boot.nylo (package:flutter_app/bootstrap/boot.dart:6:39) E/flutter ( 3006): <asynchronous suspension> E/flutter ( 3006): #16 Nylo.init (package:nylo_support/nylo.dart:271:13) E/flutter ( 3006): <asynchronous suspension> E/flutter ( 3006): #17 main (package:flutter_app/main.dart:10:15) E/flutter ( 3006): <asynchronous suspension> E/flutter ( 3006):

@agordn52
Copy link
Contributor

Hi @jitendravn,

Are you on the latest version nylo_framework ^5.18.9?

Can you check your pubspec.yaml file.

@jitendravn
Copy link

jitendravn commented Jan 17, 2024

@agordn52 I'm On 5.18.7

@agordn52
Copy link
Contributor

Hi @jitendravn,

Can you upgrade to nylo_framework ^5.18.9?

That should fix the issue 👍

@jitendravn
Copy link

@agordn52 its done . working perfectly

@agordn52
Copy link
Contributor

Thanks for confirming at @jitendravn,

Closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants