-
Notifications
You must be signed in to change notification settings - Fork 58
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
raise package upper bounds and/or migrate to Dart 3 #947
Comments
This is the right place! Yeah, we haven't checked that in a while, sorry about that... we should remove that link from our README. Additionally, we're trying to get better about monitoring issues here. We do have plans to officially add Dart 3 support, but I'm not sure when exactly we'll be able to get to it. We don't rely on frontend_server_client directly, but I'm guessing it's our dependency on build or some other package that transitively depends on it (see here). We'd accept PRs, but heads up that it might not be possible to support both Dart 2 and Dart 3 versions of packages in the same release (in both the root over_react package and the analyzer plugin subpackage) and get everything passing in the various matrix configs in our CI. So, we may have to support only Dart 3 moving forward, and support Dart 2 in a separate release line. |
Is it that difficult? I thought the main barrier to Dart 3 migration was null safety. I know I ran into a few small syntax things when I started trying to upgrade my repo (e.g., in Dart 3 you can only use mixins with the |
Hey @dave-doty! No, it was less about difficultly, and more a matter of bandwidth and unknown scope of work. I did have some time this past week to give running on Dart 3 a try, though, and thankfully was able to get it working! I've got a PR in progress, and should hopefully be able to land that soon: #958 However, none of the changes in that branch are fixes in lib that would impact consumers, so I'd expect the latest published release to work in Dart 3. I did hit a few snags along the way, including this bug in Dart So long as you're on older or newer versions of Dart outside that range, though, you should be good. Now, back to the dependency issues, and frontend_server_client: I didn't see anything in over_react's depdendencies that was preventing newer versions of frontend_server_client from being pulled in. Actually, even with all its dev_dependencies, frontend_server_client 4.0.0 is resolved to in over_react (see "Install dependencies" job in this run). So I'm thinking there may be some other dependency in your package that's preventing it from pulling it in, possibly due to mismatches with other over_react packages. We are still on analyzer 5, so hopefully it's not that... Could you try adding |
@dave-doty Sorry, forgot to follow up, but those changes are released now in over_react 5.4.1! Oh, and, we also ended up raising the |
Great! It will be some time before I'll have the bandwidth to test this, but I hope it clears up the issues. Thanks! |
My project depends heavily on OverReact, and I finished migrating it to null safety with Dart 2.19.6. (If it matters, it's what's on the
dev
branch here: https://github.com/UC-Davis-molecular-computing/scadnano/tree/dev)I thought I could then proceed to upgrade to Dart 3, but I ran into some issues that I believe are coming from package upper bounds in OverReact: UC-Davis-molecular-computing/scadnano#990 (comment) In particular, although OverReact is ostensibly compatible with Dart 3:
I think the package upper bounds of OverReact make this difficult. In particular (as I mention in the comment linked above) I suspect that you need
frontend_server_client
version 4 in order to rundart run build_runner build
(or relatedbuild_runner
tasks such asdart run build_runner build
, orwebdev serve
, which I think runsdart run build_runner build
behind the scenes) with Dart 3.Maybe I'm just doing something wrong, but I wrestled with this for a while and, based on the discussion I linked in the comment (dart-lang/sdk#55911 (comment)) I suspect that I won't be able to upgrade to Dart 3 until OverReact raises the package upper bounds on
frontend_server_client
(and perhaps others? e.g.,build_runner
is currently at version 2.4.12 but I ran into resolving issues, I believe related to other version upper bounds in OverReact that limits it to 2.3 forbuild_runner
).Sorry if this isn't the right place to put this. There used to be a gitter page that the team used (https://app.gitter.im/#/room/#over_react_Lobby:gitter.im?source=orgpage), but I'm not sure how to contact them anymore.
The text was updated successfully, but these errors were encountered: