Re: [Lazarus] AV in TGtk2WSCustomListBox.SetItemIndex
On Saturday 23 January 2010 04:03, Flávio Etrusco wrote: Hello, is anybody else experiencing an AV with TListBox on Ubuntu (gtk2), e.g. when trying opening the Add Unit/Requirement in the project inspector. The AV is raised by calls to gtk_tree_row_reference_valid (gtk_tree_row_reference_free would raise it too) in the ClearCursor subfunction of TGtk2WSCustomListBox.SetItemIndex (lcl/interfaces/gtk2/gtk2wsstdctrls.pp, line 483). It seems that PGtkTreeView(Widget)^.priv^.cursor is invalid (its value is 0xd8f0). Why don't you fill up an mantis issue ? zeljko -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] IDEIntf: Extract PropHooks from PropEdits unit
On Sat, 23 Jan 2010 01:32:05 +1000 Alexander Klenin kle...@gmail.com wrote: On Sat, Jan 23, 2010 at 00:59, Paul Ishenin webpi...@mail.ru wrote: 22.01.2010 21:07, Alexander Klenin wrote: At the current stage, I simply re-export TPropertyEditHook from propedits unit. Theoretically, after updating all dependent units this re-export might be removed, but there is no pressure -- it is only a single line and can be postponed indefinitely. Refactoring should not be the final goal. Refactoring usually used when something fit bad into the existing design. That is one possible reason. The other reason (which was the actual reason I undertook the refactoring) is that, at least for me, there is a certain threshold of ugliness after which I am just unable to unravel the current design and understand it enough to make a needed change, even if the design itself can accommodate it. This property is often called 'unmaintainability'. Of course, the threshold is different for different people, but I consider 6000 LOC in a singe unit to be far beyond any reasonable level. General speaking: Readability alone is a bad reason to break compatibility. Readability can be improved by comments, class-trees, examples, tutorials and include files. [...] Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Lazarus is invisible?
Hi everyone I've been using delphi 4, 5, 6 for years, and only recently discovered Lazarus. I will definitely use it. It seems to me that this is a major package, but it has (to my mind) zero prominence on the web. I may have missed something, but here is why: 1. There is no mention of it on the Free Pascal page 2. When one eventually finds a link to it, this link goes straight to a forum page. (Which says to me: 'you need to be an expert to be here' ) 3. No obvious 'getting started' example. 4. No info on how many users, downloads, use on projects (i.e no Advert) Surely Lazarus is one of the major tools of Free Pascal? Personally - just to be controversial - I would say that Free Pascal is a major part of the Lazarus project, in the sense that a great IDE, with possibility of multi-platform execution, and the hiding-away of much of the GUI coding, is the big deal. (By 'hiding-away', I'm referring to the clunky connections to GUI toolkits that one sees in Python and Ruby.) Best wishes (you have my support) Mike Parr _ Got a cool Hotmail story? Tell us now http://clk.atdmt.com/UKM/go/195013117/direct/01/-- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] IDEIntf: Extract PropHooks from PropEdits unit
On Sat, Jan 23, 2010 at 20:06, Mattias Gaertner nc-gaert...@netcologne.de wrote: That is one possible reason. The other reason (which was the actual reason I undertook the refactoring) is that, at least for me, there is a certain threshold of ugliness after which I am just unable to unravel the current design and understand it enough to make a needed change, even if the design itself can accommodate it. This property is often called 'unmaintainability'. Of course, the threshold is different for different people, but I consider 6000 LOC in a singe unit to be far beyond any reasonable level. General speaking: Readability alone is a bad reason to break compatibility. Readability can be improved by comments, class-trees, examples, tutorials and include files. Readability is just one factor contributing to maintainability. PropEdits code is actually rather good in that aspect. But to understand the design proper modularity is very important too. PropEdits is a tangled web of interdependent classes, and it is hard (to me, almost impossible) to have a clear mental picture of all these dependencies. Such a picture is required to understand and fix the bugs and to develop new features. I wanted to improve the modularity by separating code into a layered units and breaking circular dependencies. Anyway, this is not a great problem, so I give up. I will instead submit bugs to Mantis in the hope that some person smarter than me will be able to fix them ;-) P.S. What is the class-tree? -- Alexander S. Klenin -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Errors in some units from svn
Yes, I think you are right. I've individually updated the folders. Now, I'll update the lazarus root folder. /1/23 Alexander Klenin kle...@gmail.com 2010/1/23 Guionardo Furlan guiona...@gmail.com: Hello I've updated the sources of lazarus via svn and when I compile the IDE, get some errors: On c:\lazarus\components\synedit\synpropertyeditobjectlist.pas, the PropEditUtils is not listed on the uses clauses. The GetLookupRootForComponent function is needed by. Ok, just add PropEditUtils to the uses That's pretty strange because PropEditUtils is already present in the uses clause. May be you have updated only part of your working copy? This happens sometimes with SVN. -- Alexander S. Klenin -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Timeo hominem unius libri Cogito ergo sum - Carpe diem []s Guionardo Furlan http://guionardo.blogspot.com http://www.guionardofurlan.com.br -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Errors in some units from svn
Full update via SVN (23535). The error again C:\lazarus\ide\w32versioninfo.pas(363,44) Error: Incompatible type for arg no. 1: Got AnsiString, expected TAbstractResource 2010/1/23 Guionardo Furlan guiona...@gmail.com Yes, I think you are right. I've individually updated the folders. Now, I'll update the lazarus root folder. /1/23 Alexander Klenin kle...@gmail.com 2010/1/23 Guionardo Furlan guiona...@gmail.com: Hello I've updated the sources of lazarus via svn and when I compile the IDE, get some errors: On c:\lazarus\components\synedit\synpropertyeditobjectlist.pas, the PropEditUtils is not listed on the uses clauses. The GetLookupRootForComponent function is needed by. Ok, just add PropEditUtils to the uses That's pretty strange because PropEditUtils is already present in the uses clause. May be you have updated only part of your working copy? This happens sometimes with SVN. -- Alexander S. Klenin -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Timeo hominem unius libri Cogito ergo sum - Carpe diem []s Guionardo Furlan http://guionardo.blogspot.com http://www.guionardofurlan.com.br -- Timeo hominem unius libri Cogito ergo sum - Carpe diem []s Guionardo Furlan http://guionardo.blogspot.com http://www.guionardofurlan.com.br -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Cross platform 'open file with default program'
Does someone implemented a function to open the system default app associated of a given file type? Similar to OpenURL? Luiz -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Improving IDE Internationalization
Well, for a few days now i'm trying to acomplish this: http://wiki.lazarus.freepascal.org/IDE_Development#Translated_compiler_messages I already have a new TOutputFilter working, but unfortunatly just tested on win32. I will need some help to test this in other plataforms. Some problems appeared during this modification that i want to share. Any comments and suggestions are welcomed. - Using TBaseCompilerOptions.CompilerMessages to locate messages by its number. Problems: - Loading Errors and Fatal errors from compiler message file (errore.msg). Needed to change CompilerOptions.pp to load 'E' and 'F' types. - The default message table is a problem. It is hardcoded and it need the types 'E' and 'F' of messages. The compiler messages file is growing, so its a matter to update this code every time we have new compiler messages. IMHO, the default messages should be loaded from disk (errore.msg). - Now on CompilerOptions must be valid to TOutputFilter work. - The Project Options-Compiler Options-Messages should be tunned to not present 'E' and 'F' types. - Compiler.pp should include -vq option in cmdline. Other problem is regarding to build lazarus from IDE. Since BuildLazDialog uses external tools to create Lazarus, no CompilerOptions is assigned at that time. So TOutputFilter not work properly. As a work around, its displaying all messages. At this point, i didn´t touched the QuickFixItems. If anyone wants the code to test or evaluate, please just ask and I´ll send it. Of course, if anyone has more ideas in this subject, feel free to argue. Marcelo. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] AV in TGtk2WSCustomListBox.SetItemIndex
On Sat, Jan 23, 2010 at 5:09 AM, zeljko zel...@holobit.net wrote: On Saturday 23 January 2010 04:03, Flávio Etrusco wrote: Hello, is anybody else experiencing an AV with TListBox on Ubuntu (gtk2), e.g. when trying opening the Add Unit/Requirement in the project inspector. The AV is raised by calls to gtk_tree_row_reference_valid (gtk_tree_row_reference_free would raise it too) in the ClearCursor subfunction of TGtk2WSCustomListBox.SetItemIndex (lcl/interfaces/gtk2/gtk2wsstdctrls.pp, line 483). It seems that PGtkTreeView(Widget)^.priv^.cursor is invalid (its value is 0xd8f0). Why don't you fill up an mantis issue ? zeljko I'll do it, as soon as somebody say they can reproduce it ;) The bug just seemed too obvious/easy to trigger for it to go unnoticed so I thought it had to be something on my end. Best regards, Flávio -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Improving IDE Internationalization
Hello Marcelo, The current (svn version) of Lazarus, is working as described. Except for messages are not loaded from errore.msg file initially. The location of errore.msg may vary from platform to platform, depending on location of FPC. But IDE's compiler messages can be configured to load the messages file by default, from a specified location. On Sun, Jan 24, 2010 at 4:47 AM, Marcelo B de Paula mar...@terra.com.br wrote: Needed to change CompilerOptions.pp to load 'E' and 'F' types. It's not necessary to load E/F messages at all. Because it should NOT be possible to switch them off, as you say it yourself: - The Project Options-Compiler Options-Messages should be tunned to not present 'E' and 'F' types. The only tweak required here was to load translated error, fatal error strings, so the OutputFilter could detect the type of the error and shown the proper Icon. It has been implemented a few months ago. thanks, dmitry -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus is invisible?
2010/1/23 Mike Parr mikep...@live.com: It seems to me that this is a major package, but it has (to my mind) zero prominence on the web. Being a Delphi user too, I used to mention Lazarus and Free Pascal to people in the Embarcadero newsgroups that complain about things like delphi doesn't have cross platfrom support, kylix is dead, so what do we us now etc... But apparently I pissed of way to many people doing that, and my time for reading those newsgroups is very limited lately (having a family and other responsibilities). 2. When one eventually finds a link to it, this link goes straight to a forum page. This has been bugging me for age too. The link from the Free Pascal page should take users to the Lazarus wiki site instead. The standard Lazarus Website is definitely not a product page, but just a location for the forums. Which I also think should be closed and users should rather merge with the mailing list discussions. Having to many options of where to ask questions is also not a good thing. 4. No info on how many users, downloads, use on projects (i.e no Advert) Download count is managed and found on Lazarus SourceForge project page. use on projects, documentation, hints, etc are all on the Wiki page. Not even the Lazarus LCL class documentation or the IDE Help/Documentation is available on the Lazarus website. So official Lazarus website should rather be the Wiki. -- 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] CSV parser class
2010/1/22 Michael Van Canneyt mich...@freepascal.org: Have you seen the built-in CSV support in TStrings? Or the TSDFDataset class in sdfdata ? Or the two different implementations in tiOPF project. :) Anyway, to get your code in the CCR, I normally email Vincent the code in private. Thought I must say, I don't really see the point of the CCR. Many of those projects need to be maintained, and just having releases without revision control systems is pretty stupid in this day and age. One good example of this is DCPCrypt. I'm now unofficially maintaining DCPCrypt because we use it in our company software, but I simply don't have the time to keep making releases after every little change for the CCR site. I even get patches emailed to me in private. So what's on the CCR site is 99% of the time outdated. Each of those downloadable components/projects should really have each their own repository. I'm considering moving DCPCrypt to GitHub - that way at least everybody will be able to get the lastest changes as they happen. GitHub also allows you to download a tarball of the latest revisions of each branch without the need to explicitly create releases or having Git installed on your system. -- 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] CSV parser class
2010/1/23 Alexander Klenin kle...@gmail.com: Have you seen the built-in CSV support in TStrings? That's interesting. Where is it? I am unable to find it it Classes unit. I also didn't know about this. -- 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] Cross platform 'open file with default program'
2010/1/24 Luiz Americo Pereira Camara luiz...@oi.com.br: Does someone implemented a function to open the system default app associated of a given file type? Similar to OpenURL? Under Linux with distros supporting the freedesktop.org standards you can execute the 'xdg-open' command. This will use the mime-type and the each users preference on that system. This works for URL's too. If the distro doesn't support xdg, I recommend you email the maintainers of that distor. Also xdg tools are downloadable from freedesktop.org, is small and user installable (without root access). Anyway, in my projects I have abstracted various platforms into a single command, similar to OpenURL. Our projects only need to support Linux and Windows though, so I don't know the solutions for other platforms. -- 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