http://bugzilla.novell.com/show_bug.cgi?id=622847
http://bugzilla.novell.com/show_bug.cgi?id=622847#c0 Summary: Problem with the FSI in F#. Pretty printing exception when I try to do simple assignments of numeric values. Classification: Mono Product: Mono: Runtime Version: 2.2.x Platform: x86 OS/Version: Ubuntu Status: NEW Severity: Normal Priority: P5 - None Component: misc AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:2.0b1) Gecko/20100630 Firefox/4.0b1 I just installed F# on Ubuntu Linux with Mono 2.4 - the software versions are as follows Operating System Ubuntu 10.04 LTS - the Lucid Lynx NET Framework Mono JIT compiler version 2.4.4 (Debian 2.4.4~svn151842-1ubuntu4) Copyright (C) 2002-2010 Novell, Inc and Contributors. www.mono-project.com TLS: __thread GC: Included Boehm (with typed GC) SIGSEGV: altstack Notifications: epoll Architecture: x86 Disabled: none F# Language Microsoft (R) F# 2.0 Interactive build 2.0.0.0 I installed F# using the instructions given in this website - http://www.strangelights.com/fsharp/wiki/default.aspx/FSharpWiki/MonoLinux.html I am getting pretty printing exceptions when I use the FSI to do 'let' using certain types of numeric values. As you can see this is happening for several different numeric types. It does seem to work with the int32 and byte data-type. I am enclosing the code I entered below along with the FSI response - Microsoft (R) F# 2.0 Interactive build 2.0.0.0 Copyright (c) Microsoft Corporation. All Rights Reserved. For help type #help;; > let x = 1234L;; val x : int64 = 1234L > let y = 1234UL;; Exception raised during pretty printing. Please report this so it can be fixed. Trace: System.ArgumentException: parameters at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] at Microsoft.FSharp.Compiler.Interactive.Shell+Utilities.callGenericStaticMethod (System.Type ty, System.String name, Microsoft.FSharp.Collections.FSharpList`1 tyargs, Microsoft.FSharp.Collections.FSharpList`1 args) [0x00000] at Microsoft.FSharp.Compiler.Interactive.Shell+FsiValuePrinter.PrintValue (Microsoft.FSharp.Compiler.Interactive.FsiValuePrinterMode printMode, Internal.Utilities.StructuredFormat.FormatOptions opts, System.Object x, System.Type ty) [0x00000] val y : uint64 = > let z = 23uy;; Exception raised during pretty printing. Please report this so it can be fixed. Trace: System.ArgumentException: parameters at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] at Microsoft.FSharp.Compiler.Interactive.Shell+Utilities.callGenericStaticMethod (System.Type ty, System.String name, Microsoft.FSharp.Collections.FSharpList`1 tyargs, Microsoft.FSharp.Collections.FSharpList`1 args) [0x00000] at Microsoft.FSharp.Compiler.Interactive.Shell+FsiValuePrinter.PrintValue (Microsoft.FSharp.Compiler.Interactive.FsiValuePrinterMode printMode, Internal.Utilities.StructuredFormat.FormatOptions opts, System.Object x, System.Type ty) [0x00000] val z : byte = > let a = 78us;; Exception raised during pretty printing. Please report this so it can be fixed. Trace: System.ArgumentException: parameters at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] at Microsoft.FSharp.Compiler.Interactive.Shell+Utilities.callGenericStaticMethod (System.Type ty, System.String name, Microsoft.FSharp.Collections.FSharpList`1 tyargs, Microsoft.FSharp.Collections.FSharpList`1 args) [0x00000] at Microsoft.FSharp.Compiler.Interactive.Shell+FsiValuePrinter.PrintValue (Microsoft.FSharp.Compiler.Interactive.FsiValuePrinterMode printMode, Internal.Utilities.StructuredFormat.FormatOptions opts, System.Object x, System.Type ty) [0x00000] val a : uint16 = > Reproducible: Always Steps to Reproduce: 1. Install F# on Ubuntu 10.04 with Mono 2.4.4 2. Fire up the F# Interactive console (fsi.exe) 3. type - let x = 1234UL;; (it fails on others as well eg. let a = 78us;;) 4. FSI throws pretty printing exception. Actual Results: Exception raised during pretty printing. Please report this so it can be fixed. Trace: System.ArgumentException: parameters at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] at Microsoft.FSharp.Compiler.Interactive.Shell+Utilities.callGenericStaticMethod (System.Type ty, System.String name, Microsoft.FSharp.Collections.FSharpList`1 tyargs, Microsoft.FSharp.Collections.FSharpList`1 args) [0x00000] at Microsoft.FSharp.Compiler.Interactive.Shell+FsiValuePrinter.PrintValue (Microsoft.FSharp.Compiler.Interactive.FsiValuePrinterMode printMode, Internal.Utilities.StructuredFormat.FormatOptions opts, System.Object x, System.Type ty) [0x00000] Expected Results: Print of the value of the variable and it's type eg. val x : int64 = 1234L -- Configure bugmail: http://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. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
