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

Exposing option to enable support for asserts w/ messages #25141

Closed
pq opened this issue Dec 7, 2015 · 5 comments
Closed

Exposing option to enable support for asserts w/ messages #25141

pq opened this issue Dec 7, 2015 · 5 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. P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug
Milestone

Comments

@pq
Copy link
Member

pq commented Dec 7, 2015

From @sethladd on September 2, 2015 19:25

Following on the work from #24217

We'd love a flag so a user can opt-in and try this out.

Thanks!

Copied from original issue: dart-lang/analyzer_cli#59

@pq
Copy link
Member Author

pq commented Dec 7, 2015

From @bwilkerson on September 2, 2015 19:39

One possible approach for this would be to add the flag via the .analysis_options file.

@pq
Copy link
Member Author

pq commented Dec 7, 2015

From @sethladd on September 2, 2015 19:41

You read my mind! :)

@pq
Copy link
Member Author

pq commented Dec 7, 2015

From @stereotype441 on September 2, 2015 20:22

One possible approach for this would be to add the flag via the .analysis_options file.

The difficulty with this approach is that it interacts badly with our shared test infrastructure. At the moment the only way for the shared test runner to specify to the implementations (the VM, dart2js, and the analyzer) that a work-in-progress feature should be enabled is to pass in a command line flag. So we have to support the command line flag no matter what.

In principle, we could add .analysis_options support as an additional mechanism, however given that this DEP is a small backward-compatible feature addition, I suspect that it won't be too long before we just turn the feature on unconditionally. In which case any additional work we do to support it in .analysis_options is going to be wasted effort.

@pq
Copy link
Member Author

pq commented Dec 7, 2015

From @bwilkerson on September 2, 2015 21:55

A command-line option for the command-line analyzer is fine, but that doesn't play nicely with the analysis server. It seems like overkill to ask clients to add a flag when invoking server and then turn around and ask them to remove it. And if we're going to support putting the option in the file for server, then we could just as easily support it that way for the command-line analyzer. It's sad that we have to duplicate effort to satisfy the test framework, but it's not that much work and the options file approach can be shared.

@pq pq added area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. Priority-Medium analyzer-command Issues with the command-line dartanalyzer tool and removed area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. labels Dec 7, 2015
@kevmoo kevmoo added P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug and removed Priority-Medium labels Mar 1, 2016
@stereotype441 stereotype441 removed their assignment Aug 15, 2016
@dgrove dgrove added this to the 1.50 milestone Oct 20, 2016
@devoncarew devoncarew assigned bwilkerson and unassigned devoncarew Nov 14, 2016
@bwilkerson
Copy link
Member

Messages in asserts is now enabled by default in analyzer (https://codereview.chromium.org/2557513008/).

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. P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

6 participants