Board logo

Subject: Problem with "Clean Unused Units Reference" [Print This Page]

Author: Duńczyk    Time: 2012-5-24 23:19     Subject: Problem with "Clean Unused Units Reference"

Latest version CnPack contain an error in the "Clean Unused Units Reference".
A few examples:

First unit:
uses
  kspladminh, uprstale,
  ExQuery, WizytaFunctions;

Clean unused units log:
  Implementation Uses: ExQuery,WizytaFunctions

Result:
uses
  kspladminh, uprstale WizytaFunctions;

Comma disappeared, but remained WizytaFunctions!
--------------------------------

After manual correction - again invoked the cleaning:
uses
  kspladminh, uprstale, WizytaFunctions;

Clean unused units log:
  Implementation Uses: WizytaFunctions

Result:
uses
  kspladminh, uprstale, WizytaFunctions;

The last unit is not removed. I checked many other similar cases.
--------------------------------

Second unit:
uses
  comctrls, IniFiles, mkplcommon, funconvert, FunSQLBuild,
  PSCommonStr, PSCommonClasses,GenQuery;

Clean unused units log:
  Implementation Uses: FunConvert,FunSQLBuild,MKPLCommon,PSCommonClasses,PSCommonStr

Result:
uses
  comctrls, IniFilesnQuery;

In this case, not only disappeared a comma. Also removed a few characters of a unit name!

I checked in versions 0.9.9.629 and 0.9.9.633.
Author: Passion    Time: 2012-5-28 11:01

What's the IDE version? Do you use any special characters in your units? And if can, could you provide a simple unit to me?

I'll check it.
Author: Duńczyk    Time: 2012-5-29 18:42

Delphi 5 (build 6.18) Update Pack 1
Delphi 7 (build 8.1)

Attachment contains all observed cases (with comment).

Attachment: [Sample project] CleanReference.zip (2012-5-29 18:42, 3.76 K) / Download count 35
http://bbs.cnpack.org/attachment.php?aid=883




Welcome to CnPack Forum (http://bbs.cnpack.org/) Powered by Discuz! 5.0.0