One of the reasons that people are wary of using Delphi refactorings, is that some of them are not always reliable.
The only way to get them resolved is filing good bug reports.
But filing a good bug report is difficult: you need reproducible cases, and finding those can be tough.
Some of the refactorings can only be done by tools that have access to the complete compiler.
Which means that 3rd party tools like Model Maker Code Explorer, Castalia, cnPack and others cannot provide.
So I need some help in filing bugs centered around the refactoring topic:
- Indicate weak points of the various refactorings
- Help finding reproducible steps
Here are a few examples I filed recently:
- [WayBack] “No statements are selected” when performing “Extract Method” refactoring from case statement
- [WayBack] Complete case statement extracted when performing “Extract Method” refactoring from case statement
- [WayBack] Refactoring “Find Unit” often does not work any more
Please put your suggestions in the comments!
–jeroen
Some notes:
- Set Delphi “Block Indent” to 3
- Refactor – Extract method: it uses a Block Indent of 2.