View Issue Details

IDProjectCategoryView StatusLast Update
0036780LazarusIDEpublic2020-06-01 09:59
ReporterTrevor Roydhouse Assigned ToDmitry Boyarintsev  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionreopened 
Platform2018 Apple Mac miniOSmacOS 
Product Version2.1 (SVN) 
Target Version2.0.8 
Summary0036780: IDE cannot run macOS app using the "run without debugging" option
DescriptionI 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 ReproduceMenu > Run > Run without debugging from within the IDE.
Tagscocoa, IDE, MacOS, RunCommand
Fixed in Revision62875
LazTarget-
WidgetsetCocoa
Attached Files

Activities

Trevor Roydhouse

2020-03-10 07:59

reporter  

Dmitry Boyarintsev

2020-04-02 06:40

developer   ~0121834

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.

Dmitry Boyarintsev

2020-04-04 07:26

developer   ~0121882

please test and close if ok

Trevor Roydhouse

2020-04-20 12:55

reporter   ~0122269

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 :)

Trevor Roydhouse

2020-04-25 01:09

reporter   ~0122396

Problem still exists

Trevor Roydhouse

2020-06-01 09:59

reporter   ~0123161

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);

Issue History

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