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 192327 - Upload File On Save doesn't work anymore
Summary: Upload File On Save doesn't work anymore
Status: RESOLVED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: FTP Support (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P3 normal with 1 vote (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-23 11:49 UTC by jurgenhaas
Modified: 2011-06-16 08:08 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 jurgenhaas 2010-11-23 11:49:42 UTC
Product Version = NetBeans IDE 6.9.1 (Build 201011082200)
Operating System = Windows Vista version 6.0 running on x86
Java; VM; Vendor = 1.6.0_16
Runtime = Java HotSpot(TM) Client VM 14.2-b01



I have configured my project under "Run Configuration" so that it uploads my files to remote server "On Save" which worked fine yesterday. When I restarted NB today and tried the same thing, it suddenly didn't work anymore. I checked all the settings and they are still correct. Also, the FTP-server is available and the permissions are set correctly too. There is nothing in the IDE Log, it just doesn't even try to copy the file via FTP and I don't know why.
Comment 1 jurgenhaas 2010-11-23 12:14:45 UTC
What's interesting though, I now copied some new files into a directory of my project using Explorer and to my surprise they got uploaded via ftp automatically. That's how I realized that the event "On Save" is obviously listening to the OS events, so it's not triggered by the "Save" function of NB which is what I though originally.

Since this happened, also files that I save in NB get uploaded. Feels like the event listener wasn't started for some reason. Maybe this helps to identify the issue?
Comment 2 Marian Mirilovic 2010-11-25 07:45:00 UTC
Reassign to FS for evaluation... feel free to reassign.
Comment 3 pgebauer 2010-12-13 11:34:49 UTC
Very likely related to issue 192440
Comment 4 Petr Pisl 2011-02-02 13:28:42 UTC
You are right the support is based on the OS events. It's remembers the file that were changed and then these files are uploaded. 

My question is whether the functionality was broken after restart of the ide as well. 

Downgrading priority, it's not possible to reproduce for me.
Comment 5 Tomas Mysik 2011-06-03 10:21:29 UTC
Batch reassigning.
Comment 6 Tomas Mysik 2011-06-16 08:08:38 UTC
(In reply to comment #1)
> Since this happened, also files that I save in NB get uploaded. Feels like the
> event listener wasn't started for some reason. Maybe this helps to identify the
> issue?

Well, the listener is started right after the project is opened in the IDE; moreover, if the listerner was not started, no files would be copied at all. It would be really great, if you could reproduce your problem with the development version of NetBeans (I can't, it works for me as expected) - if you do, please start your NetBeans with:

-J-Dorg.netbeans.modules.php.project.connections.level=FINE
-J-Dorg.netbeans.modules.php.project.copysupport.level=FINE

and attach (do not copy & paste, please) your IDE log (View > IDE Log).

Thanks for your cooperation and for reporting.

Product Version: NetBeans IDE Dev (Build 20110612-2300f9a47f86)
Java: 1.6.0_24; Java HotSpot(TM) 64-Bit Server VM 19.1-b02
System: Linux version 2.6.38-8-generic running on amd64; UTF-8; cs_CZ (nb)