Re: [Lazarus] TToolButton:.Marked
Thanks. Something like an additional boolean Tag, then. -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Package and project file format
+1 for getting rid of unit count and numeric tag suffixes from XML project/package files. They always create trouble for version control. -1 for switching to JSON. Seems radical and unjustified, in my opinion. Denis On 03/03/2018 10:15, Michael Van Canneyt via Lazarus wrote: Hello, The package .lpk andproject .lpi file use the following format : And similarly Is it possible to get rid of the counts ? Reason: if 2 people add files to a package/project, it always creates conflicts when updating from the VCS. And if you're in bad luck, you need to change a lot of items. On the other hand, if you do The chance of conflicts becomes less, and the resolution easier. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Package and project file format
Hi, +1 for this. And really it looks stupid to me to have a different tag for every item like Item1 or Unit1. Dňa 03.03.2018 o 11:15 Michael Van Canneyt via Lazarus napísal(a): Hello, The package .lpk andproject .lpi file use the following format : And similarly Is it possible to get rid of the counts ? Reason: if 2 people add files to a package/project, it always creates conflicts when updating from the VCS. And if you're in bad luck, you need to change a lot of items. On the other hand, if you do The chance of conflicts becomes less, and the resolution easier. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Package and project file format
+1 for switch to JSON! On Sat, 03 Mar 2018 06:11:19 -0500 Michael Van Canneyt via Lazarus lazarus@lists.lazarus-ide.org wrote Well, I originally wanted to propose switching to JSON, but I thought that might be stretching the goodwill a bit too much... -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Package and project file format
On Sat, 3 Mar 2018, Graeme Geldenhuys via Lazarus wrote: On 2018-03-03 10:15, Michael Van Canneyt via Lazarus wrote: Is it possible to get rid of the counts ? Reason: if 2 people add files to a package/project, it always creates conflicts when updating from the VCS. And if you're in bad luck, you need to change a lot of items. +1 This has been a long standing annoyance for me too. XML, JSON etc don't need count properties... That's relics from INI file formats. Well, I originally wanted to propose switching to JSON, but I thought that might be stretching the goodwill a bit too much... Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Package and project file format
On 2018-03-03 10:15, Michael Van Canneyt via Lazarus wrote: Is it possible to get rid of the counts ? Reason: if 2 people add files to a package/project, it always creates conflicts when updating from the VCS. And if you're in bad luck, you need to change a lot of items. +1 This has been a long standing annoyance for me too. XML, JSON etc don't need count properties... That's relics from INI file formats. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Package and project file format
2018-03-03 11:15 GMT+01:00 Michael Van Canneyt via Lazarus: > > Hello, > > The package .lpk andproject .lpi file use the following format : > > > > > > > > > > > > > > > > > And similarly > > > > > > > > > > > Is it possible to get rid of the counts ? > > Reason: if 2 people add files to a package/project, it always creates > conflicts when updating from the VCS. And if you're in bad luck, you need to > change a lot of items. > > On the other hand, if you do > > > > > > > The chance of conflicts becomes less, and the resolution easier. > I am guessing the Count="xxx" attribute, and the numeric suffixes to , are there to read and write these files using TXMLConfig class. Using TXMLConfig exposes an easy API to work with XML files, but it limits what you can do --- all the children nodes within the same parent must have a different name, so that you can do File1 := XmlConfig.GetValue('Units /Unit1/FileName/Value'); File2 := XmlConfig.GetValue('Units /Unit2/FileName/Value'); In Castle Game Engine, we added some extensions to TXMLConfig, in particular TCastleConfig.PathElement to address exactly this. It extracts a DOM element (TDOMElement) from TXMLConfig, and then you can use full power of the DOM unit to operate on this element (iterate on children etc.): https://github.com/castle-engine/castle-engine/blob/master/src/files/castlexmlconfig.pas#L258 . This way you can still use TXMLConfig API (GetValue / SetValue) for some tasks, but you can switch to using more powerful DOM API for other tasks. I thought maybe this is helpful :) Regards, Michalis -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] Package and project file format
Hello, The package .lpk andproject .lpi file use the following format : And similarly Is it possible to get rid of the counts ? Reason: if 2 people add files to a package/project, it always creates conflicts when updating from the VCS. And if you're in bad luck, you need to change a lot of items. On the other hand, if you do The chance of conflicts becomes less, and the resolution easier. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Lazarus directory settings
On Fri, 2 Mar 2018 01:02:02 +0200 Chavoux Luyt via Lazaruswrote: > Second stupid question: Under options I can set the default Lazarus > directory. Is there a setting somewhere for default ppu (or unit source) > directory? No. Every package has its own ppu directory. > I get an error when trying to install a new component (unrelated > to lazreport): > lazarus.pp(1,1) Fatal: Cannot find lazreport used by Lazarus. Build Lazarus with -vt. See, if the compiler can't find lazreport.ppu or does not like what it found. > However, I already compiled and installed the lazreport component (And can > see it on a tab among the other controls). You lost me. How did you 'installed the lazreport and see it' with a Fatal error? > My only guess is that the ppu file was not created because of a permissions > issue? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Running Lazarus in Lazarus
On Sat, 3 Mar 2018 10:04:46 +0100 Lubos Pintes via Lazaruswrote: > Hi, > I think the file is malformed somehow. Yes, indeed it runs the default > Lazarus, but it is unable to build it. The lazarus.lpi does not contain the installed packages, so it cannot build the IDE. Use Tools / Build Lazarus to build Lazarus. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Running Lazarus in Lazarus
Hi, I think the file is malformed somehow. Yes, indeed it runs the default Lazarus, but it is unable to build it. Obviously, it would be impossible to rewrite the running program. So someone could possibly fix the lazarus.lpi. So I renamed the Lazarus.exe, then opened the renamed IDE, pressed F9 and the "Program not found" error appeared. I then tried to build with Ctrl+F9, and the following was written: The project's compiler options has no compile command. See Project / Compiler Options ... / Compilation So how can I fix this? Or can someone fix the lazarus.lpi? Thanks! Dňa 02.03.2018 o 15:05 Mattias Gaertner via Lazarus napísal(a): On Fri, 2 Mar 2018 14:49:15 +0100 Lubos Pintes via Lazaruswrote: This is /ide/lazarus.lpi, where is directory with whole Lazarus repo right? Yes, sorry. Because my code I added there is not compiled. I added my files to /interfaces/lcl.lpk. Why did you add files to the LCL? That's quiet unusual. When I build the IDE from tools menu, my code is compiled. But when I open the above-mentioned project, it runs but behaves differently. Check Tools/ Options / Lazarus directory. The lazarus.lpi runs the default lazarus.exe. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus