-
Notifications
You must be signed in to change notification settings - Fork 119
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
errors on dart packages #1880
Comments
Hi, Have you run 'pub get' or 'flutter packages get` in the directory of the package you are trying to document? |
yes, this is a working flutter app, so |
@pmagnuson OK. Try doing |
It looks like for some reason we just aren't seeing the .packages file for that project. |
@jcollins-g Thank you for looking into this. It is interesting to look at references to
|
This looks like a problem with the tooling support. When I've run into this, As for the other warnings, |
The reason for this is probably because it's picking up the Dart that from Homebrew instead of the Dart that Flutter uses. Try changing your PATH to include |
Thank you. I will investigate.
Phil
…On Mon, Jan 7, 2019 at 10:04 AM Greg Spencer ***@***.***> wrote:
The reason for this is probably because it's picking up the Dart that from
Homebrew instead of the Dart that Flutter uses. Try changing your PATH to
include /Users/phil/bin/flutter/cache/dart-sdk/bin before the homebrew
path.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1880 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABcjVPcHdgG8ZvvKR1IizsdNVoN3Aa6Gks5vA34DgaJpZM4Zj71F>
.
|
Thank you for your help. I removed the homebrew version of dart. I'm getting the same basic error. Here is the end of the log:
|
@gspencergoog Actually, this looks different, you got past the import errors this time. Thanks so much for your patience! I think something is not right somewhere our pipeline for tool execution where a relative path for the skeleton to your CWD was used instead of the absolute path inside flutter. |
Yes, I think @jcollins-g is right, the line Phil, are any of your projects open source projects that I can try running dartdoc on myself? |
I just did an experiment of
I got the very same error. If that works correctly for you then there must be something about the way I have flutter installed. |
Indeed, I do get the same error when I do that, thanks for the repro. The issue is that we're relying on the This should work, from your project dir: FLUTTER_ROOT=/Users/phil/bin/flutter dartdoc |
still same error on my side. also the full command |
Ugh. OK, there must be some other difference between our setups. I was able to get things to work on macOS in a trial app in an empty shell env (via Can you try this from your project dir, please, so we can rule out environment differences?: env -i bash --norc
export HOME=~
export FLUTTER_ROOT=/Users/phil/bin/flutter
export PATH=$FLUTTER_ROOT/bin:$FLUTTER_ROOT/bin/cache/dart-sdk/bin:$PATH
dartdoc And attach the error log, since there might be subtle differences that indicate what's happening. |
This comment has been minimized.
This comment has been minimized.
OK, I think I know the reason we get different answers: this is because of a bug that has already been fixed (#25243). If you run this command: git log -1 4a110b6227a10637e1671f1f7ced7faf4da45d5e from the Flutter root directory, do you see a git log entry, or does it say something like "bad object"? If it says "bad object", then you don't have the fix. Updating to the latest master build with |
Note that switching to the master channel will move you from stable, and that it will naturally be less stable than our released stable branch. |
Thank you very, very much for all your time on this. Now working with lots of warnings, but no errors. |
On all my projects
dartdoc
fails with warnings:Errors
FLUTTER_ROOT
is set to/Users/phil/bin/flutter
where flutter is installed. Have also tried/Users/phil/bin/flutter/bin
The text was updated successfully, but these errors were encountered: