Recent

Author Topic: Cannot find unit file  (Read 3504 times)

kjteng

  • Sr. Member
  • ****
  • Posts: 259
Cannot find unit file
« on: February 21, 2018, 04:35:02 pm »
I might have accidentally changed some setting without knowing it and now I cannot open file at cursor anymore (everything was ok yesterday).   See attached.
Please help.

Bart

  • Hero Member
  • *****
  • Posts: 5290
    • Bart en Mariska's Webstek
Re: Cannot find unit file
« Reply #1 on: February 21, 2018, 05:21:14 pm »
Try Menu->Options->Re-scan fpc directory?

Bart

kjteng

  • Sr. Member
  • ****
  • Posts: 259
Re: Cannot find unit file
« Reply #2 on: February 21, 2018, 06:09:38 pm »
Try Menu->Options->Re-scan fpc directory?

Bart
I tried your suggestion but it doesnt work. Thanks anyway.

Handoko

  • Hero Member
  • *****
  • Posts: 5154
  • My goal: build my own game engine using Lazarus
Re: Cannot find unit file
« Reply #3 on: February 21, 2018, 06:12:49 pm »
Maybe reinstall the Lazarus and FPC can fix the problem.

kjteng

  • Sr. Member
  • ****
  • Posts: 259
Re: Cannot find unit file
« Reply #4 on: February 22, 2018, 08:34:41 am »
Maybe reinstall the Lazarus and FPC can fix the problem.
reinstall version 1.8.0  ... problem still exists.
reinstall version 1.6.4  ... does not have this problem.
Is it a bug in the latest version?

Handoko

  • Hero Member
  • *****
  • Posts: 5154
  • My goal: build my own game engine using Lazarus
Re: Cannot find unit file
« Reply #5 on: February 22, 2018, 09:33:20 am »
No, at least on Linux. I use Lazarus 1.8.0 FPC 3.0.4, no such problem so far.

Your 1.8.0/3.0.4 may have some leftovers (files or settings). You maybe need to perform a clean installation. If you're Ubuntu users, here is how to do the cleaning up (section step #1):

http://forum.lazarus.freepascal.org/index.php/topic,38828.msg265293.html#msg265293

Thaddy

  • Hero Member
  • *****
  • Posts: 14373
  • Sensorship about opinions does not belong here.
Re: Cannot find unit file
« Reply #6 on: February 22, 2018, 09:36:24 am »
He is using Windows, Handoko....
But anyway I can't reproduce this on Windows either.
The default installs for both 32 bit and 64 bit Windows work.

Try using fpcupdeluxe.
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

rvk

  • Hero Member
  • *****
  • Posts: 6163
Re: Cannot find unit file
« Reply #7 on: February 22, 2018, 09:46:26 am »
Maybe reinstall the Lazarus and FPC can fix the problem.
reinstall version 1.8.0  ... problem still exists.
Try a CLEAN install with separate config directory.
I always choose "secondary installation" during install.
At the question where the configuration should be stored I choose C:\Lazarus\config (where C:\Lazarus is the directory you choose to install).
That way you have a "real" clean install without the problems of old configuration files.

kjteng

  • Sr. Member
  • ****
  • Posts: 259
Re: Cannot find unit file
« Reply #8 on: February 22, 2018, 11:27:25 am »
I guess I have found the toot of my problem ...

In the earlier version, we can
(i) select (highlight) the unit name and then click ''open file at cursor" (or press control enter) to open the file; or
(ii) place the cursor on the unit name (not selecting the whole word) and click open file at cursor.

In version 1.8.0 (Windows platform), only method (ii) will work.  Can any of you confirm this ? 

Thanks & regards.

rvk

  • Hero Member
  • *****
  • Posts: 6163
Re: Cannot find unit file
« Reply #9 on: February 22, 2018, 11:37:54 am »
Ctrl + Enter still works for me on Lazarus 1.8 (and also in trunk).
Although I always use the third method (iii) Putting the cursor on the filename and pressing Alt + Arrow up.

I use the Alt+Arrow up and Ctrl+Shift+Arrow down a lot for jumping through the source.

Edit: Ah, I see the problem. You HIGHLIGHT the filename. That's not needed. But you are correct. That "was" a bug because in trunk it works again.

kjteng

  • Sr. Member
  • ****
  • Posts: 259
Re: Cannot find unit file
« Reply #10 on: February 23, 2018, 12:56:56 am »
Ctrl + Enter still works for me on Lazarus 1.8 (and also in trunk).
Although I always use the third method (iii) Putting the cursor on the filename and pressing Alt + Arrow up.

I use the Alt+Arrow up and Ctrl+Shift+Arrow down a lot for jumping through the source.

Edit: Ah, I see the problem. You HIGHLIGHT the filename. That's not needed. But you are correct. That "was" a bug because in trunk it works again.
Thanks. That clears my doubt.

jamie

  • Hero Member
  • *****
  • Posts: 6130
Re: Cannot find unit file
« Reply #11 on: February 23, 2018, 11:20:48 pm »
I like the simple CONTROL+LEFTMOUSE_CLICK over item.
The only true wisdom is knowing you know nothing

 

TinyPortal © 2005-2018