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
Feature Request - include the data of a constant when hovering over a constant. #45777
Comments
move[bot] commented on Apr 15, 2021, 3:58 PM UTC: |
@jwren commented on Apr 15, 2021, 7:46 PM UTC: I created a tracking issue in YouTrack: https://youtrack.jetbrains.com/issue/WEB-50553 |
As the YouTrack issue notes, this support would be in the analysis server. The analysis server has performed a symbolic execution of the constant, so it does know the value of the constant. The problem is that the analysis server does not have the ability to execute code other than that allowed in constant expressions, so it can't execute the It might be worthwhile to display the value of constants when they are primitive types even if we can't display user defined types. |
Related: #41999 |
@helin24 @bwilkerson is this request for displaying values during debugging? |
My assumption is that the request is for values to be displayed when not debugging, but @atreeon can answer that better than I can. It's my understanding that IntelliJ already displays values of both constants and non-constants while debugging. |
This is my understanding as well - looking to see values of constants on mouseover in editor, for example. |
@bwilkerson @atreeon it does not for web platform, so I wonder if the request is the same as the issue I linked above. |
@annagrin that is correct, this is not when debugging, but from the static analysis of the source |
Hi, thanks for updating this. Apologies for not specifying whether in debug or outside of debug. Can we have this outside of debug too? |
This would be a pretty neat feature, and I suspect not wildly difficult. 😄 |
See my comments above regarding executing (There are also extreme cases such as https://github.com/dart-lang/sdk/blob/master/pkg/analysis_server/lib/src/services/correction/fix_internal.dart#L320, but we'd probably need to have some kind of cut-off so that all we displayed in a case like that was a notice that the value is too large.) |
Echoing what you said above Brian:
"Just" having the values for |
If we're talking about |
@atreeon commented on Apr 10, 2021, 1:31 PM UTC:
In other languages and IDEs when a constant variable is hovered over the data of the constant is shown in the popup help box. Would this be possible in flutter intellij idea?
This issue was moved by helin24 from flutter/flutter-intellij#5392.
The text was updated successfully, but these errors were encountered: