Comments (6)
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.
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 nonnt: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.
- 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.
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.
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.
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)
- use aemsync with Gulp/Webpack HOT 6
- Exclude is not working
- How to watch multiple paths? HOT 2
- Connection reset when trying to use SSL/TSL domain HOT 3
- Plugin adds but does not push .map files to server HOT 2
- Exclusion doesn't work on a path when directory starts with a dot symbol HOT 3
- Support for URL junction HOT 1
- Don't skip files in target folders HOT 8
- Package Manager clutter HOT 5
- Exclusion doesn't work on a path when directory starts with a dot symbol HOT 1
- vs webdav HOT 1
- Minimatch produce different regex compared to micromatch HOT 2
- Having bundles in the Installed state should be acceptable
- Watching files not working on Windows HOT 4
- Not syncing content in aem archtype based project HOT 2
- Changing many files with auto build scripts leads to exceptions and failure to process files HOT 4
- Error syncing package HOT 1
- aemsync in vscode gives error HOT 3
- Push no longer works in v5
- Watch over option no longer works in v5.0.4 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aemsync.