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

Analyzer: implementing package spec proposal (.packages) #23373

Closed
sethladd opened this issue May 4, 2015 · 14 comments
Closed

Analyzer: implementing package spec proposal (.packages) #23373

sethladd opened this issue May 4, 2015 · 14 comments
Assignees
Labels
analyzer-command Issues with the command-line dartanalyzer tool area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P1 A high priority bug; for example, a single project is unusable or has many test failures type-enhancement A request for a change that isn't a bug
Milestone

Comments

@sethladd
Copy link
Contributor

sethladd commented May 4, 2015

Tracking issue for implementing the package spec proposal.

Main issue: dart-archive/dart_enhancement_proposals#5

Proposal: https://github.com/lrhn/dep-pkgspec/blob/master/DEP-pkgspec.md

@sethladd
Copy link
Contributor Author

sethladd commented May 4, 2015

Marked this as blocking #23372.

@bwilkerson
Copy link
Member

I'm guessing that this is for the command-line analyzer, and that the requirement is that it support a command-line option to specify a file? (If I understood correctly, we decided that analysis server would continue to run pub and that the command-line analyzer would run pub unless a package map file is specified.)


Added this to the 1.11 milestone.
Removed Priority-Unassigned label.
Added Priority-High, Analyzer-Command labels.

@sethladd
Copy link
Contributor Author

sethladd commented May 4, 2015

For the workflow for how to find an app's dependencies, (including how to look for a packages/ dir, package spec file, package root, etc), please see the proposal and let us know if we need to refine that.

And yes, this is for the command-line analyzer.

@bwilkerson
Copy link
Member

Set owner to @pq.

@sethladd
Copy link
Contributor Author

sethladd commented May 5, 2015

Woohoo, thanks Phil!

@pq
Copy link
Member

pq commented May 20, 2015

Added Started label.

@sethladd
Copy link
Contributor Author

Marked this as blocking #22939.

@sethladd
Copy link
Contributor Author

For the record, here's the plan that I recall from the meeting:

* analyzer and analysis server will try pub's list-package-dirs first.

  • if that command returns with some signal that says "there's no pubspec.lock file here", then analyzer and analysis server will try the workflow as specified by the .packages proposal
  • these tools will use the package_config package

Did I get that right?

@munificent
Copy link
Member

That sounds right to me!

@sethladd sethladd added Type-Enhancement P1 A high priority bug; for example, a single project is unusable or has many test failures area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. analyzer-command Issues with the command-line dartanalyzer tool labels May 21, 2015
@sethladd sethladd added this to the 1.11 milestone May 21, 2015
@sethladd sethladd modified the milestones: 1.12, 1.11 Jun 11, 2015
@sethladd sethladd changed the title Analyzer: implementing package spec proposal Analyzer: implementing package spec proposal (.packages) Jun 11, 2015
@sethladd
Copy link
Contributor Author

So, the dartanalyzer works if you pass --packages path/to/.packages.

Next up: automatically find .packages

cc @pq

@sethladd
Copy link
Contributor Author

Just tested a dartanalyzer from 1.12-dev.5.2

Auto-discovery worked!
I also renamed pubspec.lock and pubspec.yaml and auto-discovery still worked!
Passing in --packages to dartanalyzer worked!

What remains for this task?

cc @stereotype441 @bwilkerson

@sethladd
Copy link
Contributor Author

Result from discussion:

cc @danrubel

@sethladd
Copy link
Contributor Author

Howdy!

@stereotype441 and @pq how do we look here? Are you comfortable with the auto-discovery logic here?

@pq
Copy link
Member

pq commented Aug 17, 2015

👍 I think we're good to go for this cut.

As discussed we have some integration tests to back-fill but that's a larger issue.

@pq pq closed this as completed Aug 17, 2015
@kevmoo kevmoo added type-enhancement A request for a change that isn't a bug and removed type-enhancement labels Mar 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-command Issues with the command-line dartanalyzer tool area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P1 A high priority bug; for example, a single project is unusable or has many test failures type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

5 participants