Recent

Author Topic: ATSynEdit pkg error  (Read 1349 times)

polpero

  • Full Member
  • ***
  • Posts: 116
ATSynEdit pkg error
« on: February 01, 2023, 07:25:34 pm »
Hi

Latest ATSynEdit pkg won't compile,
gives following msg:

Quote
atsynedit_canvasproc.pas(623,7) Error: Identifier not found "CanvasPilcrowChar"

should i symply 'comment' the identifier?

Thanks

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
Re: ATSynEdit pkg error
« Reply #1 on: February 01, 2023, 08:02:24 pm »
you need ATSynEdit with the proper version of ATFlatControls (missed symbol is in the flatcontrols).

- use atsynedit + atflatcontrols both from OnlikePkgManager
- or both from Github

polpero

  • Full Member
  • ***
  • Posts: 116
Re: ATSynEdit pkg error
« Reply #2 on: February 01, 2023, 10:15:19 pm »
ok
the missed symbol has been found but
now ATSynEdit pkg gives this msg:

Quote
atsynedit.pas(9671,27) Error: Wrong number of parameters specified for call to "EncConvFindEncoding"

I uninstalled FlatControls, AtSynEdit and EControl,
rebuilt the IDE
and reinstalled all from the OLPManager
 !!

is there a best order in which to proceed?

 

balazsszekely

  • Guest
Re: ATSynEdit pkg error
« Reply #3 on: February 01, 2023, 10:23:41 pm »
Hi polpero,

I just updated AT_* packages in OPM, so everything should be fine now. Please do the following:
1. Go to Package->Install/Uninstall packages
2. Uninstall every AT_* package(atflatcontrols, atsynedit, etc...)
3. Rebuild the IDE
4. Open OPM and click the "Cleanup" toolbar icon
5. Select the AT packages you wish to install then click the "Install" icon

polpero

  • Full Member
  • ***
  • Posts: 116
Re: ATSynEdit pkg error
« Reply #4 on: February 01, 2023, 11:16:16 pm »
@GetMem


Followed the procedure

Still get the

Quote
atsynedit.pas(9658,27) Error: Wrong number of parameters specified for call to "EncConvFindEncoding"

balazsszekely

  • Guest
Re: ATSynEdit pkg error
« Reply #5 on: February 01, 2023, 11:25:03 pm »
@GetMem


Followed the procedure

Still get the

Quote
atsynedit.pas(9658,27) Error: Wrong number of parameters specified for call to "EncConvFindEncoding"
I tested ATSynedit with Lazarus 2.2.4/FPC 3.2.2 and Lazarus Trunk/FPC 3.2.2, both work fine at my side.
What Lazarus/FPC do you have?

polpero

  • Full Member
  • ***
  • Posts: 116
Re: ATSynEdit pkg error
« Reply #6 on: February 01, 2023, 11:32:34 pm »
Same:

 Lazarus 2.2.4/FPC 3.2.2

I'll try cleaning up and rebuilding again

balazsszekely

  • Guest
Re: ATSynEdit pkg error
« Reply #7 on: February 01, 2023, 11:37:38 pm »
Same:

 Lazarus 2.2.4/FPC 3.2.2

I'll try cleaning up and rebuilding again
1. Uninstall every at_package
2. There is a "Local Repo" icon in OPM, it will take you to the folder where the packages are located. Delete every at_* directory.
3. Reinstall everything


KodeZwerg

  • Hero Member
  • *****
  • Posts: 2006
  • Fifty shades of code.
    • Delphi & FreePascal
Re: ATSynEdit pkg error
« Reply #8 on: February 02, 2023, 05:23:52 am »
I just updated AT_* packages in OPM, so everything should be fine now. Please do the following:
1. Go to Package->Install/Uninstall packages
2. Uninstall every AT_* package(atflatcontrols, atsynedit, etc...)
3. Rebuild the IDE
4. Open OPM and click the "Cleanup" toolbar icon
5. Select the AT packages you wish to install then click the "Install" icon
1. Uninstall every at_package
2. There is a "Local Repo" icon in OPM, it will take you to the folder where the packages are located. Delete every at_* directory.
3. Reinstall everything
Thank you for updating but after I repeated your steps I now got the same error. (Prior I had all from AlexTP installed and running)
Lazarus 2.2.4 (rev lazarus_2_2_4) FPC 3.2.2 x86_64-win64-win32/win64

That method is called
Code: Pascal  [Select][+][-]
  1. function EncConvFindEncoding(const s: string): TEncConvId;
  2. var
  3.   e: TEncConvId;
  4. begin
  5.   for e:= Low(cEncConvNames) to High(cEncConvNames) do
  6.     if s=cEncConvNames[e] then
  7.       exit(e);
  8.   Result:= eidUTF8;
  9. end;

Here is the call.
Code: Pascal  [Select][+][-]
  1.     St.EncodingCodepage:= EncConvFindEncoding(LowerCase(AName), eidCP1252);

How to fix:
Do same steps like above with package EncConv!
After that it rebuild again nice.
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
Re: ATSynEdit pkg error
« Reply #9 on: February 02, 2023, 05:37:33 am »
New error means that EncConv is not the latest.

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2006
  • Fifty shades of code.
    • Delphi & FreePascal
Re: ATSynEdit pkg error
« Reply #10 on: February 02, 2023, 05:49:39 am »
New error means that EncConv is not the latest.
That might be true, but how should we know what is needed?
More than showing that it not compile anymore I can not do, to check dependencies correctly - for that my knowledge is too poor, I just can react on errors.
Anyway, I love your great work AlexTP!
(maybe it is possible to rename all of your packages with a leading AT and some info inside that tells requirements to quicker find what might be a possible candidate for updating/removal?)
« Last Edit: February 02, 2023, 06:34:01 am by KodeZwerg »
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
Re: ATSynEdit pkg error
« Reply #11 on: February 02, 2023, 06:25:41 am »
What do you suggest, make version req's inside packages? so that ATSynEdit needs exact version of EncConv. boring for me, sorry.

Rename EncConv to ATEncConv? not much sense.

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2006
  • Fifty shades of code.
    • Delphi & FreePascal
Re: ATSynEdit pkg error
« Reply #12 on: February 02, 2023, 06:33:29 am »
From where I come from, many packages/components have a version stated inside and simple check for that value ( >= ) on compiling.
I do in no way wanted to complain and I am sorry to made suggestions.
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

balazsszekely

  • Guest
Re: ATSynEdit pkg error
« Reply #13 on: February 02, 2023, 06:48:48 am »
Now I see what's happening. OPM detects that EncConv package dependency is already installed and does not download the latest version. So yeah, KodeZwerg evaluation is correct, you should uninstall EncConv too. Another solution is to check package EncConv, before installing ATSynEdit thus forcing OPM to download the latest EncConv.

PS: If you wondering why OPM cannot detect that envconv has changed, the reason is simple, no version information has changed in ATSynEdit or EncConv, so the MinMax package dependencies are met. OPM cannot check every pas/dfm file for changes, that would be an overkill.
« Last Edit: February 02, 2023, 07:10:23 am by GetMem »

polpero

  • Full Member
  • ***
  • Posts: 116
Re: ATSynEdit pkg error
« Reply #14 on: February 03, 2023, 11:31:19 pm »
Everything seems to be back on track

on the merits of communication
and the use of a dedicated Forum
:)

thanks everyone

 

TinyPortal © 2005-2018