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

unhandled exception #41

Closed
fredgrott opened this issue Aug 18, 2021 · 1 comment · Fixed by #42
Closed

unhandled exception #41

fredgrott opened this issue Aug 18, 2021 · 1 comment · Fixed by #42
Assignees
Labels
bug Something isn't working

Comments

@fredgrott
Copy link

Have an error when attempting to generate diagrams for this repo: https://github.com/fredgrott/dart_oop_patterns

PS D:\fredgrttsstuff\GithubProjects\dart_oop_patterns\abstract_factory> flutter pub global run dcdg -s bin -o reports/docs/diagrams/src
Unhandled exception:
Bad state: Unable to find the context to D:\fredgrttsstuff\GithubProjects\dart_oop_patterns\abstract_factory\bin\abstract_factory.dart
#0 AnalysisContextCollectionImpl.contextFor (package:analyzer/src/dart/analysis/analysis_context_collection.dart:89:5)
#1 findClassElements (package:dcdg/src/find_class_elements.dart:44:39)
#2 main (file:///D:/fluttersdk/myfluttersdk/flutter/.pub-cache/hosted/pub.dartlang.org/dcdg-3.1.1/bin/dcdg.dart:35:25)
#3 _delayEntrypointInvocation. (dart:isolate-patch/isolate_patch.dart:281:32)
#4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)
pub finished with exit code 255

@glesica glesica added the bug Something isn't working label Aug 18, 2021
@glesica glesica self-assigned this Aug 18, 2021
@glesica
Copy link
Owner

glesica commented Aug 18, 2021

I'm able to reproduce this with a greatly reduced test case. My guess is that I just need to tell the analyzer to look at the bin/ directory. I'll look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants