CnPack Forum


 
Subject: Problem with "Clean Unused Units Reference"
Duńczyk
新警察
Rank: 1



UID 67536
Digest Posts 0
Credits 11
Posts 3
点点分 11
Reading Access 10
Registered 2012-5-16
Status Offline
Post at 2012-5-24 23:19  Profile | Blog | P.M. 
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.
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6812
Posts 3579
点点分 6812
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2012-5-28 11:01  Profile | Blog | P.M. 
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.
Top
Duńczyk
新警察
Rank: 1



UID 67536
Digest Posts 0
Credits 11
Posts 3
点点分 11
Reading Access 10
Registered 2012-5-16
Status Offline
Post at 2012-5-29 18:42  Profile | Blog | P.M. 
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
Top
 




All times are GMT++8, the time now is 2024-10-7 01:03

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.0.0  © 2001-2006 Comsenz Inc.
Processed in 0.019719 second(s), 8 queries , Gzip enabled

Clear Cookies - Contact Us - CnPack Website - Archiver - WAP