Results 1 to 11 of 11

Thread: slice2cs reports: "input files must end with `.ice'" when given a wildcard argument

  1. #1
    PatientZero is offline Registered User
    Name: Paul Hollingsworth
    Organization: Royal Bank of Canada
    Project: Relational Grid
    Join Date
    Jul 2008
    Posts
    5

    slice2cs reports: "input files must end with `.ice'" when given a wildcard argument

    Platform: Windows
    Version: Ice 3.2.1.

    To reproduce:
    Create any normal ice file.
    Type in "slice2cs *.ice" on the command line
    Note the error message.
    Note that a valid .cs file is still produced.

    Everything is fine except for the error message, which leads you to think that the program did not work when in fact it did.

    Example:

    T:\felix_grid_server\grid_interfaces\src\IceFiles> dir
    Volume in drive T is DATA
    Volume Serial Number is 4CC3-C718

    Directory of T:\felix_grid_server\grid_interfaces\src\IceFiles

    16/07/2008 15:50 <DIR> .
    16/07/2008 15:50 <DIR> ..
    16/07/2008 14:53 111 GridGateway.ice
    16/07/2008 14:52 109 GridGateway.ice~
    2 File(s) 220 bytes
    2 Dir(s) 6,406,430,720 bytes free

    T:\felix_grid_server\grid_interfaces\src\IceFiles> t:\thirdparty_libs\zerocIce\Ice-3.2.1\bin\slice2cs *.ice
    t:\thirdparty_libs\zerocIce\Ice-3.2.1\bin\slice2cs: input files must end with `.ice'

    T:\felix_grid_server\grid_interfaces\src\IceFiles> dir
    Volume in drive T is DATA
    Volume Serial Number is 4CC3-C718

    Directory of T:\felix_grid_server\grid_interfaces\src\IceFiles

    16/07/2008 15:52 <DIR> .
    16/07/2008 15:52 <DIR> ..
    16/07/2008 15:52 18,773 GridGateway.cs
    16/07/2008 14:53 111 GridGateway.ice
    16/07/2008 14:52 109 GridGateway.ice~
    3 File(s) 18,993 bytes
    2 Dir(s) 6,406,410,240 bytes free

  2. #2
    dwayne's Avatar
    dwayne is offline ZeroC Staff
    Name: Dwayne Boone
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Jan 2005
    Location
    St. John's, Newfoundland
    Posts
    397
    This problem appears to no longer occur with the latest version of Ice, 3.3.0.

    Dwayne

  3. #3
    PatientZero is offline Registered User
    Name: Paul Hollingsworth
    Organization: Royal Bank of Canada
    Project: Relational Grid
    Join Date
    Jul 2008
    Posts
    5
    I just downloaded Ice 3.3.0 and the behaviour appears to be exactly the same:

    T:\felix_grid_server\grid_interfaces\src\IceFiles> dir
    Volume in drive T is DATA
    Volume Serial Number is 4CC3-C718

    Directory of T:\felix_grid_server\grid_interfaces\src\IceFiles

    16/07/2008 16:46 <DIR> .
    16/07/2008 16:46 <DIR> ..
    16/07/2008 14:53 111 GridGateway.ice
    16/07/2008 14:52 109 GridGateway.ice~
    2 File(s) 220 bytes
    2 Dir(s) 6,366,867,456 bytes free

    T:\felix_grid_server\grid_interfaces\src\IceFiles> c:\Ice-3.3.0\bin\slice2cs *.ice
    c:\Ice-3.3.0\bin\slice2cs: input files must end with `.ice'

    T:\felix_grid_server\grid_interfaces\src\IceFiles> dir
    Volume in drive T is DATA
    Volume Serial Number is 4CC3-C718

    Directory of T:\felix_grid_server\grid_interfaces\src\IceFiles

    16/07/2008 16:46 <DIR> .
    16/07/2008 16:46 <DIR> ..
    16/07/2008 16:46 17,396 GridGateway.cs
    16/07/2008 14:53 111 GridGateway.ice
    16/07/2008 14:52 109 GridGateway.ice~
    3 File(s) 17,616 bytes
    2 Dir(s) 6,366,846,976 bytes free

    What test were you conducting to conclude that this is fixed in Ice 3.3.0?

  4. #4
    dwayne's Avatar
    dwayne is offline ZeroC Staff
    Name: Dwayne Boone
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Jan 2005
    Location
    St. John's, Newfoundland
    Posts
    397
    The problem appears to be the presence of the GridGateway.ice~ file. If you remove that file then the warning should go away. I also don't see the warning if I run slice2cs from a cygwin window, which is what I originally did to test this. Either way, thanks for the report, we will look into it further.

    Dwayne

  5. #5
    PatientZero is offline Registered User
    Name: Paul Hollingsworth
    Organization: Royal Bank of Canada
    Project: Relational Grid
    Join Date
    Jul 2008
    Posts
    5
    Ah thanks! That makes some sense. The Gateway.ice~ file is created by VIM. So looks like it's actually an issue with the wildcard matching... At least now I know what it is so I can work around it... It wouldn't happen with cygwin because the cygwin shell expands the asterix ('*') before it is passed to the program, like UNIX. The issue must be with the wildcard expansion inside slice2cs itself.
    Last edited by PatientZero; 07-16-2008 at 12:46 PM.

  6. #6
    rdilipk is offline Registered User
    Name: Dilip Ranganathan
    Organization: 3M
    Project: None
    Join Date
    Jul 2003
    Location
    Minnesota, USA
    Posts
    35

    OT question

    I am sorry for hijacking this thread but a question to Mr. Collingsworth. Are you the same Paul Collingsworth that used to frequent the discuss.develop.com mailing lists in the glory days of COM/DCOM/ATL when Don Box was still with Developmentor and Al Major/Michael Nelson were still around?

  7. #7
    michi's Avatar
    michi is offline Registered User
    Name: Michi Henning
    Organization: Triodia Technologies
    Project: I have a passing interest in Ice :-)
    Join Date
    Feb 2003
    Location
    Brisbane, Australia
    Posts
    1,055
    Quote Originally Posted by PatientZero View Post
    The issue must be with the wildcard expansion inside slice2cs itself.
    There is no wildcard expansion inside slice2cs. It simply processes its arguments and, if it sees something that doesn't end with ".ice", it complains.

    Presumably, the cmd shell incorrectly expands "*.ice" to include the backup ".ice~" file name, which doesn't end in ".ice", hence the complaint. You can easily test this by checking the output produced by "echo *.ice" in the same cmd shell.

    Cheers,

    Michi.
    Last edited by michi; 07-16-2008 at 06:25 PM.

  8. #8
    michi's Avatar
    michi is offline Registered User
    Name: Michi Henning
    Organization: Triodia Technologies
    Project: I have a passing interest in Ice :-)
    Join Date
    Feb 2003
    Location
    Brisbane, Australia
    Posts
    1,055
    Aargh... I forgot, and Marc just reminded me.

    On Windows, you link with setargv.obj to get the wildcard expansion. We do link with setargv.obj for slice2cs. So, I'd say this is a bug in setargv.obj.

    You could drop some trace in the main() and print out what is actually passed to the compiler. That will narrow it at least.

    Cheers,

    Michi.

  9. #9
    PatientZero is offline Registered User
    Name: Paul Hollingsworth
    Organization: Royal Bank of Canada
    Project: Relational Grid
    Join Date
    Jul 2008
    Posts
    5
    Yeah - more intrinsic to windows than anything else:

    T:\felix_grid_server\grid_interfaces\src\IceFiles> dir *.ice
    Volume in drive T is DATA
    Volume Serial Number is 4CC3-C718

    Directory of T:\felix_grid_server\grid_interfaces\src\IceFiles

    16/07/2008 14:53 111 GridGateway.ice
    16/07/2008 14:52 109 GridGateway.ice~
    2 File(s) 220 bytes
    0 Dir(s) 6,532,702,208 bytes free

  10. #10
    PatientZero is offline Registered User
    Name: Paul Hollingsworth
    Organization: Royal Bank of Canada
    Project: Relational Grid
    Join Date
    Jul 2008
    Posts
    5
    To clarify what I meant by that last post: because the behaviour is consistent with other windows applications wildcard expansion (i.e. "dir *.ice" returns .ice~ files too), I no longer think that this is a bug in slice2cs.

  11. #11
    michi's Avatar
    michi is offline Registered User
    Name: Michi Henning
    Organization: Triodia Technologies
    Project: I have a passing interest in Ice :-)
    Join Date
    Feb 2003
    Location
    Brisbane, Australia
    Posts
    1,055
    I agree. I mean, if you wanted x.ice~ as well, you would say

    dir *.ice~

    I don't think there is much we could do about this. Who knows what other errors are present in the wildcard expansion...

    Cheers,

    Michi.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [3.4b] slice2py gen hangs at "end of input"
    By joshmoore in forum Bug Reports
    Replies: 3
    Last Post: 01-20-2010, 11:43 AM
  2. Replies: 1
    Last Post: 09-08-2009, 06:18 AM
  3. Replies: 1
    Last Post: 06-09-2009, 10:53 PM
  4. Replies: 1
    Last Post: 01-28-2009, 06:15 AM
  5. Replies: 4
    Last Post: 10-26-2006, 11:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •