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

realm generate fails with SourceSpanMixin error #1811

Open
schnaser opened this issue Dec 11, 2024 · 0 comments
Open

realm generate fails with SourceSpanMixin error #1811

schnaser opened this issue Dec 11, 2024 · 0 comments

Comments

@schnaser
Copy link

schnaser commented Dec 11, 2024

What happened?

When I run dart run realm generate, I see the error outlined further down in this report.

WORKAROUND: I have pinned in my pubspec.yaml like so:

dependency_overrides:
  source_span: 1.10.0

Repro steps

Attempt to run realm generate with source_span 1.10.1

Version

Realm 3.4.1
Dart 3.5.3

What Atlas Services are you using?

Local Database only

What type of application is this?

Other

Client OS and version

MacOS 15.1.1 (24B91)

Code snippets

No response

Stacktrace of the exception/crash you're getting

No response

Relevant log output

[INFO] Generating build script...
[INFO] Generating build script completed, took 135ms

[INFO] Precompiling build script......
[WARNING] ../../../../.pub-cache/hosted/pub.dev/realm_generator-20.0.0/lib/src/expanded_context_span.dart:6:32: Error: The class 'SourceSpanMixin' can't be used as a mixin because it isn't a mixin class nor a mixin.
class ExpandedContextSpan with SourceSpanMixin implements FileSpan {
                               ^
[INFO] Precompiling build script... completed, took 2.0s

[SEVERE] Failed to precompile build script .dart_tool/build/entrypoint/build.dart.
This is likely caused by a misconfigured builder definition.
@schnaser schnaser added the T-Bug label Dec 11, 2024
@schnaser schnaser changed the title realm generate fails with realm generate fails with SourceSpanMixin error Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant