Sync bug

I recently discovered Acrosync and it is exactly what I've been looking for, thank you!

I'm using v0.93 (64 bit Windows version) to sync source code between my local PC (Win 8.1 64 bit) and a remote server (Linux) using continuous upload. This is so I can edit the code locally with an IDE on Windows but build and test it on the remote server. For the most part this works great, however I'm having trouble excluding certain directories. I am syncing from C:\dev (local) to ~/dev (remote) and I have a structure similar to the following:

C:\dev
├──project1
│  ├──.hg
│  │  ──...
│  ├──build
│  │  ──...
│  ──src
│     ├──generated
│     │  └──...
│     └──...
├──project2
│  ├──.hg
│  │  ──...
│  ├──build
│  │  ──...
│  ──src
│    └──...
│  ──resources
──project3
   ──subproject1
      ──.hg
      │  ──...
      ├──build
      │  ──...
      ──src
        └──...
      ─other

What I'd like to do is ignore anything in directories with certain names, eg .hg build generated (i.e. the red portions above), but sync everything else. I want to propagate deletions (so if I delete a source file, the deletion propagates to the server), and if files exist in the red directories on either the client or server I want them to be ignored (as opposed to copied or deleted) by Acrosync.

I tried just specifying ".hg build generated" (without the quotes) for the Don't sync value. Is that correct? It appears to work at first but if I create a new directory lots of stuff gets deleted that shouldn't. For example start with the above structure containing a few files (here's a premade example if you want). Create a profile to sync it, set Don't sync configured as described and set Continuous upload enabled. Now try creating a directory like C:\dev\project2\generated or C:\dev\project2\abc and watch what happens... probably you'll see a few unrelated things get deleted! I take it that is a bug rather than expected behaviour?! If you can't reproduce it just try creating and deleting some directories a few more times and you should see it. Creating, modifying and deleting files seems to be OK, as far as I can see it is just creating and deleting directories that trigger the problem.


Aside from the problem above, there are a few small usability issues that I noticed, nothing too major but hopefully you'll consider them for me:

- The download link is for v0.92 rather than v0.93.
- The UI feels a bit spread out. I realise it is subjective, but I'd like to see a more polished and somewhat more compact UI for the profile tab.


I really look forward to Acrosync becoming stable, it'll be very useful for me.

Many thanks for listening!

Comments

  • With your detailed bug report, I was able to quickly replicate the bug and figure out what was wrong.  Thanks for that!

    The issue here was that the include/exclude patterns were too restrictive under the selective sync mode, so if you turn on the Propagate Deletions option, files under the same parent directory will be removed.

    A new test for this case has been added and the fix is verified to be working.

    New builds for version 0.93 have been uploaded:

  • As for the other minor issues:

    - Version 0.93 is not ready for public release

    - You're right -- the main window is too large on my laptop.  I'll reduce the size a little bit, probably not much, otherwise it would look too small on high-resolution screens.

  • edited September 2014
    Thanks for the incredibly fast turnout on fixing that bug, great stuff! I've installed the new version and all looks good now.

    As far as the window size goes, it's not so much the size of the dialog itself but the large vertical spacing between each row, the wide buttons, and the extra height of the text fields that look out of place to me. It definitely looks like it uses too much space compared to all other applications on my PC. Here's a screenshot highlighting the areas I'm referring to. The size of the text is perfect so I don't think changing the spacing would make a difference to readability for high DPI screens. Anyway no big deal, the functionality's far more important to me than the look and feel.

    A couple of other minor niggles I've noticed so far:
    • single or double clicking on the tray icon doesn't always restore the window (or bring it to the front). I can't reliably reproduce the behaviour though.
    • when I'm editing code, my IDE auto-saves files often. As a result there are small syncs happening every few seconds, and each time a notification bubble is triggered by the systray. Would it be possible to have an option to turn those off while in continuous upload mode?
    Thanks again!

    Chris
  • -  I'll definitely try to polish the interface for the next version.

    -  About the tray icon -- yes, there seems to be a bug here.  Single click should always work but it doesn't appear so.

    - Not sure about the notification.  It is easy to add this option, but I'm leaning towards not to, since the notifications provide a sense of assurance that is almost needed everywhere.  In your case, I think your IDE should auto-save to a temporary file, so maybe the real solution is to add the temporary file to excluded files. 

    Thank you for finding the bug.
  • My IDE (IntelliJ IDEA) isn't auto-saving to a temporary file, it really does save any edits directly to the source files as and when it feels like it. It's actually a fantastic feature once you're used to it - see here for some details: http://devnet.jetbrains.com/docs/DOC-191

    I do understand your concern about being able to disable the notification though and can appreciate my situation is a bit of a corner case (or is it? It would be interesting to hear if others are using Acrosync in a similar way). Perhaps a command line flag that can disable the bubble notifications would be the answer, so the average user doesn't see any option on the GUI? Personally what would be ideal for me was if the notification was there but more subtle, eg changing the colour of the tray icon red to indicate activity instead of the balloon popup.

    Thanks for listening.
  • I'll put it on hold until more people request this feature.  However, for the next version, I'll add a per-profile registry key to disable auto-sync notifications.
  • A registry key is a great idea, and I like the per-profile idea too. Thank you so much for implementing this!

    I only installed the Acrosync trial yesterday but I've now bought a licence :-)
  • I really appreciate your support.  Acrosync will get better with users like you!
Sign In or Register to comment.