Hello,
Edit:
The problem vanished, when I opened another project and tried to find the same units, it worked.
Then I re-opened my recent project again and now the problem is vanished.
I recompiled the ide some hours before the problem appeared (installed OPM) without closing the project. Maybe this was the reason?
End Edit.
I have a project that compiles and runs without problem.
However, if I search for declarations then on some variables it does not find them and diplays an error instead in the messagelist:
Compile Project, OS: win32, CPU: i386, Target: PathManager.exe: Success, Warnings: 1, Hints: 11
[ .... snip ]
Codetools, Errors: 1
main.pas(8,22) Error: unit not found: FileUtil
Also the tooltips for the affected variables and units are missing.
So far I found, it cannot find units in the lcl, but will find units in the rtl. (maybe this is an accidental observation, I did not test all units)
I checked, the source and ppu files exist.
How to fix this?
I use:
Lazarus 2.1.0 r64410 FPC 3.3.1 x86_64-win64-win32/win64