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
Exception: NoSuchMethodError: The method 'pathFromUri' was called on null. #103
Comments
Do you have a minimal reproduction case? What version of the package are you using, can you try updating? I'm unable to see a code path where |
@natebosch path is on ^1.7.0. I can try 1.8.0 but it looks like it's a pre-release. I don't have a specific reproduction case. Sometimes I don't run into this issue, most of the time I do when running I didn't see anything obvious either about |
I'm stumped. The field is final. Line 55 in 10c778c
The only 2 places which assign the field either have a null fallback, or assign directly to Lines 37 to 38 in 10c778c
Line 49 in 10c778c
Lines 33 to 45 in 10c778c
And all of those values Have you made any local modifications to the package before this started happening? |
Yea. It seemed really odd.
I hadn't made any changes to the package prior to debugging, and even
debugging was just logging out.
…On Mon, Feb 8, 2021, 7:33 PM Nate Bosch ***@***.***> wrote:
I'm stumped.
The field is final.
https://github.com/dart-lang/path/blob/10c778c799b2fc06036cbd0aa0e399ad4eb1ff5b/lib/src/context.dart#L55
The only 2 places which assign the field either have a null fallback, or
assign directly to Style.platform.
https://github.com/dart-lang/path/blob/10c778c799b2fc06036cbd0aa0e399ad4eb1ff5b/lib/src/context.dart#L37-L38
https://github.com/dart-lang/path/blob/10c778c799b2fc06036cbd0aa0e399ad4eb1ff5b/lib/src/context.dart#L49
Style.platform can only hold a few values:
https://github.com/dart-lang/path/blob/10c778c799b2fc06036cbd0aa0e399ad4eb1ff5b/lib/src/style.dart#L33-L45
And all of those values posix, url, and windows are non-null because they
are static final fields assigned with a call to a generative constructor.
Have you made any local modifications to the package before this started
happening?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#103 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAPJF3Z463JELXDQDUZLLLS6B7F5ANCNFSM4VRSHFJQ>
.
|
I'm running into issues running
flutter test
- sometimes it's successful and other times it's not. I'm wondering if anyone has any ideas as to whether this is an issue on my end or not. Thanks.This is an example of the output.
I have put some logging in place and noticed that
style
is sometimes null during the execution, but not always which you can see below:style.pathFromUri(_parseUri(uri))
flutter test test/integration-tests
Some additional info:
flutter doctor -v
The text was updated successfully, but these errors were encountered: