Re: [Lazarus] CodeTools On Event insert? detect

2017-05-26 Thread Lars via Lazarus
[...] I want to intercept [...] and add SomeCode(); between the begin/end of the event, i.e. on button 1 click. Does codetools provide some way to do it? Found this discussions about it too: http://lists.lazarus.freepascal.org/pipermail/lazarus/2014-March/086457.html http://free-pascal

Re: [Lazarus] CodeTools On Event insert? detect

2017-05-26 Thread Lars via Lazarus
On 2017-05-26 04:44, Mattias Gaertner via Lazarus wrote: On Wed, 24 May 2017 13:43:10 -0500 Lars via Lazarus wrote: [...] I want to intercept/detect this, and add SomeCode(); between the begin/end of the event, i.e. on button 1 click. Does codetools provide some way to do it? Donald Zi

Re: [Lazarus] A simple way to stop the never ending story of long executable?

2017-05-26 Thread Bo Berglund via Lazarus
On Sat, 20 May 2017 12:24:01 +0200, Giuliano Colla via Lazarus wrote: >...would stop the complaints about "long executable". How about strip -s as a post-compile step before shipping? -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list

Re: [Lazarus] Lazarus 1.8 RC1 under Raspbian Jessie

2017-05-26 Thread Bo Berglund via Lazarus
On Fri, 26 May 2017 15:52:06 +, Mark Morgan Lloyd via Lazarus wrote: >My apologies, but since you hadn't tested it for the current RC I >assumed you'd abandoned it. No apology needed! It's just that I have 6 RPi:s running at home for different purposes and those I use for FPC programming a

Re: [Lazarus] CodeTools knowledge about a project - find a class

2017-05-26 Thread Mattias Gaertner via Lazarus
On Fri, 26 May 2017 19:29:00 +0300 Kostas Michalopoulos via Lazarus wrote: > Actually it works fine, after peppering the code with writelns to see the > flow, i figured out what was the issue: there is a 10 minute interval (by > default) between saves and the dictionary is only saved at the inter

Re: [Lazarus] CodeTools knowledge about a project - find a class

2017-05-26 Thread Kostas Michalopoulos via Lazarus
Actually it works fine, after peppering the code with writelns to see the flow, i figured out what was the issue: there is a 10 minute interval (by default) between saves and the dictionary is only saved at the interval. I expected it to be saved when exiting the IDE regardless of when the last sav

Re: [Lazarus] Lazarus 1.8 RC1 under Raspbian Jessie

2017-05-26 Thread Mark Morgan Lloyd via Lazarus
On 26/05/17 15:02, Bo Berglund via Lazarus wrote: On Fri, 26 May 2017 13:29:50 +, Mark Morgan Lloyd via Lazarus wrote: Just to check the "standard way of doing it" in case there's any >surprises, with FPC 3.0.2 installed:>>svn co http://svn.freepascal.org/svn/lazarus/tags/lazarus_1_8_0_RC1

Re: [Lazarus] CodeTools knowledge about a project - find a class

2017-05-26 Thread Mattias Gaertner via Lazarus
On Fri, 26 May 2017 18:24:12 +0300 Kostas Michalopoulos via Lazarus wrote: > > No. It stores all learned identifiers in a file: > > > > But then why does it behave as i mentioned? When i restart Lazarus it has > forgotten everything. What platform? What happens when you click on Tools / Opti

Re: [Lazarus] CodeTools knowledge about a project - find a class

2017-05-26 Thread Kostas Michalopoulos via Lazarus
> No. It stores all learned identifiers in a file: > But then why does it behave as i mentioned? When i restart Lazarus it has forgotten everything. -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] CodeTools knowledge about a project - find a class

2017-05-26 Thread Mattias Gaertner via Lazarus
On Fri, 26 May 2017 17:49:35 +0300 Kostas Michalopoulos via Lazarus wrote: > This looks like a nice feature, but it only seems to know stuff you have > already open or opened in the current session. It doesn't know all > identifiers and whatever might be available from the currently loaded > proj

Re: [Lazarus] Lazarus 1.8 RC1 under Raspbian Jessie

2017-05-26 Thread Bo Berglund via Lazarus
On Fri, 26 May 2017 13:29:50 +, Mark Morgan Lloyd via Lazarus wrote: > >Just to check the "standard way of doing it" in case there's any >surprises, with FPC 3.0.2 installed: > >svn co http://svn.freepascal.org/svn/lazarus/tags/lazarus_1_8_0_RC1 >cd lazarus_1_8_0_RC1 >make > >That worked as

Re: [Lazarus] CodeTools knowledge about a project - find a class

2017-05-26 Thread Kostas Michalopoulos via Lazarus
This looks like a nice feature, but it only seems to know stuff you have already open or opened in the current session. It doesn't know all identifiers and whatever might be available from the currently loaded project and packages. For example if you have a unit Foo (either in the project or in one

Re: [Lazarus] The "Publish Package" functionality is horribly broken.

2017-05-26 Thread Graeme Geldenhuys via Lazarus
On 2017-05-26 14:11, Mattias Gaertner via Lazarus wrote: Not actually being able to publish what is inside the package. What do you mean with "inside"? It lists some units, but not all. Some directories are shared by other packages. I see no straightforward rule to publish only the package fpgui

Re: [Lazarus] Lazarus 1.8 RC1 under Raspbian Jessie

2017-05-26 Thread Mark Morgan Lloyd via Lazarus
On 26/05/17 11:20, Bo Berglund via Lazarus wrote: On Thu, 25 May 2017 18:46:43 +0200, Joe via Lazarus wrote: I am trying to test Lazarus 1.8 RC1 (and following versions) under >Raspbian Jessie with PIXEL.>But unfortunately I could not find any instructions or scripts helping >to install *this

Re: [Lazarus] The "Publish Package" functionality is horribly broken.

2017-05-26 Thread Mattias Gaertner via Lazarus
On Fri, 26 May 2017 13:09:34 +0100 Graeme Geldenhuys via Lazarus wrote: >[...] > On 2017-05-26 12:42, Mattias Gaertner via Lazarus wrote: > > It copies the package directory with some options. > > The fpgui_toolkit directory only contains the 9 files. The other files > > are in parent or sibling

Re: [Lazarus] The "Publish Package" functionality is horribly broken.

2017-05-26 Thread Graeme Geldenhuys via Lazarus
Thanks for looking at this. On 2017-05-26 12:42, Mattias Gaertner via Lazarus wrote: It copies the package directory with some options. The fpgui_toolkit directory only contains the 9 files. The other files are in parent or sibling directories. But those are still part of the package. At you

Re: [Lazarus] The "Publish Package" functionality is horribly broken.

2017-05-26 Thread Mattias Gaertner via Lazarus
On Fri, 26 May 2017 09:21:32 +0100 Graeme Geldenhuys via Lazarus wrote: > Hi, > > I noticed this menu option in the fpgui_toolkit.lpk package. So I > selected it and made sure the “include” filter selects all files, and > nothing is “excluded”. This clicked okay. After that I had a look in the

Re: [Lazarus] CodeTools knowledge about a project - find a class

2017-05-26 Thread Graeme Geldenhuys via Lazarus
On 2017-05-26 12:06, Ondrej Pokorny via Lazarus wrote: Please share this feature with us when you implemented it! I miss it as well (I do a simple Search in Files now). It seems it already exists (as Mattias pointed out) - we just didn’t know about it. :) All that remains is to assign a short

Re: [Lazarus] CodeTools knowledge about a project - find a class

2017-05-26 Thread Graeme Geldenhuys via Lazarus
On 2017-05-26 12:01, Mattias Gaertner via Lazarus wrote: Sounds like cody's dictionary: http://wiki.lazarus.freepascal.org/Cody#Unit_.2F_Identifier_Dictionary Fantastic! From the wiki description, this sounds exactly like what I was going to try and implement. Open Source developers are amazin

Re: [Lazarus] Lazarus 1.8 RC1 under Raspbian Jessie

2017-05-26 Thread Bo Berglund via Lazarus
On Thu, 25 May 2017 18:46:43 +0200, Joe via Lazarus wrote: >I am trying to test Lazarus 1.8 RC1 (and following versions) under >Raspbian Jessie with PIXEL. >But unfortunately I could not find any instructions or scripts helping >to install *this* RC. >Any hint? You could try my script for inst

Re: [Lazarus] CodeTools knowledge about a project - find a class

2017-05-26 Thread Ondrej Pokorny via Lazarus
On 26.05.2017 12:47, Graeme Geldenhuys via Lazarus wrote: I want to implement a Lazarus IDE feature "open type" - that's if it doesn't already exist (please let me know). Imagine, you need to have a look at the "TFoo" class. But, where is the "TFoo" class? Is it in the "Boo" project or maybe in

Re: [Lazarus] CodeTools knowledge about a project - find a class

2017-05-26 Thread Mattias Gaertner via Lazarus
On Fri, 26 May 2017 11:47:35 +0100 Graeme Geldenhuys via Lazarus wrote: > Hi, > > Does CodeTools only know about the unit or units that are currently > open? Or does in know about all files in a project - and maybe even > associated packages? Codetools only knows about the defines for each di

[Lazarus] CodeTools knowledge about a project - find a class

2017-05-26 Thread Graeme Geldenhuys via Lazarus
Hi, Does CodeTools only know about the unit or units that are currently open? Or does in know about all files in a project - and maybe even associated packages? The problem === I want to implement a Lazarus IDE feature "open type" - that's if it doesn't already exist (please let me k

Re: [Lazarus] Show value hints while debugging fills screen - patch

2017-05-26 Thread Mattias Gaertner via Lazarus
On Tue, 23 May 2017 12:35:36 +0200 Russ via Lazarus wrote: > I find debugging value hints (TurboPowerIProDsgn installed, "Show value > hints while debugging") useful but annoying when the hint becomes so big > it covers the variable being checked or even fills the screen; on single > monitor s

Re: [Lazarus] CodeTools On Event insert? detect

2017-05-26 Thread Mattias Gaertner via Lazarus
On Wed, 24 May 2017 13:43:10 -0500 Lars via Lazarus wrote: >[...] > I want to intercept/detect this, and add > >SomeCode(); > > between the begin/end of the event, i.e. on button 1 click. > > Does codetools provide some way to do it? Donald Ziesig added templates to alter the inserted cod

Re: [Lazarus] Codetools OnBeforeCompile/After events

2017-05-26 Thread Mattias Gaertner via Lazarus
On Fri, 26 May 2017 01:40:27 -0500 Lars via Lazarus wrote: > On 2017-05-26 01:24, Ondrej Pokorny via Lazarus wrote: > > On 26.05.2017 8:21, Lars via Lazarus wrote: > >> Does something like OnBeforeCompile/OnAfterCompile exist in codetools? > > > > Yes, they exists. "OnAfterCompile": > > > >

[Lazarus] The "Publish Package" functionality is horribly broken.

2017-05-26 Thread Graeme Geldenhuys via Lazarus
Hi, I noticed this menu option in the fpgui_toolkit.lpk package. So I selected it and made sure the “include” filter selects all files, and nothing is “excluded”. This clicked okay. After that I had a look in the destination directory, and there was only 9 file. Yet the fpgui_toolkit.lpk pack