Bug 319210 - Run->Configure Launches ... option Action "Build" or "Build and Install" ignored
Summary: Run->Configure Launches ... option Action "Build" or "Build and Install" ignored
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: All build tools (show other bugs)
Version: git master
Platform: Debian testing Linux
: NOR normal
Target Milestone: 4.3.0
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-02 09:26 UTC by ralf.denzer
Modified: 2013-05-08 18:24 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ralf.denzer 2013-05-02 09:26:14 UTC
I'm using the git version (from today) of kdevelop
and encountered the following problem:

I created a new standard terminal application ("Hello world")
Then I set in Run->Configure Launches ...  the option Action "Build" or "Build and Install"
The build process is *not* invoked, if I change
the source code and click then Run->Execute Launch

Bye 

Ralf 



Reproducible: Always
Comment 1 Aleix Pol 2013-05-02 11:33:13 UTC
Are you adding any building dependencies?
Comment 2 ralf.denzer 2013-05-02 11:39:02 UTC
Do you mean in the CMakeFile.txt? No, it's the standard file generated during new project from template: 

project(test)

add_executable(test main.cpp)

install(TARGETS test RUNTIME DESTINATION bin)

I think, the informations given in the "Run->Configure Launches ..." besides the executable 
are not correctly handled ...
Comment 3 Aleix Pol 2013-05-02 11:47:09 UTC
In the list view below, there should be a view with the dependencies you'd like to have compiled. Or you were expecting the executable to be compiled then? (It would be a good idea, I think)

http://i.imgur.com/F1YfFr3.png
Comment 4 ralf.denzer 2013-05-02 12:03:17 UTC
You are right, the dependencies were empty, thus I added there 
the executable, i.e. in my case (*) test/test. 

Even if I set Action: Build   it now tries to build AND install 

Scanning dependencies of target test
[100%] Building CXX object CMakeFiles/test.dir/main.o
Linking CXX executable test
[100%] Built target test
Install the project...
-- Install configuration: "Debug"
-- Installing: /usr/local/bin/test
CMake Error at cmake_install.cmake:42 (FILE):
  file INSTALL cannot copy file "/home/denzer/projects/test/build/test" to
  "/usr/local/bin/test".


make: *** [install] Error 1
*** Failure: Exit code 2 ***

Remark: I will check my backups and tell you in which git master version I didn't 
had these problems ... (may take a couple of minutes)
Comment 5 ralf.denzer 2013-05-02 13:16:41 UTC
(See also BUG 319209)
So, I restored my previously used kdevplatform and kdevelop git master version from 20 Feb 2013
and compiled and installed them again. 

In the git master version from 20 Feb 2013 "Run->Configure Launches ..." behaves like expected.

if I set Action: Build  then   Run->Execute Launch   builds the project and starts the executable
in an external xterm     [ (v) Use externam Terminal: xterm ]
Comment 6 Aleix Pol 2013-05-04 00:02:20 UTC
Can you please provide the .kdev4/<projectname>.kdev4 file for your project?

I still cannot reproduce...
Comment 7 ralf.denzer 2013-05-04 09:48:26 UTC
sorry, i only posted the file to BUG 319209 and not here: 

here again (.kdev4/test.kdev4)
---- snip ------------------------------------
[Buildset]
BuildItems=@Variant(\x00\x00\x00\t\x00\x00\x00\x00\x01\x00\x00\x00\x0b\x00\x00\x00\x00\x01\x00\x00\x00\x08\x00t\x00e\x00s\x00t)

[CMake]
Build Directory Count=1
Current Build Directory Index=0
ProjectRootRelative=./

[CMake][CMake Build Directory 0]
Build Directory Path=file:///home/denzer/projects/test/build
Build Type=Debug
CMake Binary=file:///usr/bin/cmake
Environment Profile=
Extra Arguments=
Install Directory=file:///usr/local

[Launch]
Launch Configurations=Launch Configuration 0

[Launch][Launch Configuration 0]
Configured Launch Modes=execute
Configured Launchers=nativeAppLauncher
Name=New Application Launcher
Type=Native Application

[Launch][Launch Configuration 0][Data]
Arguments=
Dependencies=@Variant(\x00\x00\x00\t\x00\x00\x00\x00\x00)
Dependency Action=Build
EnvironmentGroup=default
Executable=file:///home/denzer/projects/test/build/test
External Terminal=xterm -hold -e %exe
Project Target=test,test
Use External Terminal=true
Working Directory=
isExecutable=false
---- snip --------------------------------------------------
Comment 8 ralf.denzer 2013-05-06 19:23:54 UTC
Today I built kdevelop again from git master and now it behaves as expected. Seems, that 
the fix of Bug 318995 fixes also this one. 

Thank you very much for your help!

Ralf