[Mono-bugs] [Bug 433886] New: csharp: does not work on Windows, illegal path chars in " <interactive>"

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Oct 9 10:00:47 EDT 2008


           Summary: csharp: does not work on Windows, illegal path chars in
           Product: Mono: Compilers
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: andyhume32 at yahoo.co.uk
         QAContact: mono-bugs at lists.ximian.com
                CC: miguel at novell.com
          Found By: ---

Running csharp on Windows reports the exception below.  The tool doesn't exit
at that point but can't be used as any subsequent typing and newline just
report the same exception.  This is as built and run within cygwin.

With a little debugging, the problematic path is "<interactive>".  That's
because Path.GetInvalidFileNameChars() etc on Windows include both < and >. 
Replacing that string with "_interactive_" seems to solve the problem and the
tool can be used, but then no prompts are printed...

cygwin$ csharp
System.ArgumentException: Illegal characters in path.
  at System.IO.Path.IsPathRooted (System.String path) [0x00078] in
  at System.IO.Path.InsecureGetFullPath (System.String path) [0x000dd] in
  at System.IO.Path.GetFullPath (System.String path) [0x00000] in
  at Mono.CSharp.Location.AddFile (System.String name) [0x00020] in
  at Mono.CSharp.Evaluator.Reset () [0x0001f] in
  at Mono.CSharp.Evaluator.ParseString (Boolean silent, System.String input,
System.Boolean& partial_input) [0x00003] in
  at Mono.CSharp.Evaluator.Compile (System.String input,
Mono.CSharp.CompiledMethod& compiled) [0x00031] in
  at Mono.CSharp.Evaluator.Evaluate (System.String input, System.Object&
result, System.Boolean& result_set) [0x00006] in
  at Mono.CSharpShell.Evaluate (System.String input) [0x00000] in

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list