Page 1 of 1

Cannot use Windows Explorer to ZIP a VIP project using "Object Expressions"

Posted: 17 Jun 2021 1:20
by choibakk
Its sounds bazaar, but it is true--at least for my project. When trying to ZIP up a VIP project (mine being 64-bit) from Windows explorer with a project that uses "Object Expressions" (I believe caused by Object Expressions), because the file names generated at compile time in the "deb"/"deb64" directories, are reported by Windows Explorer to be illegal file names for a ZIP file.

Here is a predicate that uses an Object Expression:

Code: Select all

% -------------------------- PERFT ------------------------------- clauses     get_perft() = Object :-         if isErroneous(movelist_) then             calc_board()         end if,         Object =             implement : perft                 clauses                     perft(Depth, Divide) = Count :-                         make_move_count := 0,                         Count = calc_perft(Depth, 0, Divide),                         calc_board().                 clauses                     new() :- allmoves := true.             end implement.
And the problematic file names generated in my "deb64" directory are:

oe∙get_perft∙1010;13@board'c.scope
oe∙get_perft∙1010;13@board'p.scope

I simply delete all of the files in the "deb64" directory, and ZIP up my project (obviously I don't really need to backup those file anyways). I've had the issue for a while but haven't reported since it is such a small issue, but I thought you should be aware of the ZIP issue.

Sincerely,
Craig Hoibakk

Re: Cannot use Windows Explorer to ZIP a VIP project using "Object Expressions"

Posted: 17 Jun 2021 11:27
by Thomas Linder Puls
Strange my Windows does not have any problems with such file names.

How do you zip the files (what actions)?

Which Windows version are you using?

Re: Cannot use Windows Explorer to ZIP a VIP project using "Object Expressions"

Posted: 17 Jun 2021 16:52
by choibakk
Hi Thomas,

I am using Windows 10 Home, Version 10.0.19041. I don't have an 3rd party ZIP tools installed that I am aware of. In Windows Explorer I perform the following tasks:

1. Right-click on the top level project folder (Named "NadyaChess" in my case).
2. On the popup menu, I select "Send to".
3. On the 2nd popup menu, I select "Compressed (zipped) folder".
4. The exact error message is as follows:

'C:\(insert my path here)\Documents\Visual Prolog Projects\NadyaChess\deb64\oe∙get_perft∙1010;13@board'c.scope' cannot be compressed because it includes characters that cannot be used in a compressed folder, such as ∙. You should rename this file or directory.

I wonder if it could be the format the hard drive is using? I'm using NTFS.

Sincerely,
Craig Hoibakk

Re: Cannot use Windows Explorer to ZIP a VIP project using "Object Expressions"

Posted: 23 Jun 2021 11:59
by Harrison Pratt
It seems that ZIP files are more restrictive than NTFS with respect to permissible filename characters:

https://stackoverflow.com/questions/205 ... a-zip-file

Re: Cannot use Windows Explorer to ZIP a VIP project using "Object Expressions"

Posted: 25 Jun 2021 8:34
by Thomas Linder Puls
Well, I don't have that problem (not for send to compressed folder either).

Moreover, there is normally no reason to zip these files, so I think we will keep them.