GithubHelp home page GithubHelp logo

Comments (6)

Nevitones avatar Nevitones commented on August 23, 2024

Hi @danielrndm
I'm having a similar issue here, it seems that the whole directory content where a file is changed/added is erased.
As I don't have all files versioned I end up losing files, sometimes standard AEM files.

It has been happening since I started running aemsync from a gulp task.

Before that I was running aemsync from the command line by typing:
aemsync
without any parameters.

Maybe it's only about a misuse of the plugin inside gulp.
I would really appreciate if somebody could share any clue about it!
Tks

from aemsync.

gavoja avatar gavoja commented on August 23, 2024

Syncing the parent directory rather than a file can indeed happen in certain cases:

  • Ading, removing or renaming files or directories.
  • Changing .content.xml.
  • Changing any file or directory inside nt:unstructured subtree. In this case the first non nt:unstructured ancestor will be pushed. This behaviour ensures proper handling of self-contained unstructured blocks of nodes such as dialogs that are distributed across multiple files (see #19).

The above is now in readme. Can you please check if the behaviour is fixed in 2.0.0. If not, could you please run aemsync in debug mode (-d flag) and send me the output?

from aemsync.

aguacatedan avatar aguacatedan commented on August 23, 2024
  • Commnd: aemsync -d > C:\Users\daniel.hernandez\Documents\daniel\aemsync-log.log
  • File modified: jcr_root/etc/designs/subaru/vehicles/css/components/compare-modal/src/compare-modal.css
  • Log: aemsync-log.txt
  • Setup: Windows 10 (upgraded a couple of weeks ago). AEM 6.2

I ran aemsync without any other options/parameters from jcr_root.

from what I can tell, there's a aemsync.txt file created for whatever reason and any output to that file triggers changes, thus syncing the entire jcr_root folder. But the thing is that, I've seen this happening even if I run it from jcr_root/etc/ folder. In your docs, you mentioned that any changes in files directly under jcr_root won't trigger a sync job, but (as far as I can tell), it is triggering it. Any option to avoid creating that text file and see if that's the problem?

from aemsync.

gavoja avatar gavoja commented on August 23, 2024

The entire designs directory ends up in a package due to the following change reported by Windows:

Changed: C:\Users\daniel.hernandez\Documents\subaru\svn\workspaces\starlink-gen3\content\jcr_root\etc\designs

The behaviour in this case is correct. I wonder whether it is your IDE, SVN or any other tool that is touching this folder.

from aemsync.

aguacatedan avatar aguacatedan commented on August 23, 2024

Is there any way to know what exactly that change was? I've tried using Vim and it still happens, so I'm guessing it's not the text editor.

What options do I have for debugging this issue? I'll try and set it up in my home computer and see if maybe it's some sort of company "security" software causing this problem. I'll report back later in the day.

from aemsync.

gavoja avatar gavoja commented on August 23, 2024

I am not aware of any tool that would be able to tell who or what touched a file on Windows. The only thing I can recommend is to shut down processes one by one and re-trying. Checking on another machine is a good idea - let me know your findings.

from aemsync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.