nextcloud / neon

A framework for building convergent cross-platform Nextcloud clients using Flutter.
Other
121 stars 29 forks source link

Broken analysis in neon_framework with Dart 3.5 #2391

Closed provokateurin closed 1 week ago

provokateurin commented 4 weeks ago

The analyzer doesn't show any warnings any more since https://github.com/nextcloud/neon/commit/920cdac6dc3be1deacc348e68b80457fd322f933 (I bisected it). It seems to be related to Dart 3.5 and maybe the workspace packages, but I haven't found much about it yet. Here are my only findings: https://github.com/dart-lang/sdk/issues/56416 https://github.com/dart-lang/sdk/issues/56047 https://github.com/dart-lang/sdk/issues/55975 https://github.com/dart-lang/sdk/commit/14ff0ca186110ba3e06737a430016f858fdb2655

So maybe we are lucky and this is fixed in Dart 3.5.1. Until then reverting the update is the only option we have.

keertip commented 3 weeks ago

The fix will be in Dart 3.5.1, do try it out and let us know if it works.

provokateurin commented 3 weeks ago

So with https://github.com/nextcloud/neon/pull/2399 we finally have Dart 3.5.1. I'll give it a test in the next days to see if we can now actually upgrade to Flutter 3.24.

provokateurin commented 1 week ago

We might be running into https://github.com/dart-lang/sdk/issues/56475, using flutter master the CI no longer sees the lints that it sees with flutter 3.24.1 which I don't see locally ever.

provokateurin commented 1 week ago

Using flutter beta (with Dart 3.6 beta) resolves the linting problems and everything is reproducible again. Dart 3.5.2 would probably be enough already.

provokateurin commented 1 week ago

Or not https://github.com/nextcloud/neon/pull/2452...