[Lazarus] CodeToolManager: file was not reached by scanner
nc-gaertnma at netcologne.de
Fri Feb 27 17:03:09 CET 2015
On Thu, 26 Feb 2015 20:43:49 +0200
Valdas Jankūnas <zmuogs at gmail.com> wrote:
> today I bumped on to problem:
> - in Lazarus IDE I opened unit file "irankiai.pas" which is listed in
> Project Inspector;
> - placed cursor in body of one functions;
> - tried to view declaration of that function -> Shift+Ctrl+Up
> after that cursor jumped in to main unit at "end." line, Message
> Window complains that "Codetools, Errors: 1" and "pagrindinis.pas(175,1)
> Error: cursor pos outside of code", console reports (IDE compiled with
> ### TCodeToolManager.HandleException: "file was not reached by scanner"
> at Line=983 Col=36 in
> ### TCodeToolManager.HandleException: "cursor pos outside of code" at
> Line=179 Col=4 in
> This happen only inside that "irankiai.pas" unit.
> I don't understand why this happens and how to fix this problem. Some
It means codetools parsed the unit, but the parser didn't come to the
position, where the cursor is. For example if there is an "end." in
front. Search for the "end."
You can find out in "Code Explorer" what the parser found.
Another possibility is that irankiai.pas is/was an include file.
Open irankiai.pas, then IDE menu / Source / View Unit information /
clear include cache.
More information about the Lazarus