Discussions related to Visual Prolog
choibakk
Active Member
Posts: 35
Joined: 5 Sep 2019 19:30

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

Unread post 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
User avatar
Thomas Linder Puls
VIP Member
Posts: 1398
Joined: 28 Feb 2000 0:01

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

Unread post 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?
Regards Thomas Linder Puls
PDC
choibakk
Active Member
Posts: 35
Joined: 5 Sep 2019 19:30

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

Unread post 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
Harrison Pratt
VIP Member
Posts: 439
Joined: 5 Nov 2000 0:01

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

Unread post 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
User avatar
Thomas Linder Puls
VIP Member
Posts: 1398
Joined: 28 Feb 2000 0:01

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

Unread post 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.
Regards Thomas Linder Puls
PDC
Post Reply