Discussion:
[Lazarus] "End of source not found" error in Trunk.
Sergey Bodrov via Lazarus
2018-05-22 13:57:19 UTC
Permalink
I got annoing "End of source not found" when use autocompletion
(Ctrl-Space) on random places of code. After adding/removing empty line in
such place, autocompletion works, but over some time error repeats again.
What's wrong? It's Codetools bug or some incorrect options setting? I not
sure, but maybe that's begins after installing LAMW and laz4android modules
from fpcupdeluxe.
--
*Bodrov Sergey*
software development, IT consulting
http://www.serbod.com
*Phone (Belarus):* +375(25)794-21-58
*Skype:* sergey.bodrov1
*e-mail:* ***@gmail.com, ***@yandex.ru
Mattias Gaertner via Lazarus
2018-05-22 14:54:41 UTC
Permalink
On Tue, 22 May 2018 16:57:19 +0300
Post by Sergey Bodrov via Lazarus
I got annoing "End of source not found" when use autocompletion
(Ctrl-Space) on random places of code. After adding/removing empty line in
such place, autocompletion works, but over some time error repeats again.
What's wrong? It's Codetools bug or some incorrect options setting? I not
sure, but maybe that's begins after installing LAMW and laz4android modules
from fpcupdeluxe.
Can you reproduce it?

Mattias
--
Sergey Bodrov via Lazarus
2018-05-23 10:05:32 UTC
Permalink
Post by Mattias Gaertner via Lazarus
Can you reproduce it?
Sure. Windows 10 (x64) under VirtualBox 5.2.6

1. download and run "fpcupdeluxe"
2. install FPC+Lazarus trunk
3. install arm-android crosscompiler
4. start Lazarus, open random project, test autocompletion (Ctrl-Space), it
works.
5. run "fpcupdeluxe", install LAMW module
6. start Lazarus, open random project, test autocompletion (Ctrl-Space), it
fail with message:
-----------------------------------
Codetools, Errors: 1
mainform.pas(86,4) Error: End of source not found.
-----------------------------------

JDK, SDK, NDK, and other Android stuff was not installed, paths not set.
But same error present when all paths properly set and project succesfully
compiles and run on Android device.
--
*Bodrov Sergey*
software development, IT consulting
http://www.serbod.com
*Phone (Belarus):* +375(25)794-21-58
*Skype:* sergey.bodrov1
*e-mail:* ***@gmail.com, ***@yandex.ru
Mattias Gaertner via Lazarus
2018-05-23 10:09:45 UTC
Permalink
On Wed, 23 May 2018 13:05:32 +0300
Post by Sergey Bodrov via Lazarus
[...]
1. download and run "fpcupdeluxe"
2. install FPC+Lazarus trunk
3. install arm-android crosscompiler
4. start Lazarus, open random project, test autocompletion (Ctrl-Space), it
works.
5. run "fpcupdeluxe", install LAMW module
6. start Lazarus, open random project, test autocompletion (Ctrl-Space), it
-----------------------------------
Codetools, Errors: 1
mainform.pas(86,4) Error: End of source not found.
In any unit?
Even in classes.pp?

Mattias
--
Sergey Bodrov via Lazarus
2018-05-23 10:47:38 UTC
Permalink
Post by Mattias Gaertner via Lazarus
In any unit?
Even in classes.pp?
No, I can't reproduce it inside classes.pp. But it occurs inside one of
components code.
--
*Bodrov Sergey*
software development, IT consulting
http://www.serbod.com
*Phone (Belarus):* +375(25)794-21-58
*Skype:* sergey.bodrov1
*e-mail:* ***@gmail.com, ***@yandex.ru
Mattias Gaertner via Lazarus
2018-05-23 11:02:47 UTC
Permalink
On Wed, 23 May 2018 13:47:38 +0300
Post by Sergey Bodrov via Lazarus
Post by Mattias Gaertner via Lazarus
In any unit?
Even in classes.pp?
No, I can't reproduce it inside classes.pp. But it occurs inside one of
components code.
Please be more specific.

Mattias
--
Sergey Bodrov via Lazarus
2018-05-23 11:33:50 UTC
Permalink
Post by Mattias Gaertner via Lazarus
Post by Sergey Bodrov via Lazarus
Post by Mattias Gaertner via Lazarus
In any unit?
Even in classes.pp?
No, I can't reproduce it inside classes.pp. But it occurs inside one of
components code.
Please be more specific.
I installed module "synapse" from fpcupdeluxe, then open my project, that
uses "blcksock" unit. Then I open blcksock.pas in editor,
go to TUDPBlockSocket.SetMulticastTTL() implementation (line 3730),
type "synsock." and press Ctrl-Space for autocompletion.
Error occur at line 3720, at last line of previous method implementation.
--
*Bodrov Sergey*
software development, IT consulting
http://www.serbod.com
*Phone (Belarus):* +375(25)794-21-58
*Skype:* sergey.bodrov1
*e-mail:* ***@gmail.com, ***@yandex.ru
Ondrej Pokorny via Lazarus
2018-05-24 07:05:33 UTC
Permalink
Post by Mattias Gaertner via Lazarus
On Tue, 22 May 2018 16:57:19 +0300
Post by Sergey Bodrov via Lazarus
I got annoing "End of source not found" when use autocompletion
(Ctrl-Space) on random places of code. After adding/removing empty line in
such place, autocompletion works, but over some time error repeats again.
What's wrong? It's Codetools bug or some incorrect options setting? I not
sure, but maybe that's begins after installing LAMW and laz4android modules
from fpcupdeluxe.
Can you reproduce it?
I get this error massively as well after I updated trunk.
Closing/reopening the file helps for some time but then the error is
back again.

I don't remember it happened before.

Ondrej
--
Ondrej Pokorny via Lazarus
2018-05-24 07:11:58 UTC
Permalink
Here the screenshot.

Ondrej
Sergey Bodrov via Lazarus
2018-05-31 12:31:00 UTC
Permalink
Post by Mattias Gaertner via Lazarus
Can you reproduce it?
Upd: after some identifier edited (added-removed single character) pressing
Ctrl-Space cause different line number in error message. On repeat, that
number is decreased (points to other code block), and after some attempts
error not occured. But on next try, error appear again with big line number.
--
*Bodrov Sergey*
software development, IT consulting
http://www.serbod.com
*Phone (Belarus):* +375(25)794-21-58
*Skype:* sergey.bodrov1
*e-mail:* ***@gmail.com, ***@yandex.ru
Continue reading on narkive:
Loading...