Recent

Author Topic: Getting TCustomAttribute  (Read 3086 times)

Weitentaaal

  • Hero Member
  • *****
  • Posts: 547
Getting TCustomAttribute
« on: September 19, 2023, 12:47:31 pm »
Hello,

i would like to have this Class: https://wiki.lazarus.freepascal.org/Custom_Attributes

what would i need to install to get this Class ?
Tried to install FPC 3.3.1 version with FPCUpDeluxe but it installed 3.2.2 again, what did i do wrong ? (attached a Picture)
Clicked on the Install/Update FPC+Lazaarus Button and it finished successfully.

thanks.

zeljko

  • Hero Member
  • *****
  • Posts: 1668
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Getting TCustomAttribute
« Reply #1 on: September 19, 2023, 01:53:33 pm »
Install trunk fpc.

Weitentaaal

  • Hero Member
  • *****
  • Posts: 547
Re: Getting TCustomAttribute
« Reply #2 on: September 19, 2023, 02:42:08 pm »
just installed trunk following this: https://forum.lazarus.freepascal.org/index.php?topic=38368.0

these are my versions showing in the about section of the IDE

Lazarus 2.2.6 (rev 0df75f4) FPC 3.2.2 i386-win32-win32/win64

i selected "Install trunk" as seen in the Attached picture.

shouldn't i have FPC 3.3.1 ?

EDIT: is there something Similar to TCustomAttribute ?

zeljko

  • Hero Member
  • *****
  • Posts: 1668
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Getting TCustomAttribute
« Reply #3 on: September 19, 2023, 03:25:59 pm »
I guess that "Trunk" option means fpc trunk + lazarus trunk, and yes you should see fpc-3.3.1 as fpc version.

PascalDragon

  • Hero Member
  • *****
  • Posts: 5750
  • Compiler Developer
Re: Getting TCustomAttribute
« Reply #4 on: September 19, 2023, 08:33:48 pm »
EDIT: is there something Similar to TCustomAttribute ?

No.

Thaddy

  • Hero Member
  • *****
  • Posts: 16138
  • Censorship about opinions does not belong here.
Re: Getting TCustomAttribute
« Reply #5 on: September 20, 2023, 09:15:57 am »
I just re-tested my complete example that I added to the wiki and it simply works... So there must be something else wrong.
If I smell bad code it usually is bad code and that includes my own code.

TRon

  • Hero Member
  • *****
  • Posts: 3618
Re: Getting TCustomAttribute
« Reply #6 on: September 20, 2023, 09:34:14 am »
@Weitentaaal:
If you have multiple or previous installations of free pascal then Lazarus might pick up on the wrong version.

To investigate, see this post (literal issue of TS there is different but cause is the same).

PS: Are you sure you started the right lazarus version that fpcupdeluxe just installed ?
This tagline is powered by AI

Weitentaaal

  • Hero Member
  • *****
  • Posts: 547
Re: Getting TCustomAttribute
« Reply #7 on: September 21, 2023, 08:26:34 am »
@Weitentaaal:
If you have multiple or previous installations of free pascal then Lazarus might pick up on the wrong version.

To investigate, see this post (literal issue of TS there is different but cause is the same).

PS: Are you sure you started the right lazarus version that fpcupdeluxe just installed ?


i tried to solve it like suggested in the Post you mentioned, but without success. So i decided do completly remove Lazarus and install both versions i need. I follewed this Tutorial: https://wiki.freepascal.org/Multiple_Lazarus, and it did work. The first time i was following the same example, but i messed up somewhere i guess.

im not sure where the error was but i got it to run now.

Thank you guys once again for your help.
« Last Edit: September 21, 2023, 08:31:50 am by Weitentaaal »

 

TinyPortal © 2005-2018