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

Cannot compile time_machine on with latest flutter stable channel 1.22.6 #53

Open
degloff opened this issue Feb 19, 2021 · 2 comments
Open

Comments

@degloff
Copy link

degloff commented Feb 19, 2021

I cannot build with latest flutter stable channel 1.22.6, neither with the version 0.9.16 nor with the master branch

../../../development/flutter/.pub-cache/git/time_machine-7fbfd2fc84fd8ee6a6be4cf16e429d64d3a4df3f/lib/src/calendar_system.dart:8:2: Error: Getter not found: 'internal'.
@internal
 ^^^^^^^^
../../../development/flutter/.pub-cache/git/time_machine-7fbfd2fc84fd8ee6a6be4cf16e429d64d3a4df3f/lib/src/calendar_system.dart:8:2: Error: This can't be used as metadata; metadata should be a reference to a compile-time constant variable, or a call to a constant constructor.
@internal
 ^
../../../development/flutter/.pub-cache/git/time_machine-7fbfd2fc84fd8ee6a6be4cf16e429d64d3a4df3f/lib/src/zoneddatetime.dart:18:2: Error: Getter not found: 'internal'.
@internal
 ^^^^^^^^

....

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.22.6, on Mac OS X 10.15.7 19H114 darwin-x64, locale en-CH)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 12.4)

Tried the following versions

  #time_machine: ^0.9.16
  time_machine:
    git:
      url: https://github.com/Dana-Ferguson/time_machine

Many thanks for suggestions to fix it.

@rich-j
Copy link
Contributor

rich-j commented Feb 19, 2021

@degloff, you will probably need to specify version time_machine: 0.9.15 for compatibility with the current stable channel. The 0.9.16 release includes a fix for #44 that uses a new @internal attribute from meta that wasn't previously available.

@degloff
Copy link
Author

degloff commented Feb 19, 2021

I tried your suggestion by locking the version to 0.9.15. Seems to work. Thank you very much @rich-j .

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