[Mono-bugs] [Bug 430270] Using CSharpCodeProvider without having the 'mono-gmcs' package installed throws confusing exception

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Oct 8 08:54:01 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=430270

User james.bird at realtimeworlds.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=430270#c2





--- Comment #2 from James Bird <james.bird at realtimeworlds.com>  2008-10-08 06:54:01 MDT ---
Sorry for the late reply. It seems that this only happens when you haven't
built from source (i.e. you've just installed Mono via some package management
tool). Perhaps the problem is that the 'mono' package should depend on
'mono-gmcs'?

Anyway, if CSharpCodeProvider cannot launch 'gmcs', then the following
exception is thrown:

System.InvalidOperationException : Standard output has not been redirected or
process has not been started.

at System.Diagnostics.Process.CancelErrorRead () [0x00000]

at (wrapper remoting-invoke-with-check)
System.Diagnostics.Process:CancelErrorRead ()

at Mono.CSharp.CSharpCodeCompiler.CompileFromFileBatch
(System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames)
[0x00000]

at Mono.CSharp.CSharpCodeCompiler.CompileAssemblyFromFileBatch
(System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames)
[0x00000]

An improvement to this exception would be to include the name of the process
that is actually missing, or even check that the 'mono-gcms' package exists and
display a more meaningful message like "Cannot find mono-gcms package - please
install"


-- 
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