-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
fix: Jaspr Build Fail On New Project #310
Comments
This isn't really something jaspr can control I think cause it needs to run flutter for certain things. If you don't need flutter plugin support, you can also select 'No' for "Enable support for using Flutter web plugins in your project? (Y/n)", which should workaround that. |
Just to clarify, Flutter runs fine in my container. It's just that warning message is expected. My only thought was, maybe Jaspr is failing because it gets a message on stderr, then that is something Jaspr can fix. If this is not the case, then this is still a bug as I expect Jaspr to work since this environment has everything Jaspr should need. |
Ah thanks for clarifying. That could be the case. To make it easier for me to debug, can you run 'dart run build_runnrr build' instead of jaspr build and see of it also fails? |
Sure root@c-nixos:/workspaces/voyver_website/voyver_website (jaspr)$ dart run build_runner build
Building package executable... (2.4s)
Built build_runner:build_runner.
[INFO] Generating build script completed, took 177ms
[WARNING] Invalidated precompiled build script due to core package update
[INFO] Precompiling build script... completed, took 2.4s
[SEVERE]
Unsupported operation: Calling "flutter doctor" resulted in: " Woah! You appear to be trying to run flutter as root.
We strongly recommend running the flutter tool without superuser privileges.
/
📎
". Make sure flutter is installed and setup correctly.
package:jaspr_web_compilers/src/common.dart 20:5 webSdkDir.<fn>
package:jaspr_web_compilers/src/common.dart 36:3 webSdkDir
package:jaspr_web_compilers/src/common.dart webSdkDir
package:jaspr_web_compilers/builders.dart 58:20 ddcKernelBuilder
package:build_runner BuildCommand._run
package:args/command_runner.dart 212:13 CommandRunner.runCommand
package:build_runner run
.dart_tool/build/entrypoint/build.dart 229:16 main
root@c-nixos:/workspaces/voyver_website/voyver_website (jaspr)$ flutter --version
Woah! You appear to be trying to run flutter as root.
We strongly recommend running the flutter tool without superuser privileges.
/
📎
Flutter 3.24.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 4cf269e36d (2 weeks ago) • 2024-09-03 14:30:00 -0700
Engine • revision a6bd3f1de1
Tools • Dart 3.5.2 • DevTools 2.37.2 |
This does seem to be the case Checking exit code may be a better idea |
I'm also running into this when trying to build/deploy my website |
Description
Jaspr fails when trying to start a new project in a container. The issue was not observed outside a container.
Output
The below output was run inside a container. Based on the below output, does
jaspr build
currently fail if there is any stderr output from flutter? Running as root is common in containers and the message from flutter is expected. Other than that, nothing useful from --verbose. This is my usual flutter dev environment I always use.The text was updated successfully, but these errors were encountered: