Skip to content

Raise instead of silently dropping a property with an unresolved type#307

Open
TetzkatLipHoka wants to merge 1 commit into
remobjects:masterfrom
TetzkatLipHoka:fix/registerproperty-silent-failure
Open

Raise instead of silently dropping a property with an unresolved type#307
TetzkatLipHoka wants to merge 1 commit into
remobjects:masterfrom
TetzkatLipHoka:fix/registerproperty-silent-failure

Conversation

@TetzkatLipHoka

Copy link
Copy Markdown

TPSCompileTimeClass.RegisterProperty freed the half-built property and
returned silently when its type string referenced a type that was not
(yet) registered. Scripts using the property then failed with a bare
'Unknown identifier' - very hard to trace back to a wrong registration
order in an import unit. This is the actual root cause behind reports
like issue #255 ('Delphi 11 case sensitive').

Raise EPSCompilerException naming the property and its type string
instead, matching how AddTypeS and the other registration APIs report
bad input. Inside OnUses the exception surfaces as a regular compiler
error message.

Fixes #255 (the reported "case sensitivity" is actually this silent registration failure: the property is dropped and the script then fails with Unknown identifier).

🤖 Generated with Claude Code

TPSCompileTimeClass.RegisterProperty freed the half-built property and
returned silently when its type string referenced a type that was not
(yet) registered. Scripts using the property then failed with a bare
'Unknown identifier' - very hard to trace back to a wrong registration
order in an import unit. This is the actual root cause behind reports
like issue remobjects#255 ('Delphi 11 case sensitive').

Raise EPSCompilerException naming the property and its type string
instead, matching how AddTypeS and the other registration APIs report
bad input. Inside OnUses the exception surfaces as a regular compiler
error message.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

hello i checked out in delphi 11 but i guess delphi 11 is case sensitive !

1 participant