Expression Type unknown
Pressing Ctl-R + V or selecting Insert Variable from the right click menu
for "cost" or "profit" gives me "Expression Type unknown".
Pressing Alt + Enter C correctly creates the variable int
cost.
Its not the end of the world - just irritating.
This is 4.1.933.3
Thanks
Jeremy
Attachment(s):
Capture.GIF
Please sign in to leave a comment.
Hello,
Refactorings are for transforming some valid code in the first place, and
their goal is to produce the code that is valid as well. Preferrably, with
semantic unchanged. QuickFixes are for maing some red code valid.
This is why the refactoring refuses to run — there is, like, nothing to refactor
yet. No valid code. The Introduce Variable refactoring runs on an expression,
which might contain more than one undeclared variable. This makes the behavior
very complicated, so it's left for the QuickFixes that are per-variable.
—
Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”
Serge,
Understood - thanks
Jeremy
"Serge Baltic" <baltic@intellij.net> wrote in message
news:dc0986bf12392d8caf51d106ce909@news.intellij.net...
>
>
>
>