IDE: wrong search-order for duplicate unit
Original Reporter info from Mantis: nanobit @nanobit
-
Reporter name:
Original Reporter info from Mantis: nanobit @nanobit
- Reporter name:
Description:
Wrong search-order in a project which contains duplicate unitnames:
The IDE has a different search-order for unit than the compiler.
Compiler search-order is:
Projectfolder unit (eg. bugfixed unit) overrules units of other folders.
Example of project structure:
project\mainUnit.pas // contains "uses myUnit": IDE/FPC search in projectfolder
project\myUnit.pas // bugfixed version
project\shared\myOpenUnit.pas // contains "uses myUnit": FPC searches in projectfolder, IDE searches in sharedfolder
project\shared\myUnit.pas // original version
- In IDE, open a unit (mainUnit or myOpenUnit) which contains the text "uses myUnit".
- IDE command "Find declaration of myUnit" should open the used "myUnit".
- Wrong behavior: IDE searches at first in the folder of the open unit.
Correct would be: IDE searches at first in the projectfolder.
Mantis conversion info:
- Mantis ID: 37466
- OS: Windows
- OS Build: 10
- Platform: win32
- Version: 2.1 (SVN)
- Fixed in revision: 63675 (#32f1e69f).