Recent

Author Topic: Running Codetools examples  (Read 156 times)

soerensen3

  • Full Member
  • ***
  • Posts: 183
Running Codetools examples
« on: January 22, 2020, 10:45:22 pm »
Did anyone manage to run the finddeclaration example of code tools correctly? It can be found in lazarus/components/codetools/examples

It alway raises an ECodeToolUnitNotFound Exception for unit SysUtils.

I'm using fpcupdeluxe on linux with fpc 3.3.1-r43655 and Lazarus 2.1.0 SVN 62333M.

I know it needs a properly configured codetools.config. But I think I did that correctly. I even tried to export one from lazarus with CodeToolBoss.CompilerDefinesCache.SaveToFile and loaded it the same way but it would still give me same error.

It would be enough for me to find the definitions from loaded units for a start.
Lazarus 1.9 with FPC 3.0.4
Target: Manjaro Linux 64 Bit (4.9.68-1-MANJARO)