-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Crash trying to compile a flutter app with macros #55139
Comments
Started digging into this; it looks like a config issue, so, hopefully I can fix it :) |
Okay there's a bunch to unpack here, that I will dig into tomorrow :)
And this is enough to get a macro in the "hello world" app working for target "linux". (i.e. desktop). |
@davidmorgan do you have a branch or something where this is working? I'm interested in doing some testing with the Flutter debug adapter to see if everything "just works".. it's not important to me if everything works or is merged, but if I can rig it enough to run locally, it could give me a head-start on testing :-) |
Sure, just about :) ... happy to have more people trying it :) "flutter run" with "-d linux" or "-d chrome" are working after https://dart-review.googlesource.com/c/sdk/+/358443 -- which just merged --you'll need flutter set up to run with a locally built Dart SDK, until the change rolls into flutter properly. Looking next at getting it running with emulators. |
@davidmorgan thanks! Is the Linux support specific to Linux, or would those fixes also apply to macOS or Windows desktop? (I don't currently have easy access to Linux). Being able to use Web is very useful though, I haven't yet been able to test debugging web+macros at all! :) |
I guess it's any desktop, but I haven't tried it yet :) |
Looks like those changes got to Flutter before I tested this, although it doesn't seem Windows desktop works:
Web is working though, and that's a superset of desktop to the debug adapter, so that gives me something to do some testing with. Thanks! :) |
Tried on macOS but unfortunately also failed there:
|
I believe all the "flutter run"s are working now, please reopen if that's not the case :) |
Can confirm on Windows desktop this is all working great. I can run, step into, and hit breakpoints in generated code. Thanks! 🙂 |
@DanTup thanks :) |
I am trying to test out macros in flutter but am getting a failure today for
flutter run -d linux
.You can try my example by cloning https://github.com/jakemac53/macros_example/tree/flutter-app, and running
flutter run --enable-experiment macros -d linux
(or whichever device you have locally set up, it probably isn't linux specific as this is a kernel compilation failure).I get the error below:
The text was updated successfully, but these errors were encountered: