Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-01

Error: illegal qualifier [ found

7 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Kjow

Hi,

I updated Lazarus svn to revision 23510, but from some revs (at least from some hours ago), when I press ctrl+space at the end of an array to open the menu I get the error:

Error: illegal qualifier [ found

Is it a bug or a my problem?

Thanks,
Kjow

Reply by email

Mattias Gaertner
to Kjow
Show quoted text 9 lines
Hi, I updated Lazarus svn to revision 23510, but from some revs (at least from some hours ago), when I press ctrl+space at the end of an array to open the menu I get the error: Error: illegal qualifier [ found Is it a bug or a my problem?

Can you give a more complete example?

Mattias

Reply by email

Kjow
to Mattias Gaertner

2010/1/20 Mattias Gaertner :

Can you give a more complete example? Mattias

e.g. If I add to a form a listview or a memo or a combobox and in the source code I put this:

ListBox1.items[0].
or
Memo1.Lines[0].
or
combobox1.items[0].

If I press CRTL+Space I got this error:

\lcl\stdctrls.pp(909,19) Error: identifier expected, but  found

OR

more complete example:

...
...
Type
TCustomRecord = record
...

    DummyCubeList : array [1..10] of TGLDummyCube;
    ...
  end;

...
...
...

function init(Form: TForm): byte;
var
  example: TCustomRecord ;
begin
  ...
  example.DummyCubeList[i]. //CTRL+Space error -> Error: illegal
qualifier [ found

Regards,
Kjow

Reply by email

Mattias Gaertner
to Kjow
Show quoted text 17 lines
2010/1/20 Mattias Gaertner : > Can you give a more complete example? > > Mattias e.g. If I add to a form a listview or a memo or a combobox and in the source code I put this: ListBox1.items[0]. or Memo1.Lines[0]. or combobox1.items[0]. If I press CRTL+Space I got this error: \lcl\stdctrls.pp(909,19) Error: identifier expected, but found

fixed

Show quoted text 24 lines
OR more complete example: ... ... Type TCustomRecord = record ... DummyCubeList : array [1..10] of TGLDummyCube; ... end; ... ... ... function init(Form: TForm): byte; var example: TCustomRecord ; begin ... example.DummyCubeList[i]. //CTRL+Space error -> Error: illegal qualifier [ found

Fixed.

Mattias

Reply by email

Hans-Peter Diettrich
to Kjow: 2010/1/20 Mattias Gaertner : e.g. If I add to a form a listview or a memo or a combobox…
Show quoted text 17 lines
2010/1/20 Mattias Gaertner : > Can you give a more complete example? > > Mattias e.g. If I add to a form a listview or a memo or a combobox and in the source code I put this: ListBox1.items[0]. or Memo1.Lines[0]. or combobox1.items[0]. If I press CRTL+Space I got this error: \lcl\stdctrls.pp(909,19) Error: identifier expected, but found

IMO code completion should be better in ignoring whitespace. I had similar problems already, where a space out of thin air (source formatter?) prevented usable typeahead completion. The concrete error may depend on IDE options, in detail formatting options.

With source formatting it would be nice to have:
1) disable any formating, using a single checkbox (in the menu?)
2) provide kind of settings information dump, for attachment to bug reports.

[1] would allow to determine whether formatting is I don't like auto-formatting, I'd use that checkbox to disable automatic formatting most of the time.

[2] should allow to mimic the IDE settings, which may be required to reproduce the error. It should be easy to restore the original state of the IDE settings, or to switch between both settings (hers/mine).

DoDi

Reply by email

Mattias Gaertner
to Hans-Peter Diettrich
Show quoted text 20 lines
Kjow schrieb: > 2010/1/20 Mattias Gaertner : >> Can you give a more complete example? >> >> Mattias > > e.g. If I add to a form a listview or a memo or a combobox and in the > source code I put this: > > ListBox1.items[0]. > or > Memo1.Lines[0]. > or > combobox1.items[0]. > > If I press CRTL+Space I got this error: > > \lcl\stdctrls.pp(909,19) Error: identifier expected, but found IMO code completion should be better in ignoring whitespace.

This was follow up error. The error message is misleading and the first error had nothing to do with white space.

I had similar problems already, where a space out of thin air (source formatter?) prevented usable typeahead completion.

?

Show quoted text 5 lines
The concrete error may depend on IDE options, in detail formatting options. With source formatting it would be nice to have: 1) disable any formating, using a single checkbox (in the menu?)

What do you mean here with formatting?

2) provide kind of settings information dump, for attachment to bug reports.

editoroptions.xml

Show quoted text 7 lines
[1] would allow to determine whether formatting is involved at all. Since I don't like auto-formatting, I'd use that checkbox to disable automatic formatting most of the time. [2] should allow to mimic the IDE settings, which may be required to reproduce the error. It should be easy to restore the original state of the IDE settings, or to switch between both settings (hers/mine).
In this case it was independent of the options, but just on order of
keys pressed. So this would not have helped here.

Mattias

Reply by email