Forum > General

Should View/Unit Dependencies use also lps files?

(1/1)

Чебурашка:
Today I was cleaning up a project, in the sense that I was trying to reduce the units dependencies.

I opened the View/Unit Dependiencies and I saw that there were some unexpected units visualized into the diagram. I tried to find them in the unit uses clauses all around but I did not find them. At the end I realized that these extra units were shown in the diagram just because they were opened (with File/Open) in the past and they were still present in the lps files, despite being never part neither of the lpi nor in any uses clause. Once I cleaned up the lps the units were no longer displayed in the Unit Dependencies as expected.

Is the usage of lps wanted?

valdir.marcos:

--- Quote from: Чебурашка on August 29, 2023, 12:06:59 pm ---Today I was cleaning up a project, in the sense that I was trying to reduce the units dependencies.

I opened the View/Unit Dependiencies and I saw that there were some unexpected units visualized into the diagram. I tried to find them in the unit uses clauses all around but I did not find them. At the end I realized that these extra units were shown in the diagram just because they were opened (with File/Open) in the past and they were still present in the lps files, despite being never part neither of the lpi nor in any uses clause. Once I cleaned up the lps the units were no longer displayed in the Unit Dependencies as expected.

Is the usage of lps wanted?
--- End quote ---
It seems like a bug to me.

Can you file a Lazarus bug report?
https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues

Martin_fr:
Have you ticked / unticked the checkbox "All source editor units" ?

Чебурашка:

--- Quote from: Martin_fr on September 03, 2023, 12:01:53 pm ---Have you ticked / unticked the checkbox "All source editor units" ?

--- End quote ---

I don't think, now I opened the Unit Dependencies screen, and the default ins that checkbox is checked. I bet I did not uncheck it.

I understand that when checked it includes all units opened in source editor, even if they are not part of the project, while when unchecked it restricts exclusively to the unis which are part of the project. And this is ok for me.

I will check more to understand better what is kept into lps. I expect it to contain only the files opened durin last working session, not also files opened in the past.

Чебурашка:

--- Quote from: valdir.marcos on September 03, 2023, 05:38:21 am ---
--- Quote from: Чебурашка on August 29, 2023, 12:06:59 pm ---Today I was cleaning up a project, in the sense that I was trying to reduce the units dependencies.

I opened the View/Unit Dependiencies and I saw that there were some unexpected units visualized into the diagram. I tried to find them in the unit uses clauses all around but I did not find them. At the end I realized that these extra units were shown in the diagram just because they were opened (with File/Open) in the past and they were still present in the lps files, despite being never part neither of the lpi nor in any uses clause. Once I cleaned up the lps the units were no longer displayed in the Unit Dependencies as expected.

Is the usage of lps wanted?
--- End quote ---
It seems like a bug to me.

Can you file a Lazarus bug report?
https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues

--- End quote ---

Before registering a new issue, I will monitor better according to Martin_fr's suggestions.

Thank you anyway!

Navigation

[0] Message Index

Go to full version