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.
Summary: | Option to enable/disable remote synchronization | ||
---|---|---|---|
Product: | php | Reporter: | dazweeja |
Component: | FTP Support | Assignee: | Tomas Mysik <tmysik> |
Status: | NEW --- | ||
Severity: | normal | CC: | barrystaes, jimbrooking |
Priority: | P3 | ||
Version: | 8.0 | ||
Hardware: | PC | ||
OS: | Windows 8 x64 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
dazweeja
2011-09-22 01:11:11 UTC
Not sure whether it is doable since we (PHP) simply get the events from FS. However, you can try to disable auto-scanning of sources [1], it might work for you. Let me know if it helps you, thanks. [1] Tools > Options > Miscellaneous > Files Thank you for your fast response. I disabled that option but it doesn't seem to fix the problem because a) it still scans and makes changes to remote files on startup and b) there's no auto-scan (obviously) which is actually useful. I was hoping for a solution where "Remote Synchronization" and "Upload on Save" were split into separate options. That is: 1. Remote synchronization: keeps local and remote files synchronized. Listens and repsonds to FS events. 2. Upload on Save: uploads/deletes/moves only in response to internal IDE events, eg. an IDE file save initiates the FTP upload procedure (chained command style). Auto-scanning still takes place but no action is taken on remote files in response to FS events. I guess one issue with this is dealing with conflict in externally-changed open files. For this, Dreamweaver brings up a dialog, "File has been modified externally. Do you want to reload it?", which is sufficient. (In reply to comment #2) > I was hoping for a solution where "Remote Synchronization" and "Upload on Save" > were split into separate options. Unfortunately IMHO not possible but I will try to investigate (after NB 7.1). (In reply to comment #3) > (In reply to comment #2) > > I was hoping for a solution where "Remote Synchronization" and "Upload on Save" > > were split into separate options. > > Unfortunately IMHO not possible but I will try to investigate (after NB 7.1). I know I would benefit from a way to temporarily disable remote sync when I need top make external changes. Perhaps the "Upload Files" option can be replicated to a more accessible place. This way a user could easily switch from "On Save" to "Manual", or "On Run" when making external changes that are not intended to be uploaded to the server. It would have to somehow be associated with the project in question as it is possible to have multiple projects open simultaneously. This is not exactly the original request but it may still be deemed helpful. I know it would be for me. I am with virgokid@netbeans.org and option to easily switch from "On Save", "Manual" or "On Run/AutoSync" for all project as also for individual folders/files. (In reply to Tomas Mysik from comment #1) > Not sure whether it is doable since we (PHP) simply get the events from FS. Thanks, i was looking for this info. I also encountered this issue in NetBeans 8. While i deleted the local copy of a big binary directory via Windows Explorer, NetBeans triggered and started deleting this via FTP as well. I'd advocate having Upload-On-Save actually trigger on the IDE save operation, and making Upload-On-FileSystem-Change a seperate option. I no longer dare having NetBeans8 open while doing ANY file mutations outside of it, i now wonder what else it changed on the FTP site without my intention. :S Not a defect, please do not change it. Thanks. I also think that "upload on save" does not imply synchronization, and the two should not be joined into a single feature. If it's not possible to separate the two, the configuration dialog should at least explain the full consequences of using the "upload on save" feature. While no-one seems to be suggesting the "synchronization" be eliminated, it certainly would be an improvement to usability to give more granular control over this feature. I second previous commentator. This is danger behavior of netbeans to sync changes maked outside of IDE. Please add option "Upload external changes" like in PhpStorm: "Select this check box to have PhpStorm upload also the local changes that were made using a third-party tool." I agree with the request and I think this should have a higher priority because this can be a dangerous feature! And also I don't consider it enhancement but a defect, because upload files "On Save" doesn't imply synchronization of files saved outside Netbeans and is misleading. I had a few cases of some files on my server being overwritten without my consent just because I opened a project after a few months of not working on it and suddenly I saw some ftp activity in the log. In certain scenarios this could be fatal! If you are only getting events from the FS then can't Netbeans be changed so that you get events from Netbeans that initiates/finishes file saving process? In my opinion this should happen because the current implementation is inconvenient, dangerous and misleading - it can sometimes be handy but only as an optional behaviour. As a minimal fix I think the naming should be changed to something like "On Save by Any Application" or to something meaning "Synchronization". This "automatic sync outside the IDE" has damaged more than one file on me. Scenario: 1. Outside the IDE, start to FTP a large file from my site on the server 2. NetBeans sees the partially downloaded file in the local directory and starts uploading it to the file being downloaded. 3. non-Netbeans FTP gets an error because the remote file can't be accessed. 4. Both files - on my local machine and on the server - are truncated and broken. This is clearly a bug. It has broken many graphics images, PDFs, and error logs! The original report "Option to enable/disable remote synchronization" is not a bug, definitely. If you have any issues, please submit them as a new report with IDE log and exact steps to reproduce. Thanks. I also think that "upload on save" does not imply synchronization, and the two should not be joined into a single feature. I also think that "upload on save" does not imply synchronization, and the two should not be joined into a single feature. This is absolutely a bug. This has broken live sites in production on me numerous times. It also tries to push directories like node_modules to the live server when I run npm install or npm update from the command line, which frequently crashes the IDE when there is a large number of development resources (which should not be pushed live anyhow). This crashed my browser fifteen consecutive times trying to push TypoPro to live when I didn't want any of those folders pushed live, because the intention was to set up a grunt build step that cherry picked only the fonts needed for production, but Netbeans gleefully decided the entire 4GB package should go live immediately. It also ignores the "ignored folders" on occasion and pushes it up anyhow. I agree also that "upload on save" does not have anything to do with "upload all of the things immediately no matter where they were changed, inside of Netbeans or elsewhere". There is no indication that this dangerous behavior is something to consider until after it has already messed up your day. There is no option to break the automatic process to stop and/or minimize the damage. There is no option to selectively choose what folders automatic uploads apply to without ignoring the directory entirely and making it inaccessible from the IDE. This is a bug. This is a very dangerous, poorly thought out bug masquerading as a feature. Calling this intentional or a feature is irresponsible. Trying to play this off as intentional is also a bug. Fix that too. This is absolutely a bug. This has broken live sites in production on me numerous times. It also tries to push directories like node_modules to the live server when I run npm install or npm update from the command line, which frequently crashes the IDE when there is a large number of development resources (which should not be pushed live anyhow). This crashed my browser fifteen consecutive times trying to push TypoPro to live when I didn't want any of those folders pushed live, because the intention was to set up a grunt build step that cherry picked only the fonts needed for production, but Netbeans gleefully decided the entire 4GB package should go live immediately. It also ignores the "ignored folders" on occasion and pushes it up anyhow. I agree also that "upload on save" does not have anything to do with "upload all of the things immediately no matter where they were changed, inside of Netbeans or elsewhere". There is no indication that this dangerous behavior is something to consider until after it has already messed up your day. There is no option to break the automatic process to stop and/or minimize the damage. There is no option to selectively choose what folders automatic uploads apply to without ignoring the directory entirely and making it inaccessible from the IDE. This is a bug. This is a very dangerous, poorly thought out bug masquerading as a feature. Calling this intentional or a feature is irresponsible. Trying to play this off as intentional is also a bug. Fix that too. |