Writing to the console in Island does nothing?

Hello,

I’ve created a console application for Island / Windows and the line below is executing…

Console.WriteLine(string.Format(“usage: %s server-name\n”, args[0]));

Nothing appears on the console when I run this from the command prompt.

Should the text not appear in the command prompt windows?

Brian

Ignoring that %s won’t work, because String.Format uses {0} style placeholders, this works fine for me:

(note that this was “Run w/o Debugging”; if you run in the debugger from Water, console output shows in the debug console at the bottom, not in a dedicated Terminal window).

Good catch on the copy / paste error… that was it! Changing %s to {0} worked. If string.format had returned the original text with the %s in it I would’ve caught it myself.

Sorry to bother you with something so stupid.

Hmm, but it should do that. with no {} in the ring, it should just return the string as is…

But indeed it does not. that is a bug, will log.

Thanks, logged as bugs://80298

bugs://80298 got closed with status fixed.