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,099
    • Issues 2,099
    • 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
  • #32247
Closed
Open
Issue created Aug 06, 2017 by FPC Admin account@fpc_adminOwner

Packages with doted names: Dotted units events not detected right

Original Reporter info from Mantis: Michl @michl1
  • Reporter name: Michl

Description:

If you use a package with dotted names and properties from undotted units (like TNotifyEvent) this works fine. If you want use a event defined in a dotted unit, only the unit name in front of the dot is taken.

Steps to reproduce:

Try a component in a dotted unit:

unit dot.foo;  
...
type
  TStringEvent = procedure(var UserInfo:String) of object;

  TDotComponent = class(TComponent)
  private
    FOnBar: TNotifyEvent;
    FOnFoo: TStringEvent;
  published
    property OnBar: TNotifyEvent read FOnBar write FOnBar;  // this works
    property OnFoo: TStringEvent read FOnFoo write FOnFoo;  // this not
  end;  

Compilable package added.
- install package in ide
- place a TDotComponent (from DotComponents) on a new form
- in Objectinspector.Events create default event for OnBar -> works fine
- in Objectinspector.Events create default event for OnFoo -> see invalid "dot" in uses clause

Additional information:

First reported here: http://www.lazarusforum.de/posting.php?mode=reply&f=19&t=10939

Mantis conversion info:

  • Mantis ID: 32247
  • OS: Windows
  • OS Build: 7
  • Build: 55637
  • Platform: 64bit
  • Version: 1.9 (SVN)
  • Fixed in revision: r56028 (#1e16c528)
  • Monitored by: » papelhigienico (Fabio Luis Girardi)
Assignee
Assign to
Time tracking