Re: [Lazarus] IDE Ctrl+W key

2019-03-18 Thread Martin Frb via lazarus

On 19/03/2019 04:39, Dmitry Boyarintsev via lazarus wrote:
On Mon, Mar 18, 2019 at 10:58 PM Martin Frb via lazarus 
mailto:lazarus@lists.lazarus-ide.org>> 
wrote:


History back should work after an codetools error. IIRC Ctrl-H,
but I move it to Alt-Cursor-Left.


The first time I hear about that thing. What's "History point"?  how 
is it defined?



View menu: jump history

Everytime you jump to a declaration, method body, ... (and some others 
like go to begin/end of file) a point is inserted. (except, if it is 
just 1 or 2 lines from where you were).


You can navigate back and forward on those points.
- mouse buttons 4 and 5 (like in webbrowesrs)
- ctrl-h (IIRC.., I recommand mapping it to alt cursor left/right)
- editor toolbar can provide buttons too


The usual way is, that you look up the definition of some identifier (I 
mapped "jump to declaration" to alt cursor up), maybe follow it forward, 
follow another declaration inside it, and then jump back as far as 
you need.


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


Re: [Lazarus] IDE Ctrl+W key

2019-03-18 Thread Dmitry Boyarintsev via lazarus
On Mon, Mar 18, 2019 at 10:58 PM Martin Frb via lazarus <
lazarus@lists.lazarus-ide.org> wrote:

> History back should work after an codetools error. IIRC Ctrl-H, but I move
> it to Alt-Cursor-Left.
>

The first time I hear about that thing. What's "History point"?  how is it
defined?
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] IDE Ctrl+W key

2019-03-18 Thread Martin Frb via lazarus

On 19/03/2019 03:44, Dmitry Boyarintsev via lazarus wrote


error message, which when selected will jump to the error.
Then the user can deliberately choose to fix or ignore the error.

I hate my cursor to jump anywhere, when I'm asking for word-completion 
at a particular placement.

As well as the concentration on the particular part of the code is lost.
The error can be pretty far away, and returning to the where I was 
might take some time.


(btw, due to aggressive jumping in the past. I.e. when Objective-P 
support was only introduced to code tools I taught myself to use 
bookmarks often.

Just for a quick jump back to the line of code I was working at.)



History back should work after an codetools error. IIRC Ctrl-H, but I 
move it to Alt-Cursor-Left.



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


Re: [Lazarus] IDE Ctrl+W key

2019-03-18 Thread Dmitry Boyarintsev via lazarus
On Mon, Mar 18, 2019 at 1:57 PM Mattias Gaertner via lazarus <
lazarus@lists.lazarus-ide.org> wrote:

> Ctrl+Space always jumped to an error.
> Although over the years codetools parser matured. So some syntax, that
> was formerly skipped/ignored, now raises an error. Maybe you mean this?
>
I would think, this is exactly the problem. Though I'd expect the mature
parser to be more tolerant to user errors and do some sort of self recovery.

Also, I don't think me simply complaining about the "here and there" would
help.
However, sometimes I just cannot bug-report the issue, because restarting
the IDE resolves the problem.

Is there any sort of stand-alone code-tools log happening? Something that
could be used for bug reporting?


> IMO hiding an error is asking for trouble.
> A good GUI must indicate somehow when the results are not reliable or
> incomplete.

That's what C-language developers are relying on. In Pascal world
compilation is fast, so it will be quite a short time when the compiler
would remind a developer about the error.
(btw, the "slowness" retains even in modern faster languages. i.e. C#. It's
not because the compiler is slow, but because an IDE is slow.
Lazarus manages to keep very high performance)


> For example by showing as first result a red line with the
> error message, which when selected will jump to the error.
> Then the user can deliberately choose to fix or ignore the error.
>
I hate my cursor to jump anywhere, when I'm asking for word-completion at a
particular placement.
As well as the concentration on the particular part of the code is lost.
The error can be pretty far away, and returning to the where I was might
take some time.

(btw, due to aggressive jumping in the past. I.e. when Objective-P support
was only introduced to code tools I taught myself to use bookmarks often.
Just for a quick jump back to the line of code I was working at.)

I guess that would substitute a good deal of word-completion. Although
> word-completion is also much faster.
>
All in all, why can't both of them be the same thing?
Typical single-form application template:

procedure TForm1.FormCreate(Sender: TObject);
begin
  For|
end;

Ctrl+Space produces:
* FormCreate
* FormIsUpdating
* FormState
* FormStyle
...

Ctrl+W produces:
* Forms
* FormsCreate (how did it know?)
* Form1

thanks,
Dmitry
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] IDE Ctrl+W key

2019-03-18 Thread Mattias Gaertner via lazarus
On Sun, 17 Mar 2019 19:54:35 -0400
Dmitry Boyarintsev via lazarus  wrote:

>[...]
> > Are you aware that if Ctrl+Space fails it jumps to the syntax error?
> 
> Yes. And it's irritating, because I do remember when Ctrl+Space used
> to work even with incomplete sources.

Ctrl+Space always jumped to an error.
Although over the years codetools parser matured. So some syntax, that
was formerly skipped/ignored, now raises an error. Maybe you mean
this?


> I often trying to use Ctrl+Space to complete the word on incomplete
> sources. (because I don't remember an API, and I need a hint.).
> But instead of showing me a list of options, it just doesn't work or
> jumps somewhere else. (...and jumping can be turned off, yet it won't
> do anything useful).

IMO hiding an error is asking for trouble.
A good GUI must indicate somehow when the results are not reliable or
incomplete. For example by showing as first result a red line with the
error message, which when selected will jump to the error.
Then the user can deliberately choose to fix or ignore the error.

I guess that would substitute a good deal of word-completion. Although
word-completion is also much faster.

Mattias

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


Re: [Lazarus] New XML format for project info files

2019-03-18 Thread Werner Pamler via lazarus

Am 18.03.2019 um 06:54 schrieb Juha Manninen via lazarus:

On Mon, Mar 18, 2019 at 1:12 AM Werner Pamler via lazarus
 wrote:

I saw that you activated legacy compatibility mode by default, thank
you. But now the checkbox in the project options is out of sync.
Shouldn't it be checked now by default, too?

Here it is checked now by default both in existing and in new projects.

Juha
Always the same stupid error: Did not rebuild the IDE after updating 
from svn.

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