-
Notifications
You must be signed in to change notification settings - Fork 33
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
Report crash on package without pub get #8
Comments
Turns out I'd just forgotten to |
Hi, So i just got the same error. What do you mean with "Turns out I'd just forgotten to pub get in the package I was running against."? |
You don't need to add DCDG as a dependency of your project, it just needs to be installed somehow (usually |
You run DCDG from the root of your project (where your |
Okay, but when I run "flutter pub global run dcdg" from the main folder I get this error: Nicolais-MacBook-Pro:acdc_flutter_app nicolai$ flutter pub global activate dcdg
Activated dcdg 2.0.1. #0 AnalysisDriver._computeAnalysisResult. (package:analyzer/src/dart/analysis/driver.dart:1487:9) |
OK, so that's the error that I saw above. For me, the fix was to run |
Thank for your quick reply. It doesnt work for me even though I run flutter pub get in the pack. Can there be something wrong with the terminal i use? I just use the build in terminal in VS. I've followed this video and done exactly the same, but i cant run: flutter pub global run dcdg |
Are you running it in the same directory as your Dart package? You have to point it at the directory that contains your |
Closing because the original problem should no longer be an issue with the latest release. |
yes I run it from lib folder, where i have the main.dart file that i want to make the diagram for. This what I've done so far:
I've also tried executing Im still getting the error :( Im sorry for all the stupid questions. I just started developing with Flutter so dart and pubs etc are still new for me.. |
You don't need to import it into your code, nor do you need to add it as a dependency to your project. You can't run it from the
Beyond that, I'm not sure how else I can help you. Sorry. |
The visitor barfs if an export uses a
package:
style URI rather than a relative path. Seems like it might be an analyzer bug (it may have something to do with dart-lang/sdk#35174), but noting it here for the future. Example stack trace:The text was updated successfully, but these errors were encountered: