[Mono-list] VBNC in Mono.

Miguel de Icaza miguel at ximian.com
Sat Sep 9 13:54:58 EDT 2006


> 	* Go to the vbnc/vbnc/bin directory, and try the following
> 	  scripts:
> 		sh test-module MODULE
> 	  Where MODULE is one of:
> 		1Declarations, CompileTime, CompileTime2, Mono, 
> 	  Resources, RunTime, SelfTest or VBRunTime

When something fails it will report a non-zero return value, to look at
the actual command and the actual error, you can try this:

For example, when you see:


You can run:

$ sh -x test-one 1Declarations CustomEvent1.vb

Which will then produce this output:

+ TERM=1
+ mono --debug vbnc.exe
@../tests/1Declarations/all.rsp ../tests/1Declarations/CustomEvent1.vb

                                                  DEBUG RUN

Visual Basic.Net Compiler version (last write time:
05/09/2006 21:06:28)
Copyright (C) 2004-2006 Rolf Bjarne Kvinge. All rights reserved.

Starting Scan
Scanning file /home/cvs/vbnc/vbnc/tests/1Declarations/CustomEvent1.vb
File '/home/cvs/vbnc/vbnc/tests/1Declarations/CustomEvent1.vb' scanned in 0.103 seconds
36 lines and 1114 characters in total.
After SCAN: True
Starting Conditional Compilation
After ConditionaL True
Starting Parse
Parsing file /home/cvs/vbnc/vbnc/tests/1Declarations/CustomEvent1.vb (1 of 1 files)
After Compile_Parse: True
4 assemblies were loaded.
79 namespaces were loaded.
2377 types were loaded.
After TypeLoader: True
Starting Resolve
Starting Resolve
CreateImplicitTypes CustomEvent1 (1 of 1 types)
ResolveType CustomEvent1 (1 of 1 types)
ResolveTypeReferences CustomEvent1 (1 of 1 types)
Object reference not set to an instance of an object
  at System.Collections.Generic.List`1[System.Object].AddEnumerable (IEnumerable`1 ) [0x00000] in /home/cvs/mcs/class/corlib/System.Collections.Generic/List.cs:117
  at System.Collections.Generic.List`1[System.Object].AddRange (IEnumerable`1 ) [0x00021] in /home/cvs/mcs/class/corlib/System.Collections.Generic/List.cs:131
  at vbnc.TypeNameResolutionInfo.CheckNestedTypesOrTypeParameters (System.String R, Int32 TypeArgumentCount) [0x00000]
  at vbnc.TypeNameResolutionInfo.ResolveUnqualifiedName (System.String[] Rs, Int32 TypeArgumentCount) [0x00000]
  at vbnc.TypeNameResolutionInfo.Resolve () [0x00000]
  at vbnc.TypeNameResolutionInfo.Resolve () [0x00000]
  at vbnc.QualifiedIdentifier.ResolveAsTypeName (Boolean AsAttributeTypeName, Int32 TypeArity) [0x00000]
  at vbnc.SimpleTypeName.ResolveTypeReferences (Boolean AsAttributeTypeName) [0x00000]
  at vbnc.SimpleTypeName.ResolveTypeReferences () [0x00000]
  at vbnc.NonArrayTypeName.ResolveTypeReferences () [0x00000]
  at vbnc.CustomEventDeclaration.ResolveTypeReferences () [0x00000]
  at vbnc.AssemblyDeclaration.ResolveTypeReferences (vbnc.TypeDeclaration Type) [0x00000]
  at vbnc.AssemblyDeclaration.ResolveTypeReferences () [0x00000]
  at vbnc.Compiler.Compile_Resolve () [0x00000]
  at vbnc.Compiler.Compile () [0x00000]
  at vbnc.Compiler.Compile (System.String[] CommandLine) [0x00000]
  at vbnc.Main.Main (System.String[] CmdArgs) [0x00000]

More information about the Mono-list mailing list