Re: [Lazarus] How do i get help in lazarus..?
On Wed, 30 Sep 2009 09:55:50 +0700 Dians diansopand...@gmail.com wrote: dear all, How do i get help file, if i got some code error which in lazarus doesn't contain help file... Can you be more specific? What code error? There are some hints here: http://wiki.lazarus.freepascal.org/Creating_IDE_Help The lhelp package is not yet mentioned on this page. Can someone add a few words about it? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How do i get help in lazarus..?
2009/9/30 Dians diansopand...@gmail.com: i mean , when i write code in lazarus, i got some error, anythings code error so i look help file like delphi i just press F1, there is a documention about the syntaks which show an error , what kind of true syntaks If you have Kylix around, you can integrate language reference help with Lazarus IDE. If not, then you need to download the prog.pdf, ref.pdf files from the Free Pascal website and manually search for syntax help. I know this sucks. PDF's are great if you plan to print the documents, but they are definitely not the ideal help format for context sensitive application help. PS: I'm busy working on a help system and new help viewer application for fpGUI Toolkit. I'm planning on implementing the FPC ref and prog documentation in the new help format. This should also allow the new help viewer to be integrated with Lazarus IDE, even though it's not a LCL based application. Supported platforms will be whatever fpGUI supports: currently Linux, Windows and *BSD. I'll keep you guys updated. Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How do i get help in lazarus..?
On Wed, 30 Sep 2009 14:02:15 +0700 Dians diansopand...@gmail.com wrote: i mean , when i write code in lazarus, i got some error, anythings code error so i look help file like delphi i just press F1, there is a documention about the syntaks which show an error , what kind of true syntaks There is a help in the popup menu of the messages window. It shows the hint of the FPC errore.msg file. For example: Error: Illegal expression It will show: This can occur under many circumstances. Usually when trying to evaluate constant expressions. AFAIK there is no list of links to the FPC docs yet. Maybe with the new lhelp and the new kwd files something like this can be achieved. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Mac: writing a CFPlugin with Lazarus
Hello Dmitry, thanks very much for the tips! That should get me working. If I succeed, I will make a sample project in Pascal available. Cheers, Tobias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Mac: writing a CFPlugin with Lazarus
On Wed, Sep 30, 2009 at 11:43 AM, Tobias Giesen tobias_subscri...@tgtools.com wrote: thanks very much for the tips! That should get me working. If I succeed, I will make a sample project in Pascal available. May be it's even better to make a OSX Plugin project template as well. thanks, dmitry -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Debugging error in Lazarus
Graeme Geldenhuys wrote: I'm trying to do debugging in the IDE again - my normal process is outputing data to a log file. Anyway, I am getting the following error evaluation error. Is this something I'm not doing right, or simply one of the many GDB+Pascal limitation. Expression evaluation is not implement by lazarus yet. SizeOf(something) is an expression (moreover a function call). Best regards, Paul Ishenin. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Debugging and Watch property Styles
Hi, Why can I not set or change the property Styles of a watch item? See attached image. All the styles are disable and 'default' seems to be set. What I am trying to watch is a record structure, but I can't simply watch pTOCEntry^ and set the style to record. So the workaround is to dereference each property - unfortunaly some of the record structures are huge, so it's not feasable (waist of time). In the attached screenshot I am trying to add a new Watch entry and would like to have Style set to Record/Structure, but I can't. I'm using latest fixes branch v0.9.28 with GTK2 or Ubuntu 9.04 (64bit). Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ attachment: Screenshot.png-- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Debugging error in Lazarus
2009/9/30 Paul Ishenin i...@kmiac.ru: Expression evaluation is not implement by lazarus yet. SizeOf(something) is an expression (moreover a function call). Expression evaluation seems to work sometimes, but most of the times not. Example: pTOCEntry^.Length 1) if I mouse over Length I get out of scope error 2) If I select pTOCEntry^.Length and then mouse over selection I get a answer, same as what is shown in the Watch window. As for the expression SizeOf(...) being a function call... that is allowed in Delphi and Kylix. Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Debugging error in Lazarus
On Wed, 30 Sep 2009 16:24:14 +0800 Paul Ishenin i...@kmiac.ru wrote: Graeme Geldenhuys wrote: I'm trying to do debugging in the IDE again - my normal process is outputing data to a log file. Anyway, I am getting the following error evaluation error. Is this something I'm not doing right, or simply one of the many GDB+Pascal limitation. Expression evaluation is not implement by lazarus yet. SizeOf(something) is an expression (moreover a function call). SizeOf is computed at compile time to a constant. It is not a function. I can write a function that asks the codetools for every identifier in an expression. Then the debugger can try to evaluate it. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Error while debugging: No symbol in current context
Hi, I just can't seem to debug anything inside the Lazarus IDE. Maybe my computer just doesn't like me or something. :-( See attached screenshot. Slots is a local variable which is a record structure. I can't seem to get any debug information about the fields in that record, using Lazarus IDE. Does anybody actually debug code inside the Lazarus IDE? Or do you all use external debugging tools or log files? I seem to get the feeling that debugging is the single biggest feature missing from the Lazarus IDE. Unfortunately debuging is a vital part of any IDE. Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ attachment: Screenshot.png-- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Debugging and Watch property Styles
Graeme Geldenhuys wrote: Hi, Why can I not set or change the property Styles of a watch item? Since it is not implemented. I created the basics and hoped that some users would provide patches to complete it. Marc -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Debugging error in Lazarus
Graeme Geldenhuys wrote: As for the expression SizeOf(...) being a function call... that is allowed in Delphi and Kylix. For the .28 release I started some expression parsing, but disabled it since gdb couldn't provide me all te info I needed (pchar and string were reported as the same type) With this parsing it is possible to handle buildin functions like sizeof() Marc -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Debugging and Watch property Styles
2009/9/30 Marc Weustink marc.weust...@cuperus.nl: Since it is not implemented. I created the basics and hoped that some users would provide patches to complete it. Ah, I didn't know that. I simply thought some condition wasn't met, hence the options got disabled at runtime by the IDE. Tip: Maybe tooltips should be added over such cases in the IDE - saying not implemented yet. Otherwise users (including myself) will not know why the controls are disabled. Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Error while debugging: No symbol in current context
Graeme Geldenhuys wrote: Hi, I just can't seem to debug anything inside the Lazarus IDE. Maybe my computer just doesn't like me or something. :-( See attached screenshot. Slots is a local variable which is a record structure. I can't seem to get any debug information about the fields in that record, using Lazarus IDE. Does anybody actually debug code inside the Lazarus IDE? Or do you all use external debugging tools or log files? I seem to get the feeling that debugging is the single biggest feature missing from the Lazarus IDE. Unfortunately debuging is a vital part of any IDE. Yes I do, a lot. And yes painfully aware of the limitations. Well at least I anyway never used evaluation through hint, I always use watches window. Lot's depends on the version of FPC, and the version of gdb you have. I have in the past assembled workarounds, and put them in FAQ ( http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips / reachable via the FAQ ) Another thing is that sometimes all watches start returning an error, in which case you must remove all of them, and add them again, and they will work. Not sure what gets stuck there... Best Regards Martin -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] qt45 lclwebkit2
Hello, i have compiled lazarus r 21928 with qt45 and bindings libqt4intf v1.72. The demo lclwebkit2 from the homepage of libqt4intf gives 10 errors, what is going wrong? settingsdlgu.pas(45,5) Warning: Destructor should be public settingsdlgu.pas(44,17) Warning: An inherited method is hidden by constructor TSettingsDlg.Create(TComponent); settingsdlgu.pas(33,46) Hint: Parameter CloseAction not used main.pas(79,17) Warning: An inherited method is hidden by constructor TWebPanel.Create(TWinControl, QNetworkAccessManagerH, TEdit, TProgressBar); main.pas(292,99) Error: Incompatible type for arg no. 2: Got TMethod, expected procedure variable type of procedure of object;CDecl qt45.pas(622,13) Hint: Found declaration: QObject_hook_hook_destroyed(QObject_hookH, QObject_destroyed_Event); CDecl; main.pas(305,51) Error: Incompatible type for arg no. 2: Got TMethod, expected procedure variable type of procedure(QUrlH) of object;CDecl qt45.pas(13497,11) Hint: Found declaration: QWebView_hook_hook_urlChanged(QWebView_hookH, QWebView_urlChanged_Event); CDecl; main.pas(308,52) Error: Incompatible type for arg no. 2: Got TMethod, expected procedure variable type of procedure of object;CDecl ...and much more. Regards Th. Moritz -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Debugging and Watch property Styles
Graeme Geldenhuys wrote: 2009/9/30 Marc Weustink marc.weust...@cuperus.nl: Since it is not implemented. I created the basics and hoped that some users would provide patches to complete it. Ah, I didn't know that. I simply thought some condition wasn't met, hence the options got disabled at runtime by the IDE. Tip: Maybe tooltips should be added over such cases in the IDE - saying not implemented yet. Otherwise users (including myself) will not know why the controls are disabled. At that time there were no tooltips ;-) Marc -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] dejavu [Re: Error while debugging: No symbol in current context]
I had the feeling I had a dejavu. Please, before this ends up in a long discussion again, a lot was already mentioned earlier. See links below. http://lists.lazarus.freepascal.org/pipermail/lazarus/2008-October/039225.html http://bugs.freepascal.org/view.php?id=12522 and of course: google Best Regards Martin Graeme Geldenhuys wrote: Hi, I just can't seem to debug anything inside the Lazarus IDE. Maybe my computer just doesn't like me or something. :-( See attached screenshot. Slots is a local variable which is a record structure. I can't seem to get any debug information about the fields in that record, using Lazarus IDE. Does anybody actually debug code inside the Lazarus IDE? Or do you all use external debugging tools or log files? I seem to get the feeling that debugging is the single biggest feature missing from the Lazarus IDE. Unfortunately debuging is a vital part of any IDE. Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] dejavu [Re: Error while debugging: No symbol in current context]
2009/9/30 Martin laza...@mfriebe.de: I had the feeling I had a dejavu. Same here, and found the same link via google. :-) Sorry for creating this thread again. Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] exists card game library?
On Wed, 23 Sep 2009 19:46:19 +0200, Marco van de Voort wrote about Re: [Lazarus] exists card game library?: On Wed, Sep 23, 2009 at 04:53:30PM +0100, David W Noon wrote: To do this, I used the GMP (Gnu Multiple Precision) library. Since I do not [yet] have any Pascal bindings for this library, my test code is written in C. However, there are some arbitrary precision packages in the contributions area of the FPC Web site, any of which could be a viable alternative to GMP. An initial GMP binding was committed to FPC on sept 7th. I assume it would also compile with older (2.2) versions of FPC. Hi Marco, I have installed 2.5.1 from a source snapshot and the GMP bindings work just fine. I tried compiling the unit with a 2.2.4 compiler; while the unit itself compiled, the program using the unit failed to compile with error messages like impossible operator overload. As a result, I will stick to using the 2.5.1 compiler. -- Regards, Dave [RLU #314465] === david.w.n...@ntlworld.com (David W Noon) === -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Synapse stop working
2009/9/30 Jürgen Hestermann juergen.hesterm...@gmx.de German Gentile schrieb: I bet if you are using an old 2.3.1 version or don't use unit ssfpc you will be ok. Well, I don't use this ssfpc unit directly and I don't know under what circumstances the synapse routines do it. I only use Synapse for Telnet logon and it works (so far). Wich fpc svn version are you using? SVN revision 21580, but older versions worked too. I can confirm Lukas fixed it and synapse svn rev 102 works fine with fpc 2.5.2 under linux 64 bits. -- German Pablo Gentile CTO - Dpto. de Desarrollo y Tecnología. PetroBox Internacional Fabricantes de la línea de productos PetroBox y PetroTruck http://www.petrobox.net german.gent...@petrobox.net (Oficinas Colombia) (57) 5-4222465 (57) 3017258189 (Bolivia) (591) 75373000 (HQ Argentina) (5411) 4798-6956 (54911) 3838-4749 MSNgentileger...@hotmail.com Google Talkgermanpablogent...@gmail.com skype(VoIP)germanpablogentile -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] A broken dummy package was created
Hello Lazarus mailing list! I have updated my Lazarus to rev.21928 and I receive this error message with this build: The package rotursoft is installed, but no valid package (.lpk) was found. A broken dummy package was created. I have tried to clean up the content of ~/.lazarus, but I get it always. What can I do? Could it be related to older fpc? Mac OS X 10.5.8 Intel Lazarus rev. 21928 Freepascal rev. 13269 -- Best regards, TRoland http://www.rotursoft.sk http://exekutor.rotursoft.sk -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Publishing TBufDataset
On Tue, 2009-09-29 at 08:21 +0200, Zlatko Matić wrote: Hello, Recently I replaced MemDataset with BufDataset, because it has Locate and filters implemented. So, I'm wondering why TBufDataset is not published as a component under DataAccess pallette? It wasn't very stable for in-memory-use. I think it only works really ok with fpc 2.3.1 and higher. I think it would be good to do, since it is good component for working with in-memory data, something like Client Dataset in Delphi. Could someone do it for Lazarus 0.9.29? Would it be hard to publish it for myself? Just open the lazarus-sqldb package and see how it's done for the other datasets like the TSQLQuery. It's a one-line fix. What should I do in order to be able to use it in design time, similar to MemDataset? I have never created a component, so, please, some tips... Look here: http://wiki.lazarus.freepascal.org/How_To_Write_Lazarus_Component Joost -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] A broken dummy package was created
Zitat von Roland Turcan k...@rotursoft.sk: Hello Lazarus mailing list! I have updated my Lazarus to rev.21928 and I receive this error message with this build: The package rotursoft is installed, but no valid package (.lpk) was found. A broken dummy package was created. It means, you started a lazarus, which has an installed package named rotursoft. The IDE failed to find the rotursoft.lpk. If rotursoft.lpk still exists, open it once via the IDE. If you deleted rotursoft.lpk then you should uninstall it (Packages / Configure installed packages). If you already uninstalled the package, then you started the old lazarus. What did you do? I have tried to clean up the content of ~/.lazarus, but I get it always. What can I do? Could it be related to older fpc? Unlikely. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Publishing TBufDataset
Zitat von Joost van der Sluis jo...@cnoc.nl: On Tue, 2009-09-29 at 08:21 +0200, Zlatko Matić wrote: Hello, Recently I replaced MemDataset with BufDataset, because it has Locate and filters implemented. So, I'm wondering why TBufDataset is not published as a component under DataAccess pallette? It wasn't very stable for in-memory-use. I think it only works really ok with fpc 2.3.1 and higher. I think it would be good to do, since it is good component for working with in-memory data, something like Client Dataset in Delphi. Could someone do it for Lazarus 0.9.29? Would it be hard to publish it for myself? Just open the lazarus-sqldb package and see how it's done for the other datasets like the TSQLQuery. It's a one-line fix. What should I do in order to be able to use it in design time, similar to MemDataset? I have never created a component, so, please, some tips... Look here: http://wiki.lazarus.freepascal.org/How_To_Write_Lazarus_Component The page contains bugs and makes things more complicated than needed. It does not even contain links to the older pages describing packages. See here for creating and installing a new component: http://wiki.lazarus.freepascal.org/Lazarus_Packages#Quick_Start I will try to fix a few things. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] wiki index of specific language
Felipe Monteiro de Carvalho ha scritto: Categories are added manually in each page. It seams someone created a pseudo-script to add the right category, if you see the italian pages they all add this template: {{AutoCategory}} They add it in the beginning of the page, usually categories in wikipedia are put in the end of the page. You will need to edit this template to add your language: http://wiki.lazarus.freepascal.org/Template:AutoCategory And then put it in your pages. You can put {{AutoCategory}} everywhere in the page, at the top or at the bottom... are the same for category. I've made {{Translate}} for add menu of translated page... You can see it at work here: http://wiki.freepascal.org/Special:Whatlinkshere/Template:Translate Cri. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] qt45 lclwebkit2
On Wednesday 30 September 2009 12:43:32 Thomas Moritz wrote: The demo lclwebkit2 from the homepage of libqt4intf gives 10 errors, what is going wrong? Version 1.72 of the FreePascal Qt4 Binding improved Qt Signal hooking (more type safe). When hooking a pascal method to a Qt signal, the method type is checked now. The LCL/Qt WebKit demo was updated together with the binding, you need to download the new version of the demo again. To accommodate for windows users, it is a zip file now. The LCL/Qt WebKit demo is not meant to be full blown browser, it just provides a demonstration of cookie saving,tabbed browsing, proxy usage,server authentication,flash,printing, ... http://users.telenet.be/Jan.Van.hijfte/qtforfpc/fpcqt4.html kind regards, Den Jean -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] qt45 lclwebkit2
On Wednesday 30 September 2009 18:49, Den Jean wrote: On Wednesday 30 September 2009 12:43:32 Thomas Moritz wrote: The demo lclwebkit2 from the homepage of libqt4intf gives 10 errors, what is going wrong? Version 1.72 of the FreePascal Qt4 Binding improved Qt Signal hooking (more type safe). When hooking a pascal method to a Qt signal, the method type is checked now. And I must tell you that some strange ide crashes (linux with pretty old Xorg 6.8.2) which happens before 1.72 just dissapeared with new hooks (yes, I can reproduce that each time before 1.72 , now I cannot - so it seem to be nice thing with new signal hooking) : zeljko -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Error while debugging: No symbol in current context
Hi Graeme, The debugger is not usable as it does not have been in the focus to be developed. Object property values cannot be seen either (dwarf or something external program used does not support properties). There were questions about the debugger functions in the past 2 years, same as yours both on the Lazarus forums and the mailing lists. If I remember correctly the answer was something like it is not priority until after 1.0 . IMO it is one of the most important aspects of RAD development to have a fully working IDE debugger. Currently in Lazarus the debugger is not usable for serious development because some of the most basic requirements are missing. Not to mention a CPU window, etc. It seems a new debugger should be developed that does not depend on non compatible external programs, but there were no resources to do it in the past years. AB Graeme Geldenhuys wrote: Hi, I just can't seem to debug anything inside the Lazarus IDE. Maybe my computer just doesn't like me or something. :-( See attached screenshot. Slots is a local variable which is a record structure. I can't seem to get any debug information about the fields in that record, using Lazarus IDE. Does anybody actually debug code inside the Lazarus IDE? Or do you all use external debugging tools or log files? I seem to get the feeling that debugging is the single biggest feature missing from the Lazarus IDE. Unfortunately debuging is a vital part of any IDE. Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] qt45 lclwebkit2
And I must tell you that some strange ide crashes (linux with pretty old Xorg 6.8.2) which happens before 1.72 just dissapeared with new hooks :-[ as already mentioned on the LCL/Qt ML I also fixed a bug (since V1.71) The type safe calling should not change anything to existing correct code. It just verifies at compile time that the signature of the provided Pascal Method is of the correct type. Hooking a signal of a Qt Object X to a Pascal Object Method, works by creating a hooking object HOOK written in Qt/C++, that stores the address of the Pascal Object Method and the address/handle of the Qt Object X. The HOOK connects to the signal of X and calls the Pascal method when the signal occurs. In the destructor of the hook, I disconnected from the Qt Object X. But in the mean time the stored handle to X could have become invalid, if the Qt Object X had been destroyed. Now the HOOK also connects to the destroyed signal of X, and invalidates the handle to it, upon reception of that destroyed signal. (yes, I can reproduce that each time before 1.72 , now I cannot - so it seem to be nice thing with new signal hooking) : If you can reproduce it easily, you could enable the debugging printfs I left in qobject_hook.h and verify it is related to this bug fix. http://lists.lazarus.freepascal.org/pipermail/qt/2009-September/001272.html regards, Den Jean -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] debugger feature request created
Hi, It seems the other debugger thread was blocked - or Gmail is on the frits again. :-/ Anyway, I added a feature request in the wiki for a working / custom written debugger. http://wiki.freepascal.org/Feature_Ideas#Integrated_and_Working_Debugger If anybody has comments or ideas, please add them. I don't know where is the best place for such communications - here or in the wiki page, or wiki Talk pages (I have never used the latter yet). Maybe we can get a renewed interest in the lazarus/debugger/fpdebug/ project. My knowledge of compiler or debugger internals are zero, so don't know how much I can contribute. But if possible, I will try. A working debugger will benefit everybody! I really think a working integrated debugger must be one of the high priorities for the IDE - more that say new IDE eye-candy. :-) Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] debugger feature request created
I still thin you exaggerate Debugging from inside the IDE is near impossible. = it is not very comfortable though. Some of the problems are not gdb specific, some a solved. * CPU window = available in 0928 * Record.field = Not (always) a gdb problem. Never mind which debugger you use, no debugger can guess what the context of your mouse pointer is. If the IDE only passes the word-under-caret for the hint evaluation, then no debugger will know what field means. If the watches window can show record.field then gdb can do it, but the IDE must be fixed. * properties = discussed a thousand times. With FPC trunc and dwarf debug info, some properties actually do return a result in GDB Properties that read from a function, are the same as a function. For those who really want to run the function, it comes down to function calling from gdb, rather than being property specific Martin Graeme Geldenhuys wrote: Hi, It seems the other debugger thread was blocked - or Gmail is on the frits again. :-/ Anyway, I added a feature request in the wiki for a working / custom written debugger. http://wiki.freepascal.org/Feature_Ideas#Integrated_and_Working_Debugger If anybody has comments or ideas, please add them. I don't know where is the best place for such communications - here or in the wiki page, or wiki Talk pages (I have never used the latter yet). Maybe we can get a renewed interest in the lazarus/debugger/fpdebug/ project. My knowledge of compiler or debugger internals are zero, so don't know how much I can contribute. But if possible, I will try. A working debugger will benefit everybody! I really think a working integrated debugger must be one of the high priorities for the IDE - more that say new IDE eye-candy. :-) Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] debugger feature request created
2009/10/1 Martin laza...@mfriebe.de: I still thin you exaggerate Debugging from inside the IDE is near impossible. = it is not very comfortable though. Well, then you clearly know which loops to jump through in Lazarus. Just about everything I try and debug in Lazarus doesn't work - and I try and use Lazarus debugging like I used Delphi or Kylix debugging. Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] debugger feature request created
working debugger will benefit everybody! I really think a working integrated debugger must be one of the high priorities for the IDE - more that say new IDE eye-candy. :-) Like ABorka told me in a private email. Once Embarcadero brings out 64bit support and cross-platform compiler (latter is what they are working on now), then Lazarus will loose a large appeal from Delphi developers. At the moment FPC and Lazarus offers features Delphi doesn't have, but not the critical features which will allow them to switch to Lazarus permanently. Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] package with LazIDEIntf and propedits probleme
On Wed, 30 Sep 2009 17:56:17 +0200 wile64 wil...@gmail.com wrote: Don't work, don't work, don't work !!! After full test, I am desperate to make it work :( I have some another message like objectinspector.pp(41,18) Fatal: Can't find unit ObjectInspector used by EnvironmentOpts If someone can test with the package manager, create a package and then add a new component (no matter the ancestor) and add uses LazIDEIntf, propedits; into unit *And try to install package.* Create new package. Save it. Add new comonent. Add new requirement IDEIntf. Add uses LazIDEIntf, propedits. Install package. Works here. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] debugger feature request created
Graeme Geldenhuys wrote: working debugger will benefit everybody! I really think a working integrated debugger must be one of the high priorities for the IDE - more that say new IDE eye-candy. :-) Like ABorka told me in a private email. Once Embarcadero brings out 64bit support and cross-platform compiler (latter is what they are working on now), then Lazarus will loose a large appeal from Delphi developers. At the moment FPC and Lazarus offers features Delphi doesn't have, but not the critical features which will allow them to switch to Lazarus permanently. Well this is because no one is getting paid for working on Lazarus. So manpower is an issue. On the other hand it means no one depends on people using it. If they want to use it, that's great. If they don't no problem at all (because no one is losing there job/salary/means-of living). Anyway, lots of companies just go for delphi, because there still is an implicit mistrust towards open source. They feel more secure if they have bought a product, and have the feeling they got some warranties towards it's usability or availability or whatever. Anyway no one has denied that features are missing. As for debugging there is a dis-consent about the wording or extend that those missing feature have (at least between me and you (Graeme). But not about the fact that it would be nice (essential for some) to have. But what can be done? There are limited amount of people to do the work on Lazarus. So it takes time. As for making it a priority, anyone is welcome to supply patches. If not, it's a gift horse, so you know what not to do ; Best Regards Martin -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Error while debugging: No symbol in current context
ABorka wrote: Hi Graeme, The debugger is not usable as it does not have been in the focus to be developed. Object property values cannot be seen either (dwarf or something external program used does not support properties). There were questions about the debugger functions in the past 2 years, same as yours both on the Lazarus forums and the mailing lists. If I remember correctly the answer was something like it is not priority until after 1.0 . IMO it is one of the most important aspects of RAD development to have a fully working IDE debugger. Currently in Lazarus the debugger is not usable for serious development because some of the most basic requirements are missing. Not to mention a CPU window, etc. It seems a new debugger should be developed that does not depend on non compatible external programs, but there were no resources to do it in the past years. AB Graeme Geldenhuys wrote: Hi, I just can't seem to debug anything inside the Lazarus IDE. Maybe my computer just doesn't like me or something. :-( See attached screenshot. Slots is a local variable which is a record structure. I can't seem to get any debug information about the fields in that record, using Lazarus IDE. Does anybody actually debug code inside the Lazarus IDE? Or do you all use external debugging tools or log files? I seem to get the feeling that debugging is the single biggest feature missing from the Lazarus IDE. Unfortunately debuging is a vital part of any IDE. without further digging to verify further i must also agree... i've recently had many questions about multiplatform pascal compilers and i have been pointing to fpc/lazarus but 99% have always come back with problems with debugging stuffs... many simply do not know or understand or even care about compiler developments stuffs but are simply old school coders looking for a working compiler for their needs... working compiler includes valid debugging capabilities along with necessary conversion tools to move from such as TP6, TP7, delphi and similar... to be slightly more specific, many of these folk are old school BBS coders... BBS meaning the older DOS type BBS' and their newer windows based cousins... a major need is direct serial port and or FOSSIL access capabilities which have historically been via ASM code with pascal library kits which relieve them from having to know or understand such nuances as to how the code structures are sent to the FOSSIL or serial ports... -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] debugger feature request created
Graeme Geldenhuys wrote: project. My knowledge of compiler or debugger internals are zero, so don't know how much I can contribute. But if possible, I will try. A working debugger will benefit everybody! I really think a working integrated debugger must be one of the high priorities for the IDE - more that say new IDE eye-candy. :-) my comments, thoughts and desires 1000% :) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] debugger feature request created
Graeme Geldenhuys wrote: 2009/10/1 Martin laza...@mfriebe.de: I still thin you exaggerate Debugging from inside the IDE is near impossible. = it is not very comfortable though. Well, then you clearly know which loops to jump through in Lazarus. Just about everything I try and debug in Lazarus doesn't work - and I try and use Lazarus debugging like I used Delphi or Kylix debugging. same for me and my base it TP6 and/or TP/BP7 :? :( not only me but many others old school TP/BP 6/7 coders who are wanting and, in this day in age, needing to convert to a mode modern coding kit ;) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] debugger feature request created
Martin wrote: Graeme Geldenhuys wrote: 2009/10/1 Martin laza...@mfriebe.de: I still thin you exaggerate Debugging from inside the IDE is near impossible. = it is not very comfortable though. Well, then you clearly know which loops to jump through in Lazarus. Just about everything I try and debug in Lazarus doesn't work - and I try and use Lazarus debugging like I used Delphi or Kylix debugging. Well then help extending the wiki page with the loops Like adding tips, how to use (and where not to use) value inspection via hint. (personally I never used this, so I couldn't run into this issue. I dislike having to re-locacte the mouse after every single-step, rather using the watches window. But a matter of taste, so yes for you it is less comfortable. Viewing record structures with a hint is still possible, just hover over the actual name of the variable (the record, not the field), and you see *all* values. Usability depends on the size of the record... Arrays are still an issue. I admit this. With fpc trunc you can get along, if and only if (to many if) you have declared a named type. And if (!) you add the extra pointer dereference. So are nested procedures, and local variables in the outer scope. Only way is to set the current stackframe in the stack window. What where your other issues? FWIW: it is hard for others to be able to ply in the same field when others are creating the field and possibly leaving a few hints here and there as to the methods of how to use said playing field... surely there is some mechanism that can be or already is included such that some real layman's documentation can be pulled out and compiled into a local help resource as well as being included into an online and even wiki help resource format ??? yes, as an old coder who has played with several addon utils that can/will parse certain comment formats of how to use, i fully understand then necessity of the developers of FPC, Lazarus and all additional libraries to write these documentations as they go but this and similar discussions have already appeared and the basic consensus is that while it may be done, if the code to do it isn't there, then oh well, we have to deal with what is there... FWIW2: i agree completely and fully understand all of the above as well as the 3rd party coder's stances... the major thing i see is that FPC/Lazarus could easily become the largest coding platform if more assistance was available from the built in help stuffs... that's first and foremost... secondaryily would be close help and support on a live basis but it is also seen that this would detract from the developers of the compilers, debuggers, and RAD interfaces and their work on implementing the necessary capabilities, bug fixes and features... somewhere in here, some group of layman translators need be done such that the implementator's descriptions of how things really work can be written in layman's terms for the casual pascal coder without the need for them to have an active connection to pull the necessary help info and/or decoding of the ways in which to use the available code functions and routines... i really do hope that this makes sense and doesn't come off as insulting, belittling or antagonistic to those in the know... remember, eventually, these 3rd party weekend coders are/may be a large percentage of the users of this pascal environment... yes, i'd like to see this capability come much sooner than so far later... these days in time, i'm one of the former than the latter which is a major difference than how it was for me some 10+ years ago... -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] package with LazIDEIntf and propedits probleme
Mattias Gaertner wrote: On Wed, 30 Sep 2009 17:56:17 +0200 wile64 wil...@gmail.com wrote: Don't work, don't work, don't work !!! After full test, I am desperate to make it work :( I have some another message like objectinspector.pp(41,18) Fatal: Can't find unit ObjectInspector used by EnvironmentOpts If someone can test with the package manager, create a package and then add a new component (no matter the ancestor) and add uses LazIDEIntf, propedits; into unit *And try to install package.* Works here. why can one not do the following (which is ((would seem to be)) more intuitive)??? Create new package. Add new comonent. Add new requirement IDEIntf. Add uses LazIDEIntf, propedits. Save it. Install package. in other words, why must saving something be the second step before adding or completing the basic steps?? i think i have run into similar while trying to convert delphi stuffs... one procedure says to create a new program, save it, open the existing delphi stuffs, do some sort of conversion, then do delphi unit consersion stuffs and then save... must saving be part of the conversion and before the building and/or compiling??? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] debugger feature request created
Martin wrote: Graeme Geldenhuys wrote: working debugger will benefit everybody! I really think a working integrated debugger must be one of the high priorities for the IDE - more that say new IDE eye-candy. :-) Like ABorka told me in a private email. Once Embarcadero brings out 64bit support and cross-platform compiler (latter is what they are working on now), then Lazarus will loose a large appeal from Delphi developers. At the moment FPC and Lazarus offers features Delphi doesn't have, but not the critical features which will allow them to switch to Lazarus permanently. Well this is because no one is getting paid for working on Lazarus. So manpower is an issue. On the other hand it means no one depends on people using it. If they want to use it, that's great. If they don't no problem at all (because no one is losing there job/salary/means-of living). Anyway, lots of companies just go for delphi, because there still is an implicit mistrust towards open source. They feel more secure if they have bought a product, and have the feeling they got some warranties towards it's usability or availability or whatever. Anyway no one has denied that features are missing. As for debugging there is a dis-consent about the wording or extend that those missing feature have (at least between me and you (Graeme). But not about the fact that it would be nice (essential for some) to have. But what can be done? There are limited amount of people to do the work on Lazarus. So it takes time. As for making it a priority, anyone is welcome to supply patches. If not, it's a gift horse, so you know what not to do ; while i fully agree on the one hand, i also see other OSS projects that do have a commercial/professional side to them whereby they do earn $$$ to pay the commercial side developers... at the same time, those OSS projects do also have a truely OSS side to them whereby the OSS side can be easily handled and supported which also goes to enhance and further the commercial side and visa versa... cannot this also be done with FPC/lazarus?? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] qt45 lclwebkit2
On Wednesday 30 September 2009 19:54, Den Jean wrote: And I must tell you that some strange ide crashes (linux with pretty old Xorg 6.8.2) which happens before 1.72 just dissapeared with new hooks :-[ as already mentioned on the LCL/Qt ML I also fixed a bug (since V1.71) The type safe calling should not change anything to existing correct code. It just verifies at compile time that the signature of the provided Pascal Method is of the correct type. Hooking a signal of a Qt Object X to a Pascal Object Method, works by creating a hooking object HOOK written in Qt/C++, that stores the address of the Pascal Object Method and the address/handle of the Qt Object X. The HOOK connects to the signal of X and calls the Pascal method when the signal occurs. In the destructor of the hook, I disconnected from the Qt Object X. But in the mean time the stored handle to X could have become invalid, if the Qt Object X had been destroyed. Now the HOOK also connects to the destroyed signal of X, and invalidates the handle to it, upon reception of that destroyed signal. (yes, I can reproduce that each time before 1.72 , now I cannot - so it seem to be nice thing with new signal hooking) : If you can reproduce it easily, you could enable the debugging printfs I left in qobject_hook.h and verify it is related to this bug fix. http://lists.lazarus.freepascal.org/pipermail/qt/2009-September/001272.html I think it is but now I cannot revert to older bindings ... no time for such tests new hooks done it's job definitelly. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus