Problem compiling subscripts


(ndelic) #1

IDE: Visual Studio 2017
Version: 10.0.0.2343
Target: .NET
Description: Attached project fails to compile with an error below. It compiles fine if you comment out the second subscript in DataAccess.swift file in the project.

Severity Code Description Project File Line Suppression State
Error (E0) Internal error: System.NullReferenceException: Object reference not set to an instance of an object.
at RemObjects.Oxygene.Code.Output.DotNet.Output.GetField(BaseType aValueType, IFieldInfo aField)
at RemObjects.Oxygene.Code.Output.DotNet.OutputGeneratorVisitor.VisitFieldExpression(FieldExpression fieldExpression)
at RemObjects.Oxygene.Code.Output.DotNet.OutputGeneratorVisitor.VisitExpression(Expression element)
at RemObjects.Oxygene.Code.Output.DotNet.OutputGeneratorVisitor.Push(Expression val)
at RemObjects.Oxygene.Code.Output.DotNet.OutputGeneratorVisitor.VisitUnaryExpression(UnaryExpression une)
at RemObjects.Oxygene.Code.Output.DotNet.OutputGeneratorVisitor.VisitExpression(Expression element)
at RemObjects.Oxygene.Code.Output.DotNet.OutputGeneratorVisitor.Push(Expression val)
at RemObjects.Oxygene.Code.Output.DotNet.OutputGeneratorVisitor.VisitIfStatement(IfStatement ifStatement)
at RemObjects.Oxygene.Code.Output.DotNet.OutputGeneratorVisitor.VisitStatement(Statement element)
at RemObjects.Oxygene.Code.Output.DotNet.OutputGeneratorVisitor.VisitStatementExpression(StatementExpression expression)
at RemObjects.Oxygene.Code.Output.DotNet.OutputGeneratorVisitor.VisitExpression(Expression element)
at RemObjects.Oxygene.Code.Output.DotNet.OutputGeneratorVisitor.Push(Expression val)
at RemObjects.Oxygene.Code.Output.DotNet.OutputGeneratorVisitor.VisitCastExpression(CastExpression castExpression)
at RemObjects.Oxygene.Code.Output.DotNet.OutputGeneratorVisitor.VisitExpression(Expression element)
at RemObjects.Oxygene.Code.Output.DotNet.OutputGeneratorVisitor.Push(Expression val)
at RemObjects.Oxygene.Code.Output.DotNet.OutputGeneratorVisitor.VisitExitStatement(ExitStatement statement)
at RemObjects.Oxygene.Code.Output.DotNet.OutputGeneratorVisitor.VisitStatement(Statement element)
at RemObjects.Oxygene.Code.Output.DotNet.OutputGeneratorVisitor.VisitBeginStatement(BeginStatement beginStatement)
at RemObjects.Oxygene.Code.Output.DotNet.OutputGeneratorVisitor.VisitStatement(Statement element)
at RemObjects.Oxygene.Code.BaseVisitor.VisitScopeStatement(ScopeStatement element)
at RemObjects.Oxygene.Code.Output.DotNet.OutputGeneratorVisitor.VisitScopeStatement(ScopeStatement element)
at RemObjects.Oxygene.Code.Output.DotNet.OutputGeneratorVisitor.VisitStatement(Statement element)
at RemObjects.Oxygene.Code.Output.DotNet.Output.GenerateMethod(IMutableMethodImplementation meth)
at RemObjects.Oxygene.Code.CombinedParsedType.ForAllMethods(Func`2 action)
at RemObjects.Oxygene.Code.Output.DotNet.Output.GenerateMethods(IMutableParsedType aType)
at RemObjects.Oxygene.Code.Output.DotNet.Output.GenerateMethods()
at RemObjects.Oxygene.Code.Output.DotNet.Output.CreateDotNetGenerator(Stream s)
at RemObjects.Oxygene.Code.Output.DotNet.Output.GenerateExecutable()
at RemObjects.Oxygene.Code.Compiler.Compiler.GenerateExecutable()
at RemObjects.Oxygene.Code.Compiler.Compiler.Compile() subscriptTest C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\RemObjects Software\Elements\RemObjects.Elements.Echoes.targets 70

subscriptTest.zip (835.3 KB)


(RemObjects) #2

Thanks, logged as bugs://81488


(RemObjects) #3

bugs://81488 got closed with status fixed.