I've just uploaded a new version of DUDs (Delphu Unit Dependency Scanner):

I've just uploaded a new version of DUDs (Delphu Unit Dependency Scanner):

Fixed: The parser missed the end of the uses clause if the final ';' was directly preceded by an comment.
Fixed: Unable to delete search paths.
Fixed: Recursive search directories not added if the root directory is already there.

You can download it here: http://www.easy-ip.net/delphi-unit-dependency-scanner.html

Please let me know your opinions, ideas and bugs.
http://www.easy-ip.net/delphi-unit-dependency-scanner.html

Comments

  1. Norton 360 deleted the download sorry !!!!

    ReplyDelete
  2. shlomo abuisak - Why? Can you give me more information? It scans fine with Microsoft Security Essentials.

    ReplyDelete
  3. it shout.. do not run it.but i did any way trusting you.
    May be some thing inside the 360 did not like. it happen.
    Do not worry. At list he did not find a virus.

    ReplyDelete
  4. When I try to use it (nod32 says setup is OK), I thought, I can add the .dpr file in "File|Open" dialog. Well, opening .dpr says the file is invalid. "Error in top level document item" (it was in russian due to russian Windows). Next time all the attempts to scan or enter "Settings" displays "No active document".
    When I restart it and try to add .dpr as root file, it says "An error occured loading ....dproj". Hmm, I have no .dproj files in my project directory :(

    ReplyDelete
  5. Roman Yankovsky hi... I already did and it checks out fine.

    ReplyDelete
  6. Igor Schevchenko - I guess this is something I should clarify. The Open Project opens a DUDS project, not a Delphi one. Instead, click New then enter the project details in the settings. You only need to enter a root Delphi project(s) and search paths. After that, you're ready to run a scan.

    I'll make all this clearer in the next update.

    ReplyDelete
  7. Paul Thornton Thanks for your reply. Did you think about getting search paths from existing .dproj or .bdsproj or .cfg file instead of selecting it ?

    ReplyDelete
  8. Paul Thornton It seems to me, it would be better to add filter for only project files in "Add root file(s)" dialog, not to mess them with .pas files. Well, I see the "Automatically add Project Search path" checkbox, my last post was incorrect. But still there are no .dproj files in my project directory, only .bdsproj and .cfg :)

    ReplyDelete
  9. And again...It seems it would be useful, especially for large projects like mine to see how frequently particular unit is used, e.g. some kind of histogram, of usage frequency, units used only once, twice, units included only in .dpr, etc

    ReplyDelete
  10. Well, I was wrong again,  usage statistics is presented :)

    ReplyDelete
  11. If one unit uses 170 another units it must be refactored :)

    ReplyDelete
  12. This sounds great, but if my .dpr file is not located in the root project folder (instead it's located in a subfolder. In other words, in my .dpr file you'll see something like: MyAppU in '..\MyAppU.pas'), your tool can't find any of my .pas files. Maybe my setup is kinda wired, but the advantage is that I can separate 6 IDE-generated files from my project sources ;)

    ReplyDelete
  13. Edwin Yip - this should work fine. The search paths should be added automatically from the dpr. Check the Search Paths tab. If they're not there, just add them and the .pas files will be found.

    ReplyDelete
  14. Thanks! Just found an issue, the installer won't quit when I checked "run xxx" in the last page. It still appears in the taskbar. (It seems that you use WaitUntilTerminated or some option like that)

    ReplyDelete

Post a Comment