|
Just had a run in with the auto sync that leaves me even more confused...
Having managed to download a good chunk of my project, in the workspace I renamed mysubdir to mysubdir.bac, then I recreated a new directory called mysubdir and set about refactoring the original code that was in the original mysubdir (now called mysubdir.bac). When I was done I had fewer files in the refactored mysubdir. Then I clicked to sync the folder that both mysubdir and mysubdir.bac were in. Rather than copying my changes and realising that files had been removed from the newer version (my local copy) of mysubdir, it uploaded the new mysubdir.bac (which was what I wanted) but then populated my local copy of mysubdir with the old files from the remote servers older version of the directory. It didnt overwrite my changed files, but did download all the files that I had refactored in to other code and so didnt need anymore. Is this behaviour by design? Obviously it's not a show stopper as I knew which files I had got rid of so I deleted them again using the Explorer ftp view, but it doesnt seem that my local copy and remote versions were updated as they should be. Am I doing something wrong? |
||||||||||||
|
|
Ive investigated this a bit further and it seems that:
- if I delete a file locally and sync, the auto sync feature re-downloads the server version - if I delete a file remotely in explorer the auto sync feature re-uploads my local version So it seems that the only way to remove a file is to delete my local copy and then go in to the explorer and find the file and delete it remotely as well. Is this right? Or am I missing something? |
||||||||||||
|
|
I know I'm kind of having a conversation with myself here, but wanted to post again in case anyone reads and spends ages repying to my long post a couple of lines above.
Having spent a few days teething I'm now discovering the remarkable value that phpEd brings to having an entire local copy of the project. The ease of finding declarations of functions and classes in a huge project is astounding. And when I called one of my own functions from a library several includes away, and got a pop-up with my own comment code in documenting the function, my jaw hit the floor... I'm converted. [edit: though I'd still appreciate some comment on the deleting files confusion in the above two posts.... ] |
||||||||||||
|
|
from support:
|
||||||||||||||||
|
|
Hey Blackfire. Thought I'd already replied to this but I must have been dreaming.
Youve outlined pretty much exactly what the problem is from support:
I refactor my libraries and classes locally, and extract functionality from other large libraries in to streamlined ones. A common task I think in large projects. But when I publish to the testing server, the redundant files and directories are not removed on the test server. Doesnt matter what combination of upload or download or auto sync I use. Causes a major problem as we use the symfony framework, which is heavily dependent on autoloading all contents of certain lib directories. So redundant files are still loaded and that can be troublesome. And even if they werent autoloaded, having 'dead' files within the project isn't good practice. Someone else on the team refactors code and commits to the svn, then when I check out the latest version on to my test server and sync locally my local directory structure is not kept up to date with the removed files and directories. This means that when Ive done working and publish to the test server, and then check in my code, I reintroduce old directories and files to the project svn without knowing. I think there needs to be a way to fully sync a local copy with the remote debuging server, even if it is a seperate option to the current ones. PhpEd allows me to set up a remote server for debugging so I assume this is an acceptable way to work - but if the sync tools can't be relied on to sync then it doesnt seem feesable to me. I don't think I can be the only one working in this way? My conversation with support though yielded a good idea - using sftp / expandrive or similar to trick phpIDE in to thinking it is working locally. Means you can use the full range of project / debugging functionality, while effectivley still working over an ftpconnection I'm testing it at the moment. I still think there should be an 'actual' sync button though for publishing, that does actually sync. While the sftp thing might work, it is a bit of a clumsy work around and performance is definately reduced compared to real local coppies. |
||||||||||||||
|
|
Just to contradict you and show how this is - in fact - better for you in the long run. Firstly, it sounds like you are editing files on the production server directly. This is very bad practice. Files should always always be modified and tested in a testing environment first (whether on your local machine or a remote testing server first - I use both) before going to production. Not having the ability to directly upload to a server gives you the ability to test it on your local machine and make sure the changes don't break anything before pushing them up. This can save you untold heartache in the end. As for files being out of sync, have you ever heard of wonderful tools commonly looped into the group of "version control". These are some of the most useful tools I use. My favorite flavors are Subversion and Git. They allow you to make changes from many location (and multiple people to make changes) to the same file and have all the changes gracefully (in theory) merged together in the end. As long as you commit your code changes after making them. Yes, you still have to "upload" (commit) and "download" (update) all the changes on all the different machines, but it allows you to accurately track changes - as well as removing bad changes (very quickly) that you didn't want. Another tool that can save you a lot of grief - or your job. You may think version control sounds like a waste of time and energy, but just wait. Some day, it'll save your life. As for me, and myself, I use NuSphere's FTP functions for my releases to production. I dev/test locally, use subversion to sync to a remote testing server, and once I'm ready to release, use the NuSphere Smart Sync functionality to push the files to the production server. It works like a charm. |
||||||||||||||
|
|
Still can not open/save expandriven remote disk. Create project from this disk is ok, but can not save/open files directly to/from it. phpEd says 'Path not found'.
|
||||||||||||
|
|
FIXED in 5916. Thanks.
|
||||||||||||
|
|
I have this exact problem with WebDrive 8.21 on Windows 7 Home Premium, although it works with the same setup on another machine (apart from the OS being Ultimate, not Home Premium). I am using phpEd 5.9.5919. |
||||||||||||||
|
Work off FTP site? |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by