Bug 414818 - "Launch failed. Binary not found" when first launching
Summary: "Launch failed. Binary not found" when first launching
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-other (show other bugs)
Version: Next   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
: 335102 479586 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-08-10 20:35 EDT by Marc-André Laperle CLA
Modified: 2020-09-04 15:18 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc-André Laperle CLA 2013-08-10 20:35:21 EDT
Using master as of today.

1. Create a new Hello world project
2. Press the Debug or Run button
3. "Launch failed. Binary not found"

I think it should either try to build the project or prompt the user to ask if the project should be built.
Comment 1 Marc Khouzam CLA 2013-08-14 16:12:26 EDT
I've prototyped something for this:
https://git.eclipse.org/r/15489

It does not show a dialog but simply automatically builds the project.  Maybe a dialog would be better?
Comment 2 Marc-André Laperle CLA 2014-06-25 16:55:46 EDT
*** Bug 335102 has been marked as a duplicate of this bug. ***
Comment 3 Jonah Graham CLA 2015-10-13 13:56:58 EDT
*** Bug 479586 has been marked as a duplicate of this bug. ***
Comment 4 Jonah Graham CLA 2015-10-13 13:58:33 EDT
(In reply to Jonah Graham from comment #3)
> *** Bug 479586 has been marked as a duplicate of this bug. ***

This issue is definitely having an effect on new user adoption. Here is a case in point from SO: http://stackoverflow.com/questions/33071907/a-program-file-was-not-specified-in-the-launch-configuration-on-eclipse-luna-c/
Comment 5 Marc-André Laperle CLA 2015-10-13 14:09:10 EDT
Hi Jonah, thanks for pointing this out again. I wrote another patch somewhere (a year ago!) that builds before launch but instead in the launch delegate code, where it can reuse the launch config settings. I'll resurrect that tonight (hopefully I don't forget this time!).
Comment 6 Elena Laskavaia CLA 2015-10-13 19:09:08 EDT
What works for us is to have a code in launch delegate that
accepts lc with empty binary. It will be build before launch
as usually but before actually launching it will run Auto-Pick-Binary
code where binary is picked based on build config (for example)
or user is asked to pick one