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