Bug 473758 - Default value for "Remote path for C/C++ Application" is not set
Summary: Default value for "Remote path for C/C++ Application" is not set
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf (show other bugs)
Version: Next   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-28 09:57 EDT by Chandrayya CLA
Modified: 2020-09-04 15:25 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chandrayya CLA 2015-07-28 09:57:41 EDT
Currently the remote path for C/C++ applicataion is not set. Please set it to:
/tmp/<ProjectName>

Are there any reasons for not setting the default value to this?

How to reproduce:

1. Create hello world c application. Build the project. 
2. Create remote connection.Select this project in "Project explorer view".
3. Click on Run > Debug configuration. In Degug configuration dialog. Double click on "C/C++ Remote Application" launcher type. Automatically degub configuration will be created for the above said project.
4. Project, C/C++ Application, Connection fields are populated with default values, as the "Remote path for C/C++ Application" field is empty we will get "Remote executable path is not specified" error.

But when you click on "Search Project" button and select the same application again "Remote path for C/C++ Application" filed will be updated to:
/home/chandrayya/mars/eclipse/runtime-devrocket.product/fdf/Debug/fdf (In my case)
Comment 1 Marc Khouzam CLA 2015-07-28 10:29:46 EDT
If you press on the Properties button you will see that each remote connection has a remote workspace possibly specified.  This info is used when filling out the "remote absolute file path..." field.  So I don't think /tmp/<ProjectName> is necessary.

The real problem is that there should be a default value in that field when created, and it should probably be based on the default Connection chosen.

There seems to be more problems with this field.  It seems that as soon as something is specified, it no longer automatically updates even when we change the Connection or Project.  I guess that makes sense if the user typed something since it would be annoying to delete what they typed (you can imagine that they time the remote path and then select the connection that matches).  But a nicer solution would be to keep track if the entry was an automatically set one or not, and if it is automatically set, then it should change automatically to the connect + project properties, when the project/binary or connection is changed.
Comment 2 Chandrayya CLA 2015-07-29 06:02:24 EDT
How do I specify the remote workspace while creating connection?In connection create wizard I am not able to find it.

At the time of launcher creation there should be one default value for all the fields. But "Remote path for C/C++ Application" field is kept blank.

Note that when I click  on "Search Project" button and select the same application again "Remote path for C/C++ Application" field will be updated to:
/home/chandrayya/mars/eclipse/runtime-devrocket.product/fdf/Debug/fdf (In my case)

Is it not bug?
Comment 3 Marc Khouzam CLA 2015-07-29 10:11:21 EDT
(In reply to Chandrayya Kumarswamimath from comment #2)
> How do I specify the remote workspace while creating connection?In
> connection create wizard I am not able to find it.

You can click "properties" next to the connection box.

> At the time of launcher creation there should be one default value for all
> the fields. But "Remote path for C/C++ Application" field is kept blank.
> 
> Note that when I click  on "Search Project" button and select the same
> application again "Remote path for C/C++ Application" field will be updated
> to:
> /home/chandrayya/mars/eclipse/runtime-devrocket.product/fdf/Debug/fdf (In my
> case)
> 
> Is it not bug?

Yes, I agree with that.  It is just that the default value that should be put there should not be /tmp/<project> but should be 
<connection remote workspace>/<project>