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

Fix Bad state: NoSuchMethodError: The getter 'length' was called on n… #9

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

fodil-a
Copy link

@fodil-a fodil-a commented Nov 25, 2020

…ull.

The issue makes aqueduct db generate crash 100% of the time if you use a version of dart > 2.8.

You need to merge and release a version of isolate-executor and aqueduct ASAP to fix the issue dating from june.

@fodil-a fodil-a force-pushed the master branch 2 times, most recently from 81805bc to b89920e Compare November 25, 2020 20:35
@fodil-a
Copy link
Author

fodil-a commented Nov 25, 2020

also fixes #8 by replacing deprecated calls from analyzer

final fileUnit = parseFile(
path: uri.toFilePath(windows: Platform.isWindows),
featureSet: FeatureSet.fromEnableFlags2(
flags: [], sdkLanguageVersion: Version(2, 8, 0)));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the significance of using version 2.8.0?

@@ -8,7 +8,7 @@ environment:
sdk: ">=2.0.0 <3.0.0"

dependencies:
analyzer: '>=0.32.0 <0.50.0'
analyzer: '>=0.40.6 <0.41.0'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be more permissive

Suggested change
analyzer: '>=0.40.6 <0.41.0'
analyzer: '>=0.40.1 <0.42.0'

Copy link

@sdxv sdxv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Passes all tests. Never done a code review before, so I hope none of my comments are bad or out of line. The only change I would suggest is the minor tweak to the analyzer versions in pubspec

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

Successfully merging this pull request may close these issues.

2 participants