Jump to content
Alexander Sviridenkov

Unit dependency viwer

Recommended Posts

I have tested a little and found, that in somewhat complex structure scenarios, it might overlook some of the units.
See example here, where UPartA.pas and UPartB.pas were missing, while the project compiles and works  fine.

image.png.85b7d98014c9fa95ce005cf208fc7d34.png

T483_TstHclUnitDep_002.zip

 

If there are units with the same name, would it be possible to find some more details about, where they are located.

Maybe by right click, to get a list of where the absolute paths of all copies are?

image.png.6162c8dc7819eddcffc2ec761a3181e1.png

 

Edited by Rollo62

Share this post


Link to post
18 minutes ago, Rollo62 said:

I have tested a little and found, that in somewhat complex structure scenarios, it might overlook some of the units.
See example here, where UPartA.pas and UPartB.pas were missing, while the project compiles and works  fine.

image.png.85b7d98014c9fa95ce005cf208fc7d34.png

T483_TstHclUnitDep_002.zip

 

If there are units with the same name, would it be possible to find some more details about, where they are located.

Maybe by right click, to get a list of where the absolute paths of all copies are?

image.png.6162c8dc7819eddcffc2ec761a3181e1.png

 

Thank, I'll check.

When clicking on unit, folder(s) (at right panel) where it is located became bold.

Share this post


Link to post

Ahh, I see.
There was a disabled folder under Embarcadero/Studio/..., that why it didn't show up in bold to me,
but it seems to analyze the disabled folders anyway, that's why it appeared pink in the first place.
Yes, that is pretty much OK.
 

Share this post


Link to post
1 hour ago, Rollo62 said:

I have tested a little and found, that in somewhat complex structure scenarios, it might overlook some of the units.
See example here, where UPartA.pas and UPartB.pas were missing, while the project compiles and works  fine.

 

Now fixed in build 1.0.0.27

Share this post


Link to post

Yes, I can confirm that.
Now it recognizes and also pays attention to the conditional defines, showing only UPartB, perfect. 👍
image.png.9cc804b99a5a4162b01da76fb04cf354.png

Share this post


Link to post

Very nice project. Visually I like the first release the most. OK, some Units appear quite far away from the

center in the first release but that seems to fit with the use of them. (more unimportant than the main units in the center)

On the last version and the one before every unit is more in the center but also overlapping and making

some parts of the screen very messy. The extra Unit dependencies screen is now showing black circles

without text  and I don't know what they are.

Share this post


Link to post

Nice Tool, really helpful. Thanks for your effort.
But it would be nice, if I can hide some nodes like the DPR/DSK node, because it's not useful information, that all units included here.

Share this post


Link to post

Not sure if I get your point, but you can de-select nodes easily.
Isn't that enough?

image.thumb.png.3004505cfd50895bc9fb7b5fadeaaccd.png

Share this post


Link to post

I can just de-select unit nodes via folders, but not the DPR-File itself.

Like, that's no meaningful information, if you had 2000 units in your project, so in the resulting graph are 2000 lines to the project name node.

But you already know, that your units are included in the project file.

 

Example:

image.thumb.png.7090a8918f89949107e37dd6b532e66e.png

I want to hide the RESTDebugger.dpr Node. At this moment, there is no possibiltity to do that.

 

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×