-
Notifications
You must be signed in to change notification settings - Fork 125
dartdoc failed: NoSuchMethodError: The getter 'element' was called on null #2594
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
Comments
I am unable to reproduce this problem locally either with v0.40.0 or the newly released v0.41.0. Can you please specify the version of Flutter you are using, and confirm that you have run "pub upgrade" if you are using a local checkout of dartdoc? |
@Dinesh-DK Will close in a couple days unless I hear back, assuming that it is related to previously closed bugs on this topic. This is the first report of this problem with 0.40.0 however so I'd like to be sure before doing that. |
I am running into the same issue. Today is the first time I have used dartdoc. I used it on two programs a dart cli program and a flutter program. The cli program worked without issue, however I see the same error as Dinesh-DK when trying to use it with the flutter program. I even created a fresh flutter app and the error still happened. I am running Flutter 2.0.3. Also i checked i am using 0.41 of dartdoc
|
This is very odd, especially since pub.dev seems to be processing flutter packages just fine. Perhaps it has something to do with Windows. Will investigate. |
Thank you. If you want/need me to try anything please just ask. |
Swinging back around to this, I've tried several ways of reproducing this on non-Windows platforms but failed. I am working on getting access to/setting up a Dart development platform on a Windows system to reproduce the problem. Some questions I have:
|
A member of my team is currently experiencing this problem as well on one of the packages I maintain. Both in the CI/CD (Linux) and locally (Mac). Using dartdoc v0.39.0. And it only occurs on our newly created web interface package. After reviewing our own code I wasn't able to find anything strange with it as to why it might occur but it might give some insights? The relevant source can be found here |
Have reproduced
Steps to reproduce:
|
Fixed by updating to |
I can not reproduce this problem on I am going to add some debugging output on exceptions so that it is clear which version is being executed for future crashes -- it's particularly confusing since people can use |
I am the team member @wolfenrain mentioned. We are still having this problem on dartdoc version |
You are certain the correct version of dartdoc is being executed in your use case? I have tried everything to reproduce this outside of 0.39.0. The stable version of the SDK included with the last stable flutter still has dartdoc 0.39.0, and if your PATH is not correctly set up you might be using that and therefore reproduce the crash. |
Hey sorry the dartdoc version on my path was still 0.39.0 like you said. Updating to 0.40.0 fixed the issue. My mistake was that I used |
It is somewhat confusing given there are multiple ways to access the package. #2607 should make it more clear which version you are using in the event of an exception for future releases. |
running |
I know this is closed, but I just got it again. Thoughts? flutter doctorDoctor summary (to see all details, run flutter doctor -v): • No issues found! Steps:
|
@danfleck does your package analyze without errors? |
also, it looks like the version line is saying something impossible (that this is the dartdoc version included with Dart 2.13.4, and that it is version 3.0.0). Not sure what's going on there. (edit: never mind, looks like it is a version run via pub global activate on 2.13.4) |
The package is essentially empty, but it does analyze without error.
|
When trying to run dartdoc in our library syncfusion_flutter_charts the dartdoc generation task fails with a dartdoc internal error message. Also this doesn't occur with the older versions of dartdoc(other than 0.40.0). I have attached the error log below.
used dartdoc version : 0.40.0
flutter_charts_dartdoc.txt
The text was updated successfully, but these errors were encountered: