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 198813 - Can not run or debug a project if the project folder is not in the source root
Summary: Can not run or debug a project if the project folder is not in the source root
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 7.0.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-23 12:17 UTC by Alexander Pepin
Modified: 2011-06-02 21:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
the project to reproduce the bug (40.00 KB, application/octet-stream)
2011-05-23 12:17 UTC, Alexander Pepin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pepin 2011-05-23 12:17:17 UTC
Created attachment 108454 [details]
the project to reproduce the bug

It looks like a regression after fixing bug #194418
Steps to reproduce:
- open the attached project
- set any remote host using "Automatic copying"
- build the project, it's built successfully
- run the project
Result: Run fails due to non-existent path to executable. In fact the path contains ".../testAssignBasicType/cplusassigncnd.gdb.AssignBasicType/../cplusassign/cplusassign" part which is not correct as the project folder "cplusassigncnd.gdb.AssignBasicType" is not copied to the remote host.
Comment 1 Leonid Lenyashin 2011-05-23 15:37:18 UTC
Please evaluate
Comment 2 Vladimir Kvashin 2011-05-23 18:22:00 UTC
This occurred after fixing issue 183363 -
project metadata for makefile-based projects isn't now supposed to be synchronized to remote host => correspondent directory is not created => relative path can not be properly resolved
Comment 3 Vladimir Kvashin 2011-05-24 08:24:03 UTC
I pushed a fix:
http://hg.netbeans.org/releases/rev/f7a77f4af478
http://hg.netbeans.org/releases/rev/e1a5da440313

However the attached project still can not be run because by default, it supposes that run directory is project metadata directory, which is not shared/copied.

I filed this as a separate issue #198843
Comment 4 Vladimir Kvashin 2011-05-30 07:28:29 UTC
http://hg.netbeans.org/releases/rev/830011ba3391
Comment 5 Quality Engineering 2011-05-31 19:35:17 UTC
Integrated into 'main-golden', will be available in build *201105310954* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/a8fe55880683
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fixed #198813 - Can not run or debug a project if the project folder is not in the source root
(transplanted from 830011ba339125a503e285fe4c16928471656101)
Comment 6 Quality Engineering 2011-06-01 13:20:29 UTC
Integrated into 'main-golden', will be available in build *201106010401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/a8fe55880683
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fixed #198813 - Can not run or debug a project if the project folder is not in the source root
(transplanted from 830011ba339125a503e285fe4c16928471656101)
Comment 7 Quality Engineering 2011-06-02 21:03:21 UTC
Integrated into 'main-golden', will be available in build *201106021001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/a8fe55880683
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fixed #198813 - Can not run or debug a project if the project folder is not in the source root
(transplanted from 830011ba339125a503e285fe4c16928471656101)