TFppkgHelper ignores environment compiler configuration
Original Reporter info from Mantis: Martok @martok
-
Reporter name:
Original Reporter info from Mantis: Martok @martok
- Reporter name:
Description:
(Pretty sure this was discussed years ago, but the only one I could find was #35254 which is not exactly the same issue.)
Only in the IDE, the fppkg integration ignores the compiler that is configured in EnvironmentOptions and instead attempts to find one in PATH. If it fails, an EPackagerError('Could not find a fpc executable in the PATH') is raised. There are ways to fix that for one compiler root with a hand-crafted fppkg.cfg, but then using another compiler causes a problem like the one in #35254.
During compiling, the configured FPC is called directly and that finds the correct fppkg and its configuration.
Since everything actually works even if the init fails, this is mostly annoying during debugging the IDE since there's always a bunch of extra exceptions.
Mantis conversion info:
- Mantis ID: 38684
- Platform: win32