Re: [fpc-pascal] CodeTools complete code

2022-10-05 Thread Hairy Pixels via fpc-pascal
> On Oct 5, 2022, at 7:19 PM, Bart via fpc-pascal > wrote: > > Ok, that makes me kinf of curious wether you and I mean the same when > we refer to CodeTools. > I mean the part of the Lazarus IDE that does code completion etc. > Since you don;t use Lazarus, you must mean something else? I have

Re: [fpc-pascal] CodeTools complete code

2022-10-05 Thread Bart via fpc-pascal
On Wed, Oct 5, 2022 at 2:17 PM Hairy Pixels via fpc-pascal wrote: > > CodeTools is part of Lazarus. ... > > Ok thanks. I’m not a Lazarus user so I don’t really follow those forums. > Ok, that makes me kinf of curious wether you and I mean the same when we refer to CodeTools. I mean the part of th

Re: [fpc-pascal] CodeTools complete code

2022-10-05 Thread Hairy Pixels via fpc-pascal
> On Oct 5, 2022, at 4:23 PM, Bart via fpc-pascal > wrote: > > On Wed, Oct 5, 2022 at 8:33 AM Hairy Pixels via fpc-pascal > wrote: > >> Does CodeTools not understand generic class function calls? Here is the >> class in question: > > CodeTools is part of Lazarus. > So, better ask on the La

Re: [fpc-pascal] CodeTools complete code

2022-10-05 Thread Bart via fpc-pascal
On Wed, Oct 5, 2022 at 8:33 AM Hairy Pixels via fpc-pascal wrote: > Does CodeTools not understand generic class function calls? Here is the class > in question: CodeTools is part of Lazarus. So, better ask on the Lazarus ML. (And yes, CodeTools has problems with generics.) -- Bart __

Re: [fpc-pascal] CodeTools complete code

2022-10-04 Thread Hairy Pixels via fpc-pascal
Testing now and I found a potential bug in CodeTools. With this code here: Request := specialize TLSPStreaming.ToJSON(Params); I get the error "illegal qualifier . found" @ 146:53. Does CodeTools not understand generic class function calls? Here is the class in question: generic TLSPStream

Re: [fpc-pascal] CodeTools complete code

2022-10-04 Thread Mattias Gaertner via fpc-pascal
On Tue, 4 Oct 2022 14:47:29 +0700 Hairy Pixels via fpc-pascal wrote: > > On Oct 4, 2022, at 2:40 PM, Mattias Gaertner via fpc-pascal > > wrote: > > > > If you don't want the comment above the class, use > > > > with CodeToolBoss.SourceChangeCache.BeautifyCodeOptions do > > begin > > ClassHea

Re: [fpc-pascal] CodeTools complete code

2022-10-04 Thread Hairy Pixels via fpc-pascal
> On Oct 4, 2022, at 2:40 PM, Mattias Gaertner via fpc-pascal > wrote: > > If you don't want the comment above the class, use > > with CodeToolBoss.SourceChangeCache.BeautifyCodeOptions do > begin > ClassHeaderComments:=false; > ClassImplementationComments:=false; > end; > Great thanks.

Re: [fpc-pascal] CodeTools complete code

2022-10-04 Thread Mattias Gaertner via fpc-pascal
On Tue, 4 Oct 2022 14:10:29 +0700 Hairy Pixels via fpc-pascal wrote: > I’m trying to use the CompleteCode function in the CodeTools library > and doing some formatting I don’t want. > > Calling it over the “MyProcedure” method in the class it added a > comment and moved the declaration under the

[fpc-pascal] CodeTools complete code

2022-10-04 Thread Hairy Pixels via fpc-pascal
I’m trying to use the CompleteCode function in the CodeTools library and doing some formatting I don’t want. Calling it over the “MyProcedure” method in the class it added a comment and moved the declaration under the variable section instead of directly under the class declaration like I would