Recent

Author Topic: Search Control Problem(Closed)  (Read 269 times)

JLWest

  • Hero Member
  • *****
  • Posts: 1111
Search Control Problem(Closed)
« on: June 12, 2022, 04:03:45 pm »
I do a search in open files. The search returns 3 items in the Search Results.  However when I click one of the items it doesn't move to that line in the editor.

Thanks
« Last Edit: June 12, 2022, 06:20:13 pm by JLWest »
FPC 3.2.0, Lazarus IDE v2.0.4
 Windows 10 Pro 32-GB
 Intel i7 770K CPU 4.2GHz 32702MB Ram
GeForce GTX 1080 Graphics - 8 Gig
4.1 TB

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 8100
  • Debugger - SynEdit - and more
    • wiki
Re: Search Control Problem
« Reply #1 on: June 12, 2022, 04:22:18 pm »
Try running lazarus with
  --debug --debug-log=somefile.txt

And see, if anything gets logged?

Otherwise, that is
Lazurus 2.2.2 with fpc 3.2.2 ?
And no packages installed? (Especially packages that change the IDE, like AnchorDocking)

And none of your files are opened via a symlink? Or known to the IDE via symlink, e.g. in the project inspector?
(symlink here can either be to the file itself, or any enclosing folder)

Anything else about the file that is not being "jumped to"?
- not saved
- not part of any project or package
- open in more than one Window

-------------
Of course all of the above should work. None is known (to me) as not working.

But there must be some detail, why it does not work....

JLWest

  • Hero Member
  • *****
  • Posts: 1111
Re: Search Control Problem
« Reply #2 on: June 12, 2022, 05:16:00 pm »
Can't figure that out.

Tools>options>debugger but can't find debug-log=somefile.txt
Can't find debug-log anywhere.

I downloaded the new Lazarus 2.2.2 Win64.exe Maybe I should just reload and upgrade my compiler also.
Maybe easier that chasing this bug.
What do you think?

Thanks
« Last Edit: June 12, 2022, 05:24:32 pm by JLWest »
FPC 3.2.0, Lazarus IDE v2.0.4
 Windows 10 Pro 32-GB
 Intel i7 770K CPU 4.2GHz 32702MB Ram
GeForce GTX 1080 Graphics - 8 Gig
4.1 TB

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 8100
  • Debugger - SynEdit - and more
    • wiki
Re: Search Control Problem
« Reply #3 on: June 12, 2022, 06:12:28 pm »
The installer includes fpc. And anyway FPC hasn't had a new release recently, it's still 3.2.2. As it was with Lazarus 2.0.


--debug-log
is a commandline option.



Another option is to debug the IDE itself, and see if any exceptions are reported.
(the logfile should be much easier though)

IDE needs to be rebuild with -gw3

Then open project ide/lazarus.lpi
and run/F9

In the 2nd/inner IDE (the one being debugged / not the one doing the debugging) reproduce the issue.
If there are any exceptions, the outer IDE should let you know.


If you rebuild your IDE => use -O-1

Any higher optimization may lead to all kind of errors. (Though only in really rare cases).
Fpc 3.2.2 has several optimizer bugs (afaik).

JLWest

  • Hero Member
  • *****
  • Posts: 1111
Re: Search Control Problem
« Reply #4 on: June 12, 2022, 06:19:46 pm »
Thanks for the help.
I deleted everything C:\Las
Reinstalled Laz and it installed FPC 3.2.2
Seems to working.
FPC 3.2.0, Lazarus IDE v2.0.4
 Windows 10 Pro 32-GB
 Intel i7 770K CPU 4.2GHz 32702MB Ram
GeForce GTX 1080 Graphics - 8 Gig
4.1 TB

 

TinyPortal © 2005-2018