[Mono-bugs] [Bug 507712] New: Error VBNC99999: Type 'System.Text.CP1252' was been referenced while compiling, but it wasn't found...

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu May 28 04:27:15 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=507712


           Summary: Error VBNC99999: Type 'System.Text.CP1252' was been
                    referenced while compiling, but it wasn't found...
    Classification: Mono
           Product: Mono: Compilers
           Version: 2.0.x
          Platform: i686
        OS/Version: Ubuntu
            Status: NEW
          Severity: Blocker
          Priority: P5 - None
         Component: Basic
        AssignedTo: rkvinge at novell.com
        ReportedBy: gonnetp at inf.ethz.ch
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Description of Problem:
Small VB program won't compile using MonoDevelop.


Steps to reproduce the problem:
Public Class Application

    ' declare simulation space
    Dim Room ( 100 , 100 ) As Double

    Public Shared Sub Main()

        ' declare array runners
        Dim i As Integer
        Dim j As Integer

        ' init Room with 20 degrees
        For i = 1 to 100
            For j = 1 to 100
                Room(i,j) = 20
            Next
        Next

        System.Console.WriteLine("Hello world!")

    End Sub

End Class


Actual Results:
Building: console test (Debug)
Performing main compilation...
vbnc "-out:/home/gonnetp/work/vb/Projects/test/console test/bin/Debug/console
test.exe" -nologo -utf8output -debug:full -optionstrict- -optionexplicit+
-optioncompare:binary -optioninfer- -target:exe 
"/home/gonnetp/work/vb/Projects/test/console test/Application.vb"
"/home/gonnetp/work/vb/Projects/test/console test/AssemblyInfo.vb"
Warning: Option Strict Off will probably fail.
Warning : VBNC2009: the option optioninfer- was not recognized - ignored

/home/gonnetp/work/vb/Projects/test/console test/<MyGenerator> (1,1) : Error
VBNC99999: Unexpected error: There has been an internal error in the compiler:
Type 'System.Text.CP1252' was been referenced while compiling, but it wasn't
found...

  at vbnc.TypeResolution.TypeResolver (System.Object sender,
System.ResolveEventArgs args) [0x00000] 
  at System.AppDomain.DoTypeResolve (System.Object name_or_tb) [0x00000] 
  at (wrapper managed-to-native) System.Type:internal_from_name
(string,bool,bool)
  at System.Type.GetType (System.String typeName) [0x00000] 
  at System.Text.Encoding.GetEncoding (Int32 codepage) [0x00000] 
  at Microsoft.VisualBasic.Strings.Asc (Char c) [0x00000] 
  at vbnc.TypeConverter.GetResultType (TypeCode op1, TypeCode op2,
System.String array) [0x00000] 
  at vbnc.TypeConverter.GetBinaryAddResultType (TypeCode op1, TypeCode op2)
[0x00000] 
  at vbnc.TypeConverter.GetBinaryOperandType (KS op, TypeCode op1, TypeCode
op2) [0x00000] 
  at vbnc.TypeConverter.GetBinaryOperandType (vbnc.Compiler Compiler, KS op,
System.Type op1, System.Type op2) [0x00000] 
  at vbnc.BinaryExpression.get_OperandTypeCode () [0x00000] 
  at vbnc.BinaryExpression.ResolveExpressionInternal (vbnc.ResolveInfo Info)
[0x00000] 
  at vbnc.BinaryAddExpression.ResolveExpressionInternal (vbnc.ResolveInfo Info)
[0x00000] 
  at vbnc.Expression.ResolveExpression (vbnc.ResolveInfo ResolveInfo) [0x00000] 
  at vbnc.ArrayCreationExpression.EmitArrayCreation (vbnc.ParsedObject Parent,
vbnc.EmitInfo Info, System.Type ArrayType, vbnc.ArraySizeInitializationModifier
asim) [0x00000] 
  at vbnc.VariableDeclaration.EmitVariableInitializer (vbnc.EmitInfo Info)
[0x00000] 
  at vbnc.ConstructorDeclaration.EmitVariableInitialization (vbnc.EmitInfo
Info) [0x00000] 
  at vbnc.ConstructorDeclaration.GenerateCode (vbnc.EmitInfo Info) [0x00000] 
  at vbnc.Helper.GenerateCodeCollection (IEnumerable Collection, vbnc.EmitInfo
Info) [0x00000] 
  at vbnc.BaseObjects`1[vbnc.IMember].GenerateCode (vbnc.EmitInfo Info)
[0x00000] 
  at vbnc.AssemblyDeclaration.Emit (vbnc.TypeDeclaration Type) [0x00000] 
  at vbnc.AssemblyDeclaration.Emit () [0x00000] 
  at vbnc.Compiler.Compile () [0x00000] 

Compilation took 00:00:01.0440690

Build complete -- 1 error, 0 warnings

---------------------- Done ----------------------

Build: 1 error, 0 warnings


Expected Results:
If I comment-out the declaration of "Room" and its use, it compiles ok.


How often does this happen? 
Always.


Additional Information:

-- 
Configure bugmail: http://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