Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullReferenceException in NumericValue.get_Value #2644

Open
fm-117 opened this issue Aug 29, 2024 · 0 comments
Open

NullReferenceException in NumericValue.get_Value #2644

fm-117 opened this issue Aug 29, 2024 · 0 comments

Comments

@fm-117
Copy link
Contributor

fm-117 commented Aug 29, 2024

From logging:

   at TypeCobol.Compiler.CodeElements.NumericValue.get_Value()
   at TypeCobol.Compiler.CodeElements.MoveSimpleStatement.get_SendingItem()
   at TypeCobol.Compiler.CodeElements.MoveSimpleStatement.get_Variables()
   at TypeCobol.Compiler.Diagnostics.WriteTypeConsistencyChecker.OnNode(VariableWriter variableWriter, Node node)
   at TypeCobol.Compiler.Nodes.Move.VisitNode(IASTVisitor astVisitor)
   at TypeCobol.Compiler.Nodes.Node.VisitChildrens(IASTVisitor astVisitor, Boolean continueVisit, IEnumerable`1 childrenNodes)
   at TypeCobol.Compiler.Nodes.Node.VisitChildrens(IASTVisitor astVisitor, Boolean continueVisit, IEnumerable`1 childrenNodes)
   at TypeCobol.Compiler.Nodes.Node.VisitChildrens(IASTVisitor astVisitor, Boolean continueVisit, IEnumerable`1 childrenNodes)
   at TypeCobol.Compiler.Nodes.Node.VisitChildrens(IASTVisitor astVisitor, Boolean continueVisit, IEnumerable`1 childrenNodes)
   at TypeCobol.Compiler.Nodes.Node.VisitChildrens(IASTVisitor astVisitor, Boolean continueVisit, IEnumerable`1 childrenNodes)
   at TypeCobol.Compiler.Nodes.Node.VisitChildrens(IASTVisitor astVisitor, Boolean continueVisit, IEnumerable`1 childrenNodes)
   at TypeCobol.Compiler.Nodes.Node.VisitChildrens(IASTVisitor astVisitor, Boolean continueVisit, IEnumerable`1 childrenNodes)
   at TypeCobol.Compiler.Nodes.Node.AcceptASTVisitor(IASTVisitor astVisitor)
   at TypeCobol.Compiler.Parser.ProgramClassParserStep.CrossCheckPrograms(SourceFile root, TemporarySemanticDocument temporarySemanticDocument, TypeCobolOptions compilerOptions)
   at TypeCobol.Compiler.CompilationUnit.RefreshProgramClassDocumentSnapshot()
   at TypeCobol.LanguageServer.Workspace.<RefreshSyntaxTree>g__RefreshNodes|104_0(<>c__DisplayClass104_0&)
   at TypeCobol.LanguageServer.Workspace.RefreshSyntaxTree(FileCompiler fileCompiler, SyntaxTreeRefreshLevel refreshLevel)
   at TypeCobol.LanguageServer.Workspace.<>c__DisplayClass102_0.<TimerEvent>g__Refresh|0()
   at TypeCobol.LanguageServer.TypeCobolServerHost.MessageHandler(IMessageHandler messageHandler, TypeCobolServer typeCobolServer)

Looking at the code, it means that either the Token was null or its LiteralValue.

TODO

  • identify how to reproduce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant