Page 1 of 2

Rule failure after upgrade

PostPosted: Fri Jul 08, 2016 4:34 pm
by toothpaste
After upgrading to v4 two rules do not work as aspected. The rules are not working. Only after opening Hazel and clicking on the folder the script work.

First rule: Color empty folder
-kind is folder
-size is 0 bytes
-> set color label x

Second rule: Color full folder
-kind is folder
-size is not 0 bytes
-> set color label blue

Re: Rule failure after upgrade

PostPosted: Mon Jul 11, 2016 10:53 am
by Mr_Noodle
Try going through the troubleshooting guide here: https://www.noodlesoft.com/kb/hazel-tro ... ing-guide/

Report back with the diagnostics outlined there.

Re: Rule failure after upgrade

PostPosted: Thu Jul 14, 2016 1:06 pm
by toothpaste
I tested it and it still does not work.

The log does not show any problems but the folders color wrong. Does anyone can confirm this?

Code: Select all
2016-07-14 19:03:03.323 hazelworker[729] complete: Rule Color empty folder matched.
2016-07-14 19:03:03.334 hazelworker[729] incomplete: Rule Color Full Folder matched.
2016-07-14 19:03:03.358 hazelworker[729] movies: Rule Color empty folder matched.
2016-07-14 19:03:03.361 hazelworker[729] overig: Rule Color Full Folder matched.
2016-07-14 19:03:07.400 hazelworker[729] Done processing folder Downloads
 

Re: Rule failure after upgrade

PostPosted: Fri Jul 15, 2016 11:52 am
by Mr_Noodle
Wrong in what way? No color label? The wrong color label?

Re: Rule failure after upgrade

PostPosted: Fri Jul 15, 2016 3:19 pm
by toothpaste
I've tested it some more. Made new rules and used the troubleshouting guide.

Rule color empty folder:
This rule does not work at all.

Rule color full folder:
This rule works from time to time. In version V3 it immediately changed the color. Now it takes longer or does not work. On rule status it looks fine.

I found out that if I choose 'Run rules now' the rules work, even the empty folder. Can you help?

Re: Rule failure after upgrade

PostPosted: Fri Jul 15, 2016 4:32 pm
by Mr_Noodle
Keep in mind that a folder that looks empty might actually have hidden files in it. Depending on whether you care about those files or not, you can instead try using the sub-file/folder count as that will ignore hidden files.

As for the delay, you'll have to check the logs.

Re: Rule failure after upgrade

PostPosted: Fri Jul 15, 2016 5:00 pm
by toothpaste
Thank you for your reply.

The sub-file/folder count work but found in both solutions a bug. When you change a folder color label from colour to colour it works but when you select no color as a result it will not remove the color label.

Re: Rule failure after upgrade

PostPosted: Sat Jul 16, 2016 5:15 am
by toothpaste
The sub-file/folder count also does not work. Only after 'Run rules now' the folder gets a labal color.

Re: Rule failure after upgrade

PostPosted: Mon Jul 18, 2016 10:59 am
by Mr_Noodle
Check the logs around the time the folder should have received a color but didn't. Post/email what you find there.

Re: Rule failure after upgrade

PostPosted: Mon Jul 18, 2016 1:03 pm
by toothpaste
Code: Select all
2016-07-18 19:02:22.736 hazelworker[629] ###main load address: 0x10cf1b000
2016-07-18 19:02:22.737 hazelworker[629] ###Noodle load address: 0x10d035000
2016-07-18 19:02:22.737 hazelworker[629] ###CK load address: 0x10cff6000
2016-07-18 19:02:22.759 hazelworker[629] Processing folder Downloads (forced)
2016-07-18 19:02:24.827 hazelworker[629] complete: Rule Color empty folder matched.
2016-07-18 19:02:24.842 hazelworker[629] incomplete: Rule Color empty folder matched.
2016-07-18 19:02:24.844 hazelworker[629] movies: Rule Color Full Folder matched.
2016-07-18 19:02:24.869 hazelworker[629] overig: Rule Color empty folder matched.
2016-07-18 19:02:28.893 hazelworker[629] Done processing folder Downloads

Re: Rule failure after upgrade

PostPosted: Mon Jul 18, 2016 2:58 pm
by Mr_Noodle
Have you updated to 4.0.3 yet? If not, give that a try and report back.

Re: Rule failure after upgrade

PostPosted: Mon Jul 18, 2016 3:08 pm
by toothpaste
I'am running 4.0.3. On V3 the rules run perfectly. It now takes longer for the rule to work or it will not work at all. And rules can not remove color tags and leave it blank. Have you tested it yourself?

Re: Rule failure after upgrade

PostPosted: Mon Jul 18, 2016 3:35 pm
by Mr_Noodle
You're right. I was testing setting a color but not removing it. Setting a color does work though but for some reason removing it doesn't. Right now it looks like an Apple bug but I'm looking into it further.

Re: Rule failure after upgrade

PostPosted: Mon Jul 18, 2016 3:42 pm
by Mr_Noodle
Ok, there's a couple of subtle issues going on here but I am working on a fix. In the meantime, though, you can always use the "Remove tag" action to remove all the color tags.

Re: Rule failure after upgrade

PostPosted: Mon Jul 18, 2016 5:25 pm
by toothpaste
THX!