Bug 78204 - "Execute" shouldn't be available if there is no executable target.
Summary: "Execute" shouldn't be available if there is no executable target.
Status: RESOLVED INTENTIONAL
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 4.0.0
Platform: unspecified Linux
: LO wishlist
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-22 13:40 UTC by Diederik van der Boor
Modified: 2008-07-02 08:45 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Diederik van der Boor 2004-03-22 13:40:09 UTC
Version:           3.0.1 (using KDE 3.2.1, Gentoo)
Compiler:          gcc version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7)
OS:          Linux (i686) release 2.6.3-gentoo-r1

when I create a "kde simple application", I can build the project, and run it at once. For control center projects, nothing seams to happen, whatever I try. I also can't find an executable file which I can run.
Comment 1 Jens Dagerbo 2004-03-24 06:26:07 UTC
No, this is because that project type doesn't produce an executable. A Control Center Module is a dynamically loadable plugin for the KDE Control Center, not a selfsufficient executable.

Registered (installed where KDE can find them) modules can be ran seperate from kcontrol using the 'kcmshell' command.
Comment 2 Diederik van der Boor 2004-03-24 08:30:04 UTC
> No, this is because that project type doesn't produce an executable.

Pardon my ignorance, but why is the "Execute" menu option visible when I create a control center module? I've tried to press it, but nothing happened. imho it either should be grayed out, or a message should appear explaining what to do next. I hope I didn't forget something here, but it was the first thing I naturally tried to do
Comment 3 Jens Dagerbo 2004-03-24 19:18:39 UTC
It's visible because it is always visible. One could make the argument that if a project lacks an executable target, this menu entry shouldn't be available.
Maybe a nice thing for someone to code some day, when it's raining, but hardly something to make a big fuss over.

Changing to wish.
Comment 4 Diederik van der Boor 2004-03-24 22:34:13 UTC
I agree, it should have been a wish-report.

btw, one thing that confuses me, the template of a control center module doesn't provide a user-interface, or something else that's initially available when you create that project. (I think this is a valid issue for this bug after all.)
Comment 5 Hamish Rodda 2008-06-30 13:27:20 UTC
Currently if you try to execute a non-existent file, it will tell you that... are we changing the purpose of this bug to "disable run action when no project is open"?  Or do we really want to disable the action when the config is wrong (and thus further confuse the user)
Comment 6 Andreas Pakulat 2008-06-30 14:11:53 UTC
Hamish I think I don't quite understand. Its important that our run-support doesn't depend on a project being open. I don't think we need to disable the action when the config is wrong and with the above I don't see why "run" should be disabled when no project is open. Unless you're talking about a 'run the default target in current project' action, which is completely wrong in itself. There's no "current project" and there surely is no "default" target. Running a target of a project should be a context-menu entry in the project tree (or anywhere else a project context is created) and we should have a way of re-running the last "execution".

So actually I think we should close this as fixed or wontfix, as KDevelop4 will always allow to run something, no matter what projects are open.
Comment 7 Diederik van der Boor 2008-06-30 23:07:45 UTC
Andreas, my only point was the "run" button seams to be a "dummy" button in some project configurations.

if pressing the run button does nothing, could you give a reason why, or just have it grayed out (so the user at least knows, but still has to figure out why).

other then that, this is indeed a very low prio wish.
Comment 8 Andreas Pakulat 2008-07-02 08:45:52 UTC
This will be a bit different in KDevelop4, the run button will just re-run the last run executable on clicking. It can't just run the default target because it would need to have an apropriate selection in the project tree for that.

For KDevelop3 its a wontfix, for KDevelop4 its in the work to be different enough. I hope you don't mind that I close this as wontfix then.