You are here

Bugs with preview and rules

4 posts / 0 new
Last post
kethal
Offline
Last seen: 12 years 8 months ago
Joined: 2010-09-21 15:06
Bugs with preview and rules

I'm using Toucan 3.1 release 2. When I run preview with a mirror sync, what changes will be made are incorrect. It says it will copy files from the source to the destination when those files are not even in the source. It also says it will delete files from the destination when they are in the source.

If I run the sync, it behaves as it should. It seems just the preview is wrong. I think the problem may be with subdirectories having the same name as higher level directories. Posting a screen shot would be a lot clearer, but I have nowhere to put one.

Since 3.0.4 rules with regex also seem to have stopped working. I'm not sure if it needs the leading * anymore, but with or without it the rules don't seem to work as expected.
~\$.* should ignore files with ~$ in the name, but it doesn't ignore them. It doesn't seem like a regex with a leading ^ (to match the start of a name) ever worked either (can't get it to work in 3.0.4).

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 3 weeks ago
Developer
Joined: 2005-12-10 15:22
Firstly I

apologise for the massive delay on this, exams have completely overtaken my life recently, but I have a little time to work on this again at the moment. If you could upload a screenshot to somewhere like TinyPic or ImageShack that would be perfect.

As for the regex you no longer need the starting *, I am not sure your example quite makes sense, you mention a leading ^ but don't have it in your expression. For more information the full documentation for the regular expression engine is here.

kethal
Offline
Last seen: 12 years 8 months ago
Joined: 2010-09-21 15:06
Pics and new bugs

I'm now using prerelease 4 with the same problem.
Here's a screen shot. http://tinypic.com/r/2igjera/7

You can see that the file being deleted is actually in the source directory. Running it works fine though, as the log shows.

10:40:10 Toucan 3.1
Date: 2011-06-14
Computer Name: LOBELL-PD1
Operating System: Windows XP (build 2600, Service Pack 3)

Skipped W:\.Rhistory
Copied W:\CO2 mechanisms, GCB.docx
Removed G:\Documents\Crop micronutrients\CO2 mechanisms, PNAS.doc
Skipped W:\CO2 mechanisms, PNAS.docx //It wasn't actually deleted.

Strangely, after running the sync, the preview no longer shows that file being deleted, but still shows other files being incorrectly deleted, as seen here: http://tinypic.com/r/2zpl1yx/7

Those were two different issues with regex. In 3.0.4, ^ doesn't seem to anchor to the beginning of a line. It was a separate issue from the problem in 3.1, which is that regex doesn't seem to work at all. In 3.1, if I make rule with File Exclude, regex, I can put almost anything in the rule and it will ignore every file. However, certain rules will not do anything. E.g. [^x]*x$ doesn't ignore any file, even ones it should, like 'stuff.docx'.

New bug: In the sync menu, if you select a job and then select a different job before the list of files has fully loaded, Toucan crashes. Using the arrow keys to scroll through the jobs is an easy way to make that happen.
Also, as you can see from the screen shot, the scroll bars sometimes go missing in the file list.

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 3 weeks ago
Developer
Joined: 2005-12-10 15:22
Ok,

thankyou for your feedback.

A quick look at your first screen shot shows that the files names in the source and destination are actually different, one is ".doc" and the other ".docx" which is why it is marked for deletion I think.

I will take a look at the regex stuff again, it looks like the perhaps the syntax that Toucan supports is different to what you are expecting, you can see the manual for the system Toucan uses here.

Log in or register to post comments