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

Unable to open 'lib object_patch.dart': cannot read property of undefined and TypeErrors #1386

Closed
rhysduggan5 opened this issue Jan 10, 2019 · 6 comments

Comments

@rhysduggan5
Copy link

In a program that was recently working perfectly fine, upon running the app as normal the launch screen would show, then it would error and give me this into the console:

screenshot 2019-01-10 at 07 59 58

And yet the last time I ran it all that was different was that there weren't images within the runner of the application, to give the launch screen an image. Any ideas why this is happening?

I just installed dart onto this machine and am using visual studio code with all the most up to date version installed.

@DanTup
Copy link
Member

DanTup commented Jan 10, 2019

Are you using VS Code insiders (1.31)? This looks like a VS Code bug at a glance, and their issue tracker seems to have a lot of "cannot read property 'x' of undefined" errors in it:

screenshot 2019-01-10 at 8 38 53 am

If it is Insiders, I think it is worth raising there (and confirming it doesn't happen in stable).

@DanTup DanTup added the awaiting info Requires more information from the customer to progress label Jan 10, 2019
@DanTup
Copy link
Member

DanTup commented Jan 10, 2019

I get a different issue in insiders :(

Cannot read property 'adapter' of undefined

I've opened an issue about that one!

@rhysduggan5
Copy link
Author

I am currently using v1.24.1, not insiders. After more tests it seems to have nothing to do with adding a launch screen image, as removing it didn't remove the error. It probably is a vs code bug. I could try running it in android studio to see if it makes any difference, to narrow down the error.

@DanTup
Copy link
Member

DanTup commented Jan 10, 2019

Ah, ok! The error is occurring inside VS Code code, so it definitely won't repro in Android Studio.

I would definitely open an issue in the VS Code repo with the screenshot (or maybe test it in Insiders first, it's possible it's gone). Even if we have a bug that's causing it, I don't think VS Code should fail like that. They may be able to provide tips to debug.

(If you do, please paste the link back here so I can help investigate if required)

@rhysduggan5
Copy link
Author

Yep, it seems to have been fixed in VS insiders, so no problems!

@DanTup
Copy link
Member

DanTup commented Jan 10, 2019

Great! 👍

@DanTup DanTup closed this as completed Jan 10, 2019
@DanTup DanTup added fixed in vs code and removed awaiting info Requires more information from the customer to progress labels Jan 10, 2019
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

2 participants