Skip to content

Support --package-root option in the analyzer #4589

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

Closed
DartBot opened this issue Aug 19, 2012 · 5 comments
Closed

Support --package-root option in the analyzer #4589

DartBot opened this issue Aug 19, 2012 · 5 comments
Assignees
Milestone

Comments

@DartBot
Copy link

DartBot commented Aug 19, 2012

This issue was originally filed by [email protected]


Analyzer doesn't support packages

~/sdk/dart-sdk/bin/dart_analyzer --package-root=/Users/fedorkorotkov/IdeaProjects/dart-command-line/src/packages/ test.dart

returns

"--package-root=/Users/fedorkorotkov/IdeaProjects/dart-command-line/src/packages/" is not a valid option

@keertip
Copy link
Contributor

keertip commented Aug 20, 2012

@fedor - the --package-root option is specified with no "="

~/sdk/dart-sdk/bin/dart_analyzer --package-root /Users/fedorkorotkov/IdeaProjects/dart-command-line/src/packages/ test.dart

Try that and let us know if you still have issues


Set owner to @keertip.
Added this to the M1 milestone.
Added Area-Editor, Triaged labels.

@DartBot
Copy link
Author

DartBot commented Aug 20, 2012

This comment was originally written by [email protected]


Sorry, It's typo.

~/sdk/dart-sdk/bin/dart_analyzer --package-root=/Users/fedorkorotkov/IdeaProjects/dart-command-line/src/packages/ src/test.dart
"--package-root=/Users/fedorkorotkov/IdeaProjects/dart-command-line/src/packages/" is not a valid option

@keertip
Copy link
Contributor

keertip commented Aug 20, 2012

@fedor , try this

~/sdk/dart-sdk/bin/dart_analyzer --package-root /Users/fedorkorotkov/IdeaProjects/dart-command-line/src/packages/ src/test.dart

@DartBot
Copy link
Author

DartBot commented Aug 22, 2012

This comment was originally written by [email protected]


It works! Strange cause analyzer is just an extracted compiler without a few passes.

@keertip
Copy link
Contributor

keertip commented Aug 22, 2012

Added Verified label.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants