Skip to content

Add a hint when a double is printed #57145

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

Open
sethladd opened this issue Jan 3, 2014 · 9 comments
Open

Add a hint when a double is printed #57145

sethladd opened this issue Jan 3, 2014 · 9 comments
Labels
area-devexp For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages. devexp-linter Issues with the analyzer's support for the linter package linter-lint-request P3 A lower priority bug or feature request type-enhancement A request for a change that isn't a bug

Comments

@sethladd
Copy link
Contributor

sethladd commented Jan 3, 2014

dart2js and vm differ when printing doubles.

  double x = 5.0;
  print("x is $x") ;

vm : 5.0
dart2js : 5

Until Issue #15881 is address, can we give the developer a hint or warning that printing a double results in differing behavior. Giving developers early warnings when code runs differently really helps to shorten the bug cycle.

@bwilkerson
Copy link
Member

The issue to watch is now Issue #1533.


Added this to the 1.2 milestone.

@clayberg
Copy link

Removed Priority-Unassigned label.
Added Priority-Medium label.

@clayberg
Copy link

Removed this from the 1.2 milestone.
Added this to the 1.3 milestone.

@jwren
Copy link
Member

jwren commented Mar 27, 2014

This would be a hint. Currently with other bugs and our current resources all hint work is being marked as Later.


Removed this from the 1.3 milestone.
Added this to the Later milestone.
Changed the title to: "[Hint] Add a hint when a double is printed".

@clayberg
Copy link

clayberg commented Apr 1, 2014

Added Analyzer-Hint label.

@bwilkerson
Copy link
Member

Changed the title to: "Add a hint when a double is printed".

@kasperl
Copy link

kasperl commented Jul 10, 2014

Removed this from the Later milestone.
Added Oldschool-Milestone-Later label.

@sethladd
Copy link
Contributor Author

Removed Oldschool-Milestone-Later label.

@srawlins srawlins transferred this issue from dart-lang/sdk Jun 8, 2020
@srawlins
Copy link
Member

srawlins commented Jun 8, 2020

Since there are certainly false-positives here, I think this is better suited for the linter.

@srawlins srawlins added the type-enhancement A request for a change that isn't a bug label Mar 29, 2024
@devoncarew devoncarew added devexp-linter Issues with the analyzer's support for the linter package legacy-area-analyzer Use area-devexp instead. labels Nov 18, 2024
@devoncarew devoncarew transferred this issue from dart-archive/linter Nov 18, 2024
@pq pq added the P3 A lower priority bug or feature request label Nov 20, 2024
@bwilkerson bwilkerson added area-devexp For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages. and removed legacy-area-analyzer Use area-devexp instead. labels Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-devexp For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages. devexp-linter Issues with the analyzer's support for the linter package linter-lint-request P3 A lower priority bug or feature request type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

8 participants