Page 1 of 1

Rules aren't runned on folders

PostPosted: Wed Nov 23, 2016 4:32 am
by jromin
My main problem is that the hazel rules isn't processed on my folders, I've rebuilt the spotlight index but still no luck.
I cannot preview any folder from within the Hazel preferences panel. I also enabled the hazel debug logmode but I am unable to find anything that points to what's wrong, these rules has worked before on the same machine but for a few weeks ago stopped working.
Below is output of the hazel log in debug mode from a forced run of my downloads folder:

2016-11-23 09:20:15.430 HazelHelper[51243] DEBUG: Thread 0x7ff87ac14b80: Run worker for folder: /Users/johan/Downloads
2016-11-23 09:20:15.453 hazelworker[51256] ###main load address: 0x10c1ef000
2016-11-23 09:20:15.453 hazelworker[51256] ###Noodle load address: 0x10c30e000
2016-11-23 09:20:15.453 hazelworker[51256] ###CK load address: 0x10c2d2000
2016-11-23 09:20:15.460 hazelworker[51256] DEBUG: Program is licensed.
2016-11-23 09:20:15.478 hazelworker[51256] DEBUG: Could not find entry for default_directory in Chrome preference file.
2016-11-23 09:20:15.480 hazelworker[51256] DEBUG: Error reading file /Users/johan/Library/Application Support/Firefox/prefs.js: Error Domain=NSCocoaErrorDomain Code=260 "The file “prefs.js” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/johan/Library/Application Support/Firefox/prefs.js, NSUnderlyingError=0x7f8503670ed0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
2016-11-23 09:20:15.483 hazelworker[51256] Processing folder Hämtade filer (forced)
2016-11-23 09:20:15.483 hazelworker[51256] DEBUG: Pausing to wait for things to settle down.
2016-11-23 09:20:17.488 hazelworker[51256] DEBUG: Processing directories: (
"/Users/johan/Downloads"
)
2016-11-23 09:20:17.492 HazelHelper[51243] DEBUG: Checking events for path /Users/johan/Downloads, folder Hämtade filer
2016-11-23 09:20:17.493 hazelworker[51256] DEBUG: Received file event: {
date = "2016-11-23 08:20:15 +0000";
path = "<ComNoodlesoft_NoodlePathSet: 0x7f8503406080>\n /Users/johan/Downloads : 18446744073709551615\n";
}
2016-11-23 09:20:17.493 hazelworker[51256] DEBUG: About to process directory /Users/johan/Downloads
2016-11-23 09:20:17.495 hazelworker[51256] DEBUG: .DS_Store: File is hidden/invisible. Skipping.
2016-11-23 09:20:17.495 hazelworker[51256] DEBUG: .localized: File is hidden/invisible. Skipping.
2016-11-23 09:20:17.518 hazelworker[51256] DEBUG: Directory /Users/johan/Downloads processed in 0.025476 seconds
2016-11-23 09:20:17.519 HazelHelper[51243] DEBUG: Checking events for path /Users/johan/Downloads, folder Hämtade filer
2016-11-23 09:20:17.520 hazelworker[51256] DEBUG: Sending metrics to scheduler. Next scheduled run: 4001-01-01 01:00:00.000
2016-11-23 09:20:17.520 HazelHelper[51243] DEBUG: Received metrics for folder /Users/johan/Downloads: {
directoryDepth = 0;
requestedSchedulingTime = "4001-01-01 00:00:00 +0000";
triggerPaths = "<ComNoodlesoft_NoodlePathSet: 0x7ff87af103f0>\n";
unavailablePaths = "{(\n)}";
}
2016-11-23 09:20:17.520 HazelHelper[51243] DEBUG: Timer scheduled for folder /Users/johan/Downloads at 4001-01-01 00:00:00 +0000
2016-11-23 09:20:17.521 hazelworker[51256] Done processing folder Hämtade filer
2016-11-23 09:20:17.523 HazelHelper[51243] DEBUG: Thread 0x7ff87ac14b80: Task removed: [51256]

Re: Rules aren't runned on folders

PostPosted: Wed Nov 23, 2016 1:36 pm
by Mr_Noodle
Can you describe how are you aren't able to preview the rules?

Re: Rules aren't runned on folders

PostPosted: Thu Nov 24, 2016 9:07 am
by jromin
The preview icon is greyed out, so I'm unable to click on the icon.

Re: Rules aren't runned on folders

PostPosted: Fri Nov 25, 2016 12:32 pm
by Mr_Noodle
To clarify, you are referring to the rule status button (the "eye" button)? If so, you do have rules enabled for that folder? Can you provide a screenshot?

Re: Rules aren't runned on folders

PostPosted: Mon Nov 28, 2016 10:45 am
by jromin
See my screenshot of the hazel panel with one of my folder where you can see both the greyed out eye icon as well as the amount of rules.
Image
This setup has worked earlier but for some reason stopped working. If I select the downloads folder (Hämtade filer) and klick on the cog icon, and select run rules now nothing happens, nothing that I can see in the hazel log that points to anything that goes wrong. Any ideas or suggestions are more than welcome on what might be the problem.

Re: Rules aren't runned on folders

PostPosted: Mon Nov 28, 2016 12:47 pm
by Mr_Noodle
The rules aren't enabled. You need to click the checkboxes next to them to enable them. Once there is at least one enabled rule, the button will be clickable.

Re: Rules aren't runned on folders

PostPosted: Tue Nov 29, 2016 6:03 am
by jromin
Doh! my mistake, now everything works fine again.