|
|
|
|||||
|
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 |
|
|||||
|
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? |
|
|||||
|
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 01:46 PM. |
|
|||||
|
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?
|
|
||||||
|
Quote:
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 07:25 PM. |
|
||||||
|
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. |
|
|||||
|
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 |
|
|||||
|
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.
|
|
||||||
|
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. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Get "Assertion failed" in ConnectionMonitor.cpp, with Ice-3.0.1-VC80 | jingkewhu | Help Center | 2 | 03-07-2008 05:15 AM |
| Don't "Ice-3.1.1-VC71.msi " include the "slice2java.exe"? | Jason Gao | Help Center | 4 | 10-26-2006 12:23 PM |
| "make test" failure on Ice 3.0.1 installation. SUSE 10.1. | pchapin | Help Center | 4 | 05-22-2006 11:20 PM |
| starting "ice" process (node/admin etc) via Java | BobDeAnna | Help Center | 6 | 01-04-2005 10:26 AM |
| Going from "in" to "out" param, using a class as a union | catalin | Help Center | 1 | 04-05-2004 09:55 AM |