Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • Lazarus Lazarus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 2,102
    • Issues 2,102
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 9
    • Merge requests 9
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • FPC
  • LazarusLazarus
  • LazarusLazarus
  • Issues
  • #36314
Closed
Open
Issue created Nov 14, 2019 by FPC Admin account@fpc_adminOwner

External Tools fail to execute when the external tool is an .app application (low priority)

Original Reporter info from Mantis: Hansaplast
  • Reporter name: Hans Luijten

Description:

When adding an external tool, the tool does not get executed when the said tool is an .app.

Most likely what happens is that "someapplication.app" is being called, instead of "open someapplication.app". So the call fails.
I tried digging into the IDE code, but this went a little over my head.

To illustrate this in Terminal:

$ /Applications/BBEdit.app
-bash: /Applications/BBEdit.app: is a directory (fail)

$ open /Applications/BBEdit.app
(success - the .app starts)

Steps to reproduce:

On macOS, go to the menu "Tools" - "Configure external tools" - "Add".
Enter some title, and select an .app application (for example BBEdit, Calculator, or any app for that matter).
Click "OK" and click "OK" again to get out of the external tool editor.

Now go back to the "Tools" menu and select the newly added tool.
Nothing happens.

When running Lazarus from Terminal, clicking the newly added tool will show:
Error: (lazarus) [TExternalTools.RunToolAndDetach] BBEdit failed: executable is a directory: "/Applications/BBEdit.app"

(I have tested this with several .app's - they all come back with the same result)

Additional information:

Lazarus 2.1.0 r62054M FPC 3.0.4 x86_64-darwin-cocoa (beta)

Mantis conversion info:

  • Mantis ID: 36314
  • OS: macOS
  • OS Build: 10.14.x
  • Build: r62054M
  • Platform: Cocoa
  • Version: 2.0.7 (SVN)
  • Fixed in revision: r62254 (#18fe49e2)
  • Monitored by: » Hansaplast (Hans Luijten)
Assignee
Assign to
Time tracking