Re: [Lazarus] Source | complete code - does nothing.

2018-01-09 Thread Juha Manninen via Lazarus
BTW, it shows a dialog only for variables. With methods it works like
Ctrl-Shift-C.
When I add a method in implementation section and press Ctrl-Shift-X,
it could ask about visibily in the class. Now it makes it private
always.
On the other hand, the same dialog cannot be reused. It would require
a new dialog.

Juha
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] error on compiling trunk

2018-01-09 Thread John Landmesser via Lazarus

Am 09.01.2018 um 19:22 schrieb Mattias Gaertner via Lazarus:

On Tue, 9 Jan 2018 16:10:51 +0100
John Landmesser via Lazarus  wrote:


/lazarus/components/codetools/identcompletiontool.pas(634,31) Error:
(3205) Illegal qualifier


Lazarus 1.9.0 r56520M FPC 3.0.0 x86_64-linux-gtk2

Fixed.

Mattias


ok with:

Lazarus 1.9.0 r57029 FPC 3.0.0 x86_64-linux-gtk2

thank you Mattias!

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Extended filter for Code Completion

2018-01-09 Thread Mattias Gaertner via Lazarus
On Mon, 8 Jan 2018 19:55:11 +0200
Juha Manninen via Lazarus  wrote:

> I applied the patch from here:
>  https://bugs.freepascal.org/view.php?id=32974
> It looks good to me.
> Please test everybody. Does it have negative side-effects of some kind?

The name ExtendedFilter sounds as if it gives more options.

Instead it adds identifiers that contains the identifier, behind the
usual list of identifiers that starts with the identifiers. What would
be a good name for this option?
"AddContainsPrefix" or (not) "OnlyBeginsWithPrefix"?

Mattias
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] error on compiling trunk

2018-01-09 Thread Mattias Gaertner via Lazarus
On Tue, 9 Jan 2018 16:10:51 +0100
John Landmesser via Lazarus  wrote:

> /lazarus/components/codetools/identcompletiontool.pas(634,31) Error: 
> (3205) Illegal qualifier
> 
> 
> Lazarus 1.9.0 r56520M FPC 3.0.0 x86_64-linux-gtk2

Fixed.

Mattias
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] error on compiling trunk

2018-01-09 Thread Mattias Gaertner via Lazarus
On Tue, 9 Jan 2018 17:21:43 +0100
John Landmesser via Lazarus  wrote:

> Am 09.01.2018 um 16:17 schrieb Mattias Gaertner via Lazarus:
> > On Tue, 9 Jan 2018 16:10:51 +0100
> > John Landmesser via Lazarus  wrote:
> >  
> >> /lazarus/components/codetools/identcompletiontool.pas(634,31) Error:
> >> (3205) Illegal qualifier
> >>
> >>
> >> Lazarus 1.9.0 r56520M FPC 3.0.0 x86_64-linux-gtk2  
> > Current version is 57024. Please update.
> >
> > Mattias  
> 
> somehow strange
> 
> svn update && make all clear
> 
> Lazarus-Quelltext aufräumen: Erfolg
> Kompiliere Package CodeTools 1.0.1: Exit code 256, Fehler: 1, Hinweise: 1
> codebeautifier.pas(241,54) Hint: Parameter "SrcPos" not used
> identcompletiontool.pas(634,31) Error: Illegal qualifier
> 
> code:
> 
>      if not CurItem.Identifier.IsEmpty then
> 
> 
> whats the cause?

That's not line 634 of identcompletiontool.pas of trunk.

 
> Lazarus 1.9.0 r56902M FPC 3.0.4 x86_64-linux-gtk2

svn status components/codetools/identcompletiontool.pas

Mattias
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Source | complete code - does nothing.

2018-01-09 Thread Donald Ziesig via Lazarus

On 01/09/2018 12:03 PM, Vojtěch Čihák via Lazarus wrote:


Hi,

example - you write:

i:=5;

and hit Ctrl+Shift+X on that line and it will open dialog where you 
can choose if you want to create "i" as a local or class variable.


V.

__
> Od: Donald Ziesig via Lazarus 
> Komu: lazarus@lists.lazarus-ide.org
> Datum: 09.01.2018 17:54
> Předmět: [Lazarus] Source | complete code - does nothing.
>

Hi All:

I was just playing with text editing "toys" such as code completion, 
outlines, etc.  While doing this I discovered that clicking on the 
menu entry:


Source
  Complete Code (with Dialog)   Ctrl-Shift-X

does nothing.  No dialog, no changes to text in editor.

I  then tried Ctrl-Shift-X with similar (no) results.

This is not a major issue for me, I was just being curious, but I 
would think that a main menu entry should do *something* ;-).


What is it supposed to do?

I am using the release version of Lazarus 1.8 (dated 2017-12-13) on 
Linux Mint 18.3 with gtk2.


Thanks,

Don Ziesig



--

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Thanks, got it.  I thought if I entered "i :=" then ctrl-shift-x it 
would ask for a value and type, but it just throws an error in the 
messages form.


Don

-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Source | complete code - does nothing.

2018-01-09 Thread Vojtěch Čihák via Lazarus

Hi,
 
example - you write:
i:=5;
and hit Ctrl+Shift+X on that line and it will open dialog where you can choose if you 
want to create "i" as a local or class variable.
 
V.
__

Od: Donald Ziesig via Lazarus 
Komu: lazarus@lists.lazarus-ide.org
Datum: 09.01.2018 17:54
Předmět: [Lazarus] Source | complete code - does nothing.


Hi All:
I was just playing with text editing "toys" such as code completion, outlines, 
etc.  While doing this I discovered that clicking on the menu entry:
Source
  Complete Code (with Dialog)   Ctrl-Shift-X
does nothing.  No dialog, no changes to text in editor.
I  then tried Ctrl-Shift-X with similar (no) results.
This is not a major issue for me, I was just being curious, but I would think 
that a main menu entry should do something ;-).
What is it supposed to do?
I am using the release version of Lazarus 1.8 (dated 2017-12-13) on Linux Mint 
18.3 with gtk2.
Thanks,
Don Ziesig
 


--

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Source | complete code - does nothing.

2018-01-09 Thread Ondrej Pokorny via Lazarus

On 09.01.2018 23:54, Donald Ziesig via Lazarus wrote:


Hi All:

I was just playing with text editing "toys" such as code completion, 
outlines, etc.  While doing this I discovered that clicking on the 
menu entry:


Source
  Complete Code (with Dialog)   Ctrl-Shift-X

does nothing.  No dialog, no changes to text in editor.

I  then tried Ctrl-Shift-X with similar (no) results.

This is not a major issue for me, I was just being curious, but I 
would think that a main menu entry should do *something* ;-).


What is it supposed to do?

I am using the release version of Lazarus 1.8 (dated 2017-12-13) on 
Linux Mint 18.3 with gtk2.




See http://wiki.lazarus.freepascal.org/Lazarus_1.8.0_release_notes IDE 
Changes -> Code creation.


Ondrej
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Source | complete code - does nothing.

2018-01-09 Thread Donald Ziesig via Lazarus

Hi All:

I was just playing with text editing "toys" such as code completion, 
outlines, etc.  While doing this I discovered that clicking on the menu 
entry:


Source
  Complete Code (with Dialog)   Ctrl-Shift-X

does nothing.  No dialog, no changes to text in editor.

I  then tried Ctrl-Shift-X with similar (no) results.

This is not a major issue for me, I was just being curious, but I would 
think that a main menu entry should do *something* ;-).


What is it supposed to do?

I am using the release version of Lazarus 1.8 (dated 2017-12-13) on 
Linux Mint 18.3 with gtk2.


Thanks,

Don Ziesig


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] error on compiling trunk

2018-01-09 Thread John Landmesser via Lazarus

Am 09.01.2018 um 16:17 schrieb Mattias Gaertner via Lazarus:

On Tue, 9 Jan 2018 16:10:51 +0100
John Landmesser via Lazarus  wrote:


/lazarus/components/codetools/identcompletiontool.pas(634,31) Error:
(3205) Illegal qualifier


Lazarus 1.9.0 r56520M FPC 3.0.0 x86_64-linux-gtk2

Current version is 57024. Please update.

Mattias


somehow strange

svn update && make all clear

Lazarus-Quelltext aufräumen: Erfolg
Kompiliere Package CodeTools 1.0.1: Exit code 256, Fehler: 1, Hinweise: 1
codebeautifier.pas(241,54) Hint: Parameter "SrcPos" not used
identcompletiontool.pas(634,31) Error: Illegal qualifier

code:

    if not CurItem.Identifier.IsEmpty then


whats the cause?

Lazarus 1.9.0 r56902M FPC 3.0.4 x86_64-linux-gtk2

thats on:

System:    Host: MintBox Kernel: 4.10.0-42-generic x86_64 (64 bit gcc: 
5.4.0)
   Desktop: Cinnamon 3.6.7 (Gtk 2.24.30) dm: mdm Distro: Linux 
Mint 18.3 Sylvia


No probs on Win10!!

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] error on compiling trunk

2018-01-09 Thread Mattias Gaertner via Lazarus
On Tue, 9 Jan 2018 16:10:51 +0100
John Landmesser via Lazarus  wrote:

> /lazarus/components/codetools/identcompletiontool.pas(634,31) Error: 
> (3205) Illegal qualifier
> 
> 
> Lazarus 1.9.0 r56520M FPC 3.0.0 x86_64-linux-gtk2

Current version is 57024. Please update.

Mattias
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] error on compiling trunk

2018-01-09 Thread John Landmesser via Lazarus
/lazarus/components/codetools/identcompletiontool.pas(634,31) Error: 
(3205) Illegal qualifier



Lazarus 1.9.0 r56520M FPC 3.0.0 x86_64-linux-gtk2

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Extended filter for Code Completion

2018-01-09 Thread Denis Kozlov via Lazarus

This feature is awesome! Works perfect so far, even with unit names.

It was on my wishlist since Lazarus 0.9 days.

Denis


On 08/01/2018 17:55, Juha Manninen via Lazarus wrote:

I applied the patch from here:
  https://bugs.freepascal.org/view.php?id=32974
It looks good to me.
Please test everybody. Does it have negative side-effects of some kind?

Juha


--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus