Bug 182768

Summary: Running an application not possible
Product: [Developer tools] kdevplatform Reporter: Thomas McGuire <mcguire>
Component: run supportAssignee: Andreas Pakulat <apaku>
Status: RESOLVED FIXED    
Severity: normal CC: kdevelop-bugs-null
Priority: VHI    
Version: git master   
Target Milestone: 1.0.0   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Thomas McGuire 2009-02-01 19:49:43 UTC
Version:            (using KDE 4.2.0)
OS:                Linux

In the project options, I created a new run target.
As "Executable", I choose "Target", and used the only target of my project (which KDevelop helpfully autocompleted :)

Afterwards, that run target appeared in Run->Current Run Target, with the correct name.

However, Run->Execute Program gave me an error dialog: "Target 'eqOSG' is not executable.", and afterwards a second error dialog: "Could not run ''. Make sure that the path name is specified correctly.".

The target is the only target of my CMakeLists.txt and was added with a run-of-the-mill ADD_EXECUTABLE() call.

I would expect that this is recognised as an executable. Also, in case of an error, only one error dialog should be shown.
Comment 1 Thomas McGuire 2009-02-16 12:21:39 UTC
This can be reproduced with the simplest CMake file:

PROJECT(Test)
ADD_EXECUTABLE(Test main.cpp)
Comment 2 Andreas Pakulat 2009-02-25 23:18:41 UTC
yeah, the target support in the run config is completely broken. The completion complete's only folders as far as I can see, not targets.
Comment 3 Andreas Pakulat 2009-04-30 23:44:51 UTC
This works just fine now with the new launch framework.