Project
IntelliJ IDEA
Priority
Normal
Type
Bug
Fix versions
No Fix versions
State
Can't Reproduce
Assignee
Maxim Mossienko
Subsystem
Flex Support
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   Per Olesen
    3 years ago (03 Dec 2008 00:16)
  • Updated by   Per Olesen
    2 years ago (27 Aug 2009 21:43)
  • Jira: IDEA-20968
    (history, comments)
 
IDEA-20968 Code deleted in mxml script block when using quick-fix
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
2 Attachments
idea.log   (3 KB) Test.mxml   (291 B)
Given the code in attached Test.xml

1. IDEA will color the click="onClick()" red, correctly, as the method onClick() is missing
2. Type Alt-enter for quick-fix and select "Create Function ..." (or Create Method, doesn't matter)
3. IDEA will suggest this:

private function onClick(): {}

and place the cursor after the "colon"

4. type "void" as return type AND PRESS TAB

And IDEA will delete all code in the rest of the script block.

If instead of pressing TAB, I press Enter", it works.

Issue was resolved
Comments (3)
 
History
 
Linked Issues (?)
 
Maxim Mossienko
  Maxim Mossienko
03 Dec 2008 00:28
3 years ago
Could you please attach idea.log file, thank you
Per Olesen
  Per Olesen
03 Dec 2008 00:41
3 years ago
Doesn't say much :-(
Maxim Mossienko
  Maxim Mossienko
27 Aug 2009 21:43
2 years ago
works as expected in IDEA 8.1#9902