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 204833 - Need Data File for C/C++ Remote Run
Summary: Need Data File for C/C++ Remote Run
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 7.1
Hardware: All All
: P4 normal with 4 votes (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
: 186397 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-11-08 13:24 UTC by Vladimir Kvashin
Modified: 2017-05-13 10:27 UTC (History)
1 user (show)

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 Vladimir Kvashin 2011-11-08 13:24:22 UTC
A user complained that when running a project, no data files are uploaded to the remote (you can see details in CND user forum, the topic is "Need Data File for C/C++ Remote Run"). This concerns "Auto Copy" mode only.
Comment 1 Vladimir Kvashin 2012-05-12 13:28:22 UTC
*** Bug 186397 has been marked as a duplicate of this bug. ***
Comment 2 Vladimir Kvashin 2012-05-12 13:28:46 UTC
When fixing, unit tests should be taken into consideration.
Comment 3 Vladimir Kvashin 2014-02-07 18:05:45 UTC
1) There is a "Download to" menu item
2) With SFTP mode, the problem does not exist at all
Comment 4 Mrugendra 2014-02-07 18:31:05 UTC
Valdimir,

The automatic copying happens only when one chooses "Automatic copying".
Any other mode forces us to manually copy the files using "upload to <remote host" before initiating a compilation on the remote host.
Selecting anything other than "Automatic copying" does not allow the files to be copied automatically.

We should be able to push the files without selecting anything in the menu when we build.

I think the design of development in Netbeans allows us to build simply by clicking "Build" in the right click menu of the project.
The click on "Build" copies the files (new/changed) on to the remote host (if not already copied) and initiates a build on the remote host.
The problem is that when the automatic mode is select some of the files that are transferred to the remote hosts have the contents replaced by nulls.
Comment 5 SigmaX 2015-05-30 23:05:10 UTC
I'd just like to give this a bump, since it's still a bug as of 8.0.2 under Automatic Copying.

Source files that are part of a compilation unit upload just fine.

Any files that are not referenced in a Makefile, however, are uploaded to the server in a corrupt form (all null characters).  It affects any raw text/data files that are part of the project.

It also affects .cpp and .hpp files that are not part of a makefile/compilation unit.  Even if the file has the 'Add to Parse' property enabled, only a corrupt version of the file is uploaded to the server.  The workaround suggested by 'Mrugendra@netbeans.org' still works for source files in 8.0.2:  right click on the file and select "Upload to me@myserver.com".

However, this workaround IS NOT AVAILABLE for raw text files, property files, or other kinds of data.  The only possibility I know if is to manually transfer correct versions of the corrupted files every time they change.
Comment 6 Vladimir Kvashin 2015-06-02 11:27:19 UTC
What if you use "SFTP" instead of "Auto copy"? does the problem exist in this case?
Comment 7 mathway 2017-05-10 13:01:39 UTC
I run into the same issue with corrupted files on transfer. Unfortunately, it is not possible to test SFTP option on my  setup. Are there any other ways to debug the issue?
Comment 8 Vladimir Kvashin 2017-05-11 15:23:55 UTC
(In reply to mathway from comment #7)
> I run into the same issue with corrupted files on transfer. Unfortunately,
> it is not possible to test SFTP option on my  setup. Are there any other
> ways to debug the issue?
Why is it not possible to test SFTP? I think there is a misunderstanding here. I can not imagine circumstances that would cause SFTP mode not work while Auto Copy works. 

By working via SFTP I mean, that you go to the your remote hosts list, select "Properties" from context menu and in "Access Project Files Via" select "SFTP" instead of "Auto Copy".
Comment 9 mathway 2017-05-13 10:27:26 UTC
(In reply to Vladimir Kvashin from comment #8)
> (In reply to mathway from comment #7)
> > I run into the same issue with corrupted files on transfer. Unfortunately,
> > it is not possible to test SFTP option on my  setup. Are there any other
> > ways to debug the issue?
> Why is it not possible to test SFTP? I think there is a misunderstanding
> here. 
My bad, I misunderstood your suggestion. Yes, "SFTP" transfer works properly. So the issue is with "Auto Copy" method.