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

jaspr build stops with "Instance of 'OptionsSkew'" when jaspr serve is running #254

Open
ChrisMarxDev opened this issue Jul 19, 2024 · 1 comment

Comments

@ChrisMarxDev
Copy link
Sponsor

Description
I had trouble building my site with jaspr build
This is was my output:

❯ jaspr build --verbose
[CLI] Building jaspr for static rendering mode.
[CLI] Building web assets...
[BUILDER] Generating build script...
[BUILDER] Generating build script completed, took 167ms
[BUILDER] Running Options: {--define, jaspr_web_compilers:ddc=generate-full-dill=true, --delete-conflicting-outputs, --define=jaspr_web_compilers:ddc=environment={"jaspr.flags.verbose":false}, --build-mode=BuildMode.Auto}
[BUILDER] Requested Options: {--release, --verbose, --delete-conflicting-outputs, --define=jaspr_web_compilers:entrypoint=dart2js_args=["-Djaspr.flags.release=true","-O2"], --build-mode=BuildMode.Auto}
Instance of 'OptionsSkew'

After some fiddling, I think I found out, that the issue was that jaspr serve was still running.
I am not sure if this is a bug per se, or if we just need a better error message, but I think it's worth reporting as people playing around with jaspr might be stumped by this, as I was.
Steps To Reproduce

  1. Activate jaspr through dart pub global activate jaspr_cli
  2. Create a new project with jaspr create test
  3. cd test
  4. jaspr serve
  5. Open new terminal window in the same directory
  6. jaspr build

Expected Behavior
Either the site builds correctly or we throw an error message, that informs the user better.

Aditional Info

❯ jaspr doctor
[✓] Jaspr CLI (Version 0.13.3)
  • Dart Version 3.4.3 (stable) (Tue Jun 4 19:51:39 2024 +0000) on "macos_arm64" at /Users/christophermarx/fvm/versions/stable/bin/cache/dart-sdk/bin/dat
  • Running on macos Version 14.3 (Build 23D56) - Locale en-DE
  • Analytics: Enabled

[✓] Current Project
  • Dependencies on core packages:
    • jaspr: ^0.13.3
    • jaspr_builder: ^0.13.3 (dev)
    • jaspr_web_compilers: ^4.0.9 (dev)
    • jaspr_router: ^0.4.2
  • Rendering mode: static
  • Uses jaspr compilers: true
  • Uses flutter embedding: false
@schultek
Copy link
Owner

schultek commented Aug 1, 2024

Thanks.

I don't think I can this since the error comes from build_runner not jaspr. But maybe an additional warning that explains it.

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

2 participants