Cannot select .app bundles in external tools (patch)
Original Reporter info from Mantis: Hansaplast
-
Reporter name: Hans Luijten
Original Reporter info from Mantis: Hansaplast
- Reporter name: Hans Luijten
Description:
When adding External Tools in the IDE, the OpenDialog allows to select an .app bundle, but after selecting the bundle, a "File must exist" error appears.
This is caused by the "ofFileMustExist" in the OpenDialog options of the TFilenameEdit.
Under Linux and Windows this assumption makes perfect sense, but under macOS this will not always work as quite a few tools are actually .app bundles (directories).
I did remove "ofFileMustExist" from the LFM in the attached patch, and I'm not 100% sure this is the correct way to resolve this.
Maybe it is more elegant to do this in code (of TFilenameEdit?), but I couldn't find where the code is being called.
Note: Another bug that will follow this one (I'll first try if I can get that one fixed as well) is that external tools no longer execute (.app bundles), even though the patch of bug 36314 seems in place.
Steps to reproduce:
IDE -> Tools -> Configure External Tools -> Add -> browse for tool -> select .app bundle -> click "Open" -> Error: File must exist.
Additional information:
Lazarus 2.1.0 r62054M FPC 3.3.1 x86_64-darwin-cocoa (beta)
Mantis conversion info:
- Mantis ID: 36417
- OS: macOS
- OS Build: 10.15.1
- Build: r62054M
- Platform: Cocoa
- Version: 2.0.7 (SVN)
- Monitored by: » Hansaplast (Hans Luijten)