View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0036780 | Lazarus | IDE | public | 2020-03-10 07:59 | 2020-07-19 08:47 |
Reporter | Trevor Roydhouse | Assigned To | Dmitry Boyarintsev | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | reopened | ||
Platform | 2018 Apple Mac mini | OS | macOS | ||
Product Version | 2.1 (SVN) | ||||
Target Version | 2.0.8 | ||||
Summary | 0036780: IDE cannot run macOS app using the "run without debugging" option | ||||
Description | I cannot run any application from within the IDE using the Menu Run > Run without debugging option. I can run any application within the IDE using the normal Menu > Run > Run or using the green triangle on the coolbar. I have attached the error dialog when attempting to run without debugging. | ||||
Steps To Reproduce | Menu > Run > Run without debugging from within the IDE. | ||||
Tags | cocoa, IDE, MacOS, RunCommand | ||||
Fixed in Revision | 62875 63598 | ||||
LazTarget | - | ||||
Widgetset | Cocoa | ||||
Attached Files |
|
related to | 0037324 | closed | Martin Friebe | Cannot run application without debugging / FileExistsUtf8 |
related to | 0037344 | new | Cannot run application with debugging |
|
|
|
try to go to Project Options -> Application and click "Create Application Bundle" For some odd reason, "Run" and "Run without debugger" are using different branches of code. "Run" actually verifies with the application might need to have a bundle and suggests automatically create one, if it's missing. While "Run without debugger" doesn't do such check and eventually fails to run. |
|
please test and close if ok |
|
Problem still exists in FPC trunk r44744 2020-04-17 10:15:30 +1000 (Fri, 17 Apr 2020) and Lazarus trunk r63028 2020-04-20 13:10:49 +1000 (Mon, 20 Apr 2020). open path_to_app_bundle works as does running the linked to executable from the Terminal. Just Lazarus run without debugging gives the error dialog still. (Sorry for the delay - I had not realised I needed to enable emails :) |
|
Problem still exists |
|
It appears that FileExistsUTF8() is the problem - I also tried FileExists() - commenting these out as below, and I can again "Run without debugging". --- main.pp (revision 63234) +++ main.pp (working copy) @@ -7434,9 +7434,9 @@ RunWorkingDirectory := ExtractFilePath(Process.Executable); Process.CurrentDirectory := RunWorkingDirectory; - if RunAppBundle - and FileExistsUTF8(Process.Executable) - and FileExistsUTF8('/usr/bin/open') then + if RunAppBundle then + //and FileExistsUTF8(Process.Executable) + //and FileExistsUTF8('/usr/bin/open') then begin // run bundle via open Process.Parameters.Insert(0,Process.Executable); |
|
please test and close if ok |
|
Fixed! Thanks Dmitry. |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-03-10 07:59 | Trevor Roydhouse | New Issue | |
2020-03-10 07:59 | Trevor Roydhouse | File Added: Screen Shot 2020-03-10 at 5.54.32 pm.png | |
2020-03-10 08:02 | Trevor Roydhouse | Tag Attached: IDE | |
2020-03-10 08:02 | Trevor Roydhouse | Tag Attached: RunCommand | |
2020-03-10 08:02 | Trevor Roydhouse | Tag Attached: cocoa | |
2020-03-10 08:02 | Trevor Roydhouse | Tag Attached: MacOS | |
2020-04-02 06:40 | Dmitry Boyarintsev | Note Added: 0121834 | |
2020-04-03 16:39 | Dmitry Boyarintsev | Target Version | => 2.0.8 |
2020-04-03 16:39 | Dmitry Boyarintsev | LazTarget | => - |
2020-04-03 16:39 | Dmitry Boyarintsev | Widgetset | Cocoa => Cocoa |
2020-04-04 07:26 | Dmitry Boyarintsev | Assigned To | => Dmitry Boyarintsev |
2020-04-04 07:26 | Dmitry Boyarintsev | Status | new => resolved |
2020-04-04 07:26 | Dmitry Boyarintsev | Resolution | open => fixed |
2020-04-04 07:26 | Dmitry Boyarintsev | Fixed in Revision | => 62875 |
2020-04-04 07:26 | Dmitry Boyarintsev | Widgetset | Cocoa => Cocoa |
2020-04-04 07:26 | Dmitry Boyarintsev | Note Added: 0121882 | |
2020-04-20 12:55 | Trevor Roydhouse | Note Added: 0122269 | |
2020-04-25 01:09 | Trevor Roydhouse | Status | resolved => assigned |
2020-04-25 01:09 | Trevor Roydhouse | Resolution | fixed => reopened |
2020-04-25 01:09 | Trevor Roydhouse | Note Added: 0122396 | |
2020-06-01 09:59 | Trevor Roydhouse | Note Added: 0123161 | |
2020-07-10 20:41 | Dmitry Boyarintsev | Relationship added | related to 0037324 |
2020-07-14 22:56 | Dmitry Boyarintsev | Relationship added | has duplicate 0037344 |
2020-07-15 23:09 | Martin Friebe | Relationship replaced | related to 0037344 |
2020-07-19 04:18 | Dmitry Boyarintsev | Status | assigned => resolved |
2020-07-19 04:18 | Dmitry Boyarintsev | Fixed in Revision | 62875 => 62875 63598 |
2020-07-19 04:18 | Dmitry Boyarintsev | Widgetset | Cocoa => Cocoa |
2020-07-19 04:18 | Dmitry Boyarintsev | Note Added: 0124164 | |
2020-07-19 08:47 | Trevor Roydhouse | Status | resolved => closed |
2020-07-19 08:47 | Trevor Roydhouse | Note Added: 0124166 |