[Lazarus] Codetool error
Mattias Gaertner
nc-gaertnma at netcologne.de
Thu Feb 28 20:18:44 CET 2013
On Thu, 28 Feb 2013 20:09:01 +0100 (CET)
Michael Van Canneyt <michael at freepascal.org> wrote:
>
>
> On Thu, 28 Feb 2013, Mattias Gaertner wrote:
>
> > On Thu, 28 Feb 2013 19:43:31 +0100 (CET)
> > Michael Van Canneyt <michael at freepascal.org> wrote:
> >
> >>
> >>
> >> On Thu, 28 Feb 2013, Mattias Gaertner wrote:
> >>
> >>> On Thu, 28 Feb 2013 17:35:11 +0100 (CET)
> >>> Michael Van Canneyt <michael at freepascal.org> wrote:
> >>>
> >>>> Hello,
> >>>>
> >>>> A reproducible bug report:
> >>>>
> >>>> I have a method with the following in it:
> >>>>
> >>>> stCreate : begin
> >>>> Result:=Format('INSERT INTO %s (',[TN]);
> >>>> end;
> >>>>
> >>>> When my cursor is in the method (in fact any method) and I do a ctrl-alt-up to
> >>>> switch to the implementation, I get a codetools error:
> >>>> file.pp(row,col) Error: bracket ) not found
> >>>> and the cursor is positioned on the ( bracket.
> >>>
> >>> It works here.
> >>> Do you have a complete example?
> >>
> >> Sent in private.
> >
> > Works here.
> > What command is ctrl-alt-up? I thought this might be Ctrl-Shift-Up.
>
> Sorry. I meant of Ctrl-Shift-Up.
>
> >From the lazarus log:
> ### TCodeToolManager.HandleException: "bracket ) not found" at Line=2603 Col=46 in "/data/mailjet/svn/api/tools/mjcodegen.pp"
That's an empty line.
> But I must say that the code tools lately have been behaving strangely:
> e.g. when adding a new unit to a project, nothing of that unit is found in other units.
Do you mean File / New unit?
As soon as you save the unit, for example in the project directory, it
should be found by other units in this directory.
> Only after a save and reload of the project, things are found.
>
> Is there anything I can do to help in testing ?
Mattias
More information about the Lazarus
mailing list