PR# 13664 Project Tasks do not run
Problem Report Summary
Submitter: peter_gummer
Category: EiffelStudio
Priority: High
Date: 2007/11/22
Class: Bug
Severity: Critical
Number: 13664
Release: 6.1.7.1223
Confidential: No
Status: Closed
Responsible:
Environment: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9
Synopsis: Project Tasks do not run
Description
In Project Settings, I set up a post compilation task. When I compile, either by pressing F7 or Ctrl+F7, nothing happens.
To Reproduce
1. Project | Settings. 2. Under Advanced, right-click on Tasks. 3. Add a post compilation task. 4. As the command, enter: cmd /c "dir && pause" 5. Close the Project Settings window. 6. Compile the project. Nothing happens!
Problem Report Interactions
It has been fixed in rev#74479. Thank you for reporting.
Yes, I added it in an inherited target. Ok, I've just tried it again, this time in the target that's actually being compiled, and yes, it works there. You've found the bug! By the way, it's nothing to do with this specific command. I raised this issue as a simple test case to demonstrate the problem which I discovered when trying to run another command. I think I was investigating whether issue #12497 had been fixed yet, because the ability to write post-compilation tasks is useless for any scenario that I can think of unless we have some way of knowing where the project path is.
Did you add the command in a parent target and compile the inherited target? Note that those tasks do not inherit.
I exactly followed your producible steps, except that I opened an compiled project before hand. I have exactly the same element in my .ecf as well. I thought it had something to do with `console app' option (I enabled it). But I still got correct behavior after disabling it. Just to be sure, can you make "cmd /c "dir && pause"" work in Start -> Run dialog? Or try putting a different post compilation command and see if it is funtioning.
I just tried it in 6.2.7.3753. It definitely is not working. There's no "dir" output in the Console or Output or C Output tools. No Windows command window popped up. Nothing at all happened; C compilation just completed normally. What steps did you do to make it work? I compiled by selecting the Project | Compile menu. Looking at my .ecf file, it has this: <post_compile_action command="cmd /c "dir && pause""> </post_compile_action>
Can you still reproduce this in 6.2? It seems working fine for me.