RichMemo component doesn't compile and gets errors
lazarus / 21-General
----------------------------------------------------------------------
Raf20076 · 2022-07-10 09:55
Hi guys I want to install component RichMemo from lazarus-ccr-
svn-r8341 in lazarus 2.2.0 fpc 3.2.2, Windows 7 (32bit) but I get
these errors. Any ideas what happens? Thanks
Code: Pascal [Select][+][-]window.onload = function(){var x1 =
document.getElementById("main_content_section"); if (x1) { var x =
document.getElementsByClassName("geshi");for (var i = 0; i
C:\lazarus\components\lazarus-ccr-
svn-r8341\components\richmemo\.\win32\win32richmemoproc.pas(784,22)
Error: (4001) Incompatible types: got "
" expected
""C:\lazarus\components\lazarus-ccr-
svn-r8341\components\richmemo\.\win32\win32richmemoproc.pas(812,22)
Error: (4001) Incompatible types: got "" expected
""[/b]
Code: Pascal [Select][+][-]window.onload = function(){var x1 =
document.getElementById("main_content_section"); if (x1) { var x =
document.getElementsByClassName("geshi");for (var i = 0; i Hint:
(11030) Start of reading config file
C:\lazarus\fpc\3.2.2\bin\i386-win32\fpc.cfgHint: (11031) End of
reading config file C:\lazarus\fpc\3.2.2\bin\i386-win32\fpc.cfgFree
Pascal Compiler version 3.2.2 [2022/01/02] for i386Copyright (c)
1993-2021 by Florian Klaempfl and others(1002) Target OS: Win32 for
i386(3104) Compiling richmemopackage.pas(3104) Compiling
richmemofactory.pas(3104) Compiling richmemo.pas(3104) Compiling
richmemofactory.pas(3104) Compiling .\win32\win32richmemo.pas(3104)
Compiling wsrichmemo.pasC:\lazarus\components\lazarus-ccr-
svn-r8341\components\richmemo\wsrichmemo.pas(322,67) Hint: (5091)
Local variable "Hay" of a managed type does not seem to be
initializedC:\lazarus\components\lazarus-ccr-
svn-r8341\components\richmemo\wsrichmemo.pas(322,62) Hint: (5091)
Local variable "Hay8" of a managed type does not seem to be
initialized(3104) Compiling .\win32\win32richmemoproc.pas(3104)
Compiling richmemoutils.pasC:\lazarus\components\lazarus-ccr-
svn-r8341\components\richmemo\richmemoutils.pas(81,41) Hint: (5091)
Local variable "ft" of a managed type does not seem to be
initializedC:\lazarus\components\lazarus-ccr-
svn-r8341\components\richmemo\richmemoutils.pas(77,3) Note: (5025)
Local variable "sel" not usedC:\lazarus\components\lazarus-ccr-
svn-r8341\components\richmemo\richmemoutils.pas(94,41) Hint: (5091)
Local variable "ft" of a managed type does not seem to be
initializedC:\lazarus\components\lazarus-ccr-
svn-r8341\components\richmemo\richmemoutils.pas(90,3) Note: (5025)
Local variable "sel" not usedC:\lazarus\components\lazarus-ccr-
svn-r8341\components\richmemo\richmemoutils.pas(135,52) Warning:
(4105) Implicit string type conversion with potential data loss from
"UnicodeString" to "AnsiString"C:\lazarus\components\lazarus-ccr-
svn-r8341\components\richmemo\richmemoutils.pas(148,52) Warning:
(4105) Implicit string type conversion with potential data loss from
"UnicodeString" to "AnsiString"C:\lazarus\components\lazarus-ccr-
svn-r8341\components\richmemo\.\win32\win32richmemoproc.pas(385,14)
Hint: (5091) Local variable "w" of a managed type does not seem to be
initializedC:\lazarus\components\lazarus-ccr-
svn-r8341\components\richmemo\.\win32\win32richmemoproc.pas(784,22)
Error: (4001) Incompatible types: got "" expected
""C:\lazarus\components\lazarus-ccr-
svn-r8341\components\richmemo\.\win32\win32richmemoproc.pas(812,22)
Error: (4001) Incompatible types: got "" expected
""C:\lazarus\components\lazarus-ccr-
svn-r8341\components\richmemo\.\win32\win32richmemoproc.pas(832,15)
Warning: (4105) Implicit string type conversion with potential data
loss from "WideString" to "AnsiString"C:\lazarus\components\lazarus-
ccr-
svn-r8341\components\richmemo\.\win32\win32richmemoproc.pas(854,16)
Hint: (5091) Local variable "w" of a managed type does not seem to be
initializedC:\lazarus\components\lazarus-ccr-
svn-r8341\components\richmemo\.\win32\win32richmemoproc.pas(880,16)
Hint: (5091) Local variable "s" of a managed type does not seem to be
initializedC:\lazarus\components\lazarus-ccr-
svn-r8341\components\richmemo\.\win32\win32richmemoproc.pas(978,10)
Warning: (4105) Implicit string type conversion with potential data
loss from "WideString" to "AnsiString"C:\lazarus\components\lazarus-
ccr-
svn-r8341\components\richmemo\.\win32\win32richmemoproc.pas(1143,17)
Hint: (5091) Local variable "Obj" of a managed type does not seem to
be initializedwin32richmemoproc.pas(1173) Fatal: (10026) There were 2
errors compiling module, stoppingFatal: (1018) Compilation
abortedError: C:\lazarus\fpc\3.2.2\bin\i386-win32\ppc386.exe returned
an error exitcode
----------------------------------------------------------------------
paweld · 2022-07-10 10:29
The current RichMemo sources can be found on github:
https://github.com/skalogryz/richmemo
----------------------------------------------------------------------
Raf20076 · 2022-07-10 10:46
Thanks . The RichMemo component from
https://github.com/skalogryz/richmemo works perfectly .
But it seems to me that RichMemo from
https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/ doesn't work. The
code is messed up. May be somoone could improve it.
Thanks.
----------------------------------------------------------------------
paweld · 2022-07-10 10:58
year ago @skalogryz moved a RichMemo component from lazarus-ccr to
github:
https://forum.lazarus.freepascal.org/index.php/topic,55105.0.htmlso
lazarus-ccr richmemo not be updated
----------------------------------------------------------------------
Raf20076 · 2022-07-10 11:15
Quote from: paweld on July 10, 2022, 12:58:37 pmyear ago @skalogryz
moved a RichMemo component from lazarus-ccr to github:
https://forum.lazarus.freepascal.org/index.php/topic,55105.0.htmlso
lazarus-ccr richmemo not be updated
It's not good because these days if you want to find any component for
Lazarus you have to search in Github everywhere, components are
scattered everywhere, completely chaos and mess. The good idea would
be to start one place in Github for all Lazarus components to find it
easily. So many hidden components never to be heard of.
----------------------------------------------------------------------
wp · 2022-07-10 11:21
Yes, that's the price for the git "hype".
Anyway, if you'd have looked at the files that you downloaded from
lazarus-ccr you'd have seen the readme.txt which says:
QuoteThis repository is considered closed and is no longer maintained.
RichMemo moved into GitHub:
https://github.com/skalogryz/richmemo
----------------------------------------------------------------------
paweld · 2022-07-10 13:06
try Online Package Manager
----------------------------------------------------------------------
Raf20076 · 2022-07-10 13:35
Quote from: wp on July 10, 2022, 01:21:11 pmYes, that's the price for
the git "hype".
Anyway, if you'd have looked at the files that you downloaded from
lazarus-ccr you'd have seen the readme.txt which says:
QuoteThis repository is considered closed and is no longer maintained.
RichMemo moved into GitHub:
https://github.com/skalogryz/richmemo
So maybe it should be removed from lazarus-crr. What is the sense to
keep it old in lazarus-crr?? Keep them only updated, remove all old.
If someone wants to keep his component for himself somewhere in Github
to be found, can do it, but not update it anymore in lazarus-crr
should be removed.