Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • Lazarus Lazarus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 2,098
    • Issues 2,098
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 14
    • Merge requests 14
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • FPC
  • LazarusLazarus
  • LazarusLazarus
  • Issues
  • #37466
Closed
Open
Issue created Aug 02, 2020 by FPC Admin account@fpc_adminOwner

IDE: wrong search-order for duplicate unit

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

  1. In IDE, open a unit (mainUnit or myOpenUnit) which contains the text "uses myUnit".
  2. IDE command "Find declaration of myUnit" should open the used "myUnit".
  3. 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).
Assignee
Assign to
Time tracking