Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2022-03

Issue in FPDOC Editor or Makeskel?

5 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Zeljko Avramovic

I have already opened and issue for Lazarus FPDOC Editor, but now I am not sure if that should be fixed in FPDOC Editor or Makeskel tool so I would appreciate an advice so that I can change bug report if needed.

Basically, FPDOC Editor in Lazarus does not recognize record helper method "SomeRecord.SomeMethod" element generated with Makeskel in XML. Instead it creates it's own new XML element adding prefix "class operator " so we get new element "class operator SomeRecord.SomeMethod".

https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39689

Reply by email

Zeljko Avramovic
to Zeljko Avramovic

Sorry, wrong list. Forwarded to fpc-other instead.

Show quoted text 15 lines
Sent: Monday, March 28, 2022 at 11:43 AM From: "Zeljko Avramovic via fpc-devel" To: Cc: "Zeljko Avramovic" Subject: [fpc-devel] Issue in FPDOC Editor or Makeskel? I have already opened and issue for Lazarus FPDOC Editor, but now I am not sure if that should be fixed in FPDOC Editor or Makeskel tool so I would appreciate an advice so that I can change bug report if needed. Basically, FPDOC Editor in Lazarus does not recognize record helper method "SomeRecord.SomeMethod" element generated with Makeskel in XML. Instead it creates it's own new XML element adding prefix "class operator " so we get new element "class operator SomeRecord.SomeMethod". https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39689 _______________________________________________ fpc-devel maillist - https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply by email

Michael Van Canneyt
to Zeljko Avramovic: I have already opened and issue for Lazarus FPDOC Editor, but now I am not sure if that…
Zeljko Avramovic wrote 6 lines
I have already opened and issue for Lazarus FPDOC Editor, but now I am not sure if that should be fixed in FPDOC Editor or Makeskel tool so I would appreciate an advice so that I can change bug report if needed. Basically, FPDOC Editor in Lazarus does not recognize record helper method "SomeRecord.SomeMethod" element generated with Makeskel in XML. Instead it creates it's own new XML element adding prefix "class operator " so we get new element "class operator SomeRecord.SomeMethod".

Seems really like a fpdoc editor problem.

Simply

<element name="SomeRecord.SomeMethod">
</element>

is correct from a makeskel/fpdoc engine point of view.

Michael.

Reply by email

Zeljko Avramovic
to Michael Van Canneyt
Show quoted text 15 lines
> I have already opened and issue for Lazarus FPDOC Editor, but now I am not sure if that should be fixed in FPDOC Editor or Makeskel tool so I would appreciate an advice so that I can change bug report if needed. > > Basically, FPDOC Editor in Lazarus does not recognize record helper method > "SomeRecord.SomeMethod" element generated with Makeskel in XML. Instead > it creates it's own new XML element adding prefix "class operator " so we > get new element "class operator SomeRecord.SomeMethod". Seems really like a fpdoc editor problem. Simply <element name="SomeRecord.SomeMethod"> </element> is correct from a makeskel/fpdoc engine point of view.

Thanks, that's the info I needed - so bug report will stay addressed to FPDOC editor as it is now.

Anyway, meantime I found out that FPDOC expects "class operator " prefix to Initialize() method name causing the described problem. Other plain record helper methods are fine.

I don't know why, but forwarding to fpc-other was not successful (double checked everything), so I was forced to reply here. Sorry again.

Reply by email

Michael Van Canneyt
to Zeljko Avramovic
Zeljko Avramovic wrote 19 lines
>> I have already opened and issue for Lazarus FPDOC Editor, but now I am not sure if that should be fixed in FPDOC Editor or Makeskel tool so I would appreciate an advice so that I can change bug report if needed. >> >> Basically, FPDOC Editor in Lazarus does not recognize record helper method >> "SomeRecord.SomeMethod" element generated with Makeskel in XML. Instead >> it creates it's own new XML element adding prefix "class operator " so we >> get new element "class operator SomeRecord.SomeMethod". > > Seems really like a fpdoc editor problem. > > Simply > > <element name="SomeRecord.SomeMethod"> > </element> > > is correct from a makeskel/fpdoc engine point of view. Thanks, that's the info I needed - so bug report will stay addressed to FPDOC editor as it is now. Anyway, meantime I found out that FPDOC expects "class operator " prefix to Initialize() method name causing the described problem. Other plain record helper methods are fine.

Probably a hack to support the initialize management operator.

I don't know why, but forwarding to fpc-other was not successful (double checked everything), so I was forced to reply here. Sorry again.

No worries, I'm not on fpc-other, so you came to the right place.

Michael.

Reply by email