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

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Sep 26 12:29:08 EDT 2008


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


           Summary: Using CSharpCodeProvider without having the 'mono-gmcs'
                    package installed throws confusing exception
           Product: Mono: Class Libraries
           Version: 1.9
          Platform: x86-64
        OS/Version: Ubuntu
            Status: NEW
          Severity: Minor
          Priority: P5 - None
         Component: Sys.Core
        AssignedTo: jbevain at novell.com
        ReportedBy: james.bird at realtimeworlds.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


The exception thrown when CSharpCodeProvider can't find 'gmcs' is confusing -
it's a Win32Exception with internal error code 2 (but it doesn't tell you which
file is actually missing).

Would it be possible to throw a more meaningful exception here? If mono depends
on a package that isn't installed, could it not throw a FileNotFoundException,
also giving the name of the package that is missing?


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


More information about the mono-bugs mailing list