This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 200591 - Run command binary is being checked in project folder not run folder
Summary: Run command binary is being checked in project folder not run folder
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.0.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Egor Ushakov
URL:
Keywords:
Depends on: 202119
Blocks:
  Show dependency tree
 
Reported: 2011-08-02 09:26 UTC by thyplosion
Modified: 2011-09-24 14:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description thyplosion 2011-08-02 09:26:11 UTC
I have a C project in which the final binary is not on the same directory as the project. Because I use a VCS, I have my sources under ~/src/bla and the project files under ~/NetBeansProjects/bla.
When I try to run the debugger, the action fails with an error message saying "/home/thyplosion/NetBeansProjects/bla/binary" does not exist or is not an executable".
Going into project properties on the "Run" section, I clearly indicated that the "Run directory" is ~/src/bla/binary

This is stopping me from starting a debug session. It was working fine on 7.0 and stopped working when I upgraded to 7.0.1.
Comment 1 Egor Ushakov 2011-08-11 11:46:09 UTC
I'm not sure I understand correctly: do you specify path to the binary as the run directory?
Run directory should be a folder, not a binary. Have you mistyped something?
Comment 2 Egor Ushakov 2011-08-11 12:34:11 UTC
I think I understand the problem, please verify steps to reproduce:
- set run directory to /tmp
- set run command to abc
- Run or debug the project
It still checks for executable: <PROJECT PATH>/abc not /tmp/abc
Comment 3 Egor Ushakov 2011-08-11 12:59:11 UTC
There are two issues here:
1. IDE does not understand ~ in run command and probably run directory fields (e.g. ~/abc will not be understood)
2. if run command is not absolute it checks for executable in project folder not in run folder

as a workaround please specify absolute paths without ~
Comment 4 Egor Ushakov 2011-09-23 15:47:29 UTC
'~' issues are fixed in the bug 202119,
the rest (base dir is used for binary validation instead of run dir) is fixed in:
http://hg.netbeans.org/cnd-main/rev/5ae85a1c600b
Comment 5 Quality Engineering 2011-09-24 14:02:50 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/5ae85a1c600b
User: Egor Ushakov <gorrus@netbeans.org>
Log: fixed #200591 (Run command binary is being checked in project folder not run folder)