CnPack Forum » CnWizards IDE Wizards » Problem with "Clean Unused Units Reference"


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

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

[u]First unit:
[/u]uses
  kspladminh, uprstale,
  ExQuery, WizytaFunctions;

Clean unused units log:
  Implementation Uses: ExQuery,WizytaFunctions

[b]Result:[/b]
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

[b]Result:[/b]
uses
  kspladminh, uprstale, WizytaFunctions;

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

[u]Second unit:[/u]
uses
  comctrls, IniFiles, mkplcommon, funconvert, FunSQLBuild,
  PSCommonStr, PSCommonClasses,GenQuery;

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

[b]Result:[/b]
uses
  comctrls, [color=Red]IniFilesnQuery[/color];

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.

2012-5-28 11:01 Passion
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.

2012-5-29 18:42 Duńczyk
Delphi 5 (build 6.18) Update Pack 1
Delphi 7 (build 8.1)

Attachment contains all observed cases (with comment).

页: [1]


Powered by Discuz! Archiver 5.0.0  © 2001-2006 Comsenz Inc.