I just updated to the newest version of Ninja and for some reason when I am coding in the Editor I keep getting this error and then my editor just breaks,
"2025-01-26 22:43:02:881 Object reference not set to an instance of an object.
2025-01-26 22:43:02:881 System.NullReferenceException: Object reference not set to an instance of an object.
at NinjaTrader.Gui.NinjaScript.Editor.ActiproManager. FilteredCompletionProvider.IsFilteredCompletionIte m(ICompletionSession session, ICompletionItem item)
at ActiproSoftware.Windows.Controls.SyntaxEditor.Inte lliPrompt.Implementation.CompletionFilter.Filter(I CompletionSession session, ICompletionItem item)
at ActiproSoftware.Windows.Controls.SyntaxEditor.Inte lliPrompt.Implementation.CompletionSession.Dt8(Obj ect )
at System.Windows.Data.ListCollectionView.PrepareLoca lArray()
at System.Windows.Data.ListCollectionView.RefreshOver ride()
at System.Windows.Data.CollectionView.RefreshInternal ()
at System.Collections.Specialized.NotifyCollectionCha ngedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
at System.Collections.ObjectModel.ObservableCollectio n`1.OnCollectionChanged(NotifyCollectionChangedEve ntArgs e)
at ActiproSoftware.Windows.DeferrableObservableCollec tion`1.OnCollectionChanged(NotifyCollectionChanged EventArgs e)
at ActiproSoftware.Windows.DeferrableObservableCollec tion`1.EndUpdate()
at ActiproSoftware.Windows.Controls.SyntaxEditor.Inte lliPrompt.Implementation.CompletionItemCollection. HP.Dispose(Boolean )
at ActiproSoftware.Text.Utility.DisposableObject.Disp ose()
at ActiproSoftware.Windows.Controls.SyntaxEditor.Inte lliPrompt.Implementation.CompletionSession.SortIte ms(IComparer`1 comparer)
at ActiproSoftware.Windows.Controls.SyntaxEditor.Inte lliPrompt.Implementation.CompletionSession.SortIte ms()
at ActiproSoftware.Text.Languages.DotNet.Implementati on.DotNetCompletionProviderBase.OnSessionOpening(I CompletionSession session)
at NinjaTrader.Gui.NinjaScript.Editor.ActiproManager. FilteredCompletionProvider.OnSessionOpening(ICompl etionSession session)
at ActiproSoftware.Text.Languages.CSharp.Implementati on.CSharpCompletionProvider.RequestSession(IEditor View view, Boolean canCommitWithoutPopup)
at ActiproSoftware.Text.Languages.CSharp.Implementati on.CSharpCompletionProvider.OnDocumentTextChanged( SyntaxEditor editor, EditorSnapshotChangedEventArgs e)
at ActiproSoftware.Text.Languages.CSharp.Implementati on.CSharpCompletionProvider.ActiproSoftware.Window s.Controls.SyntaxEditor.IEditorDocumentTextChangeE ventSink.NotifyDocumentTextChanged(SyntaxEditor editor, EditorSnapshotChangedEventArgs e)
at ActiproSoftware.Windows.Controls.SyntaxEditor.Synt axEditor.OnDocumentTextChanged(EditorSnapshotChang edEventArgs e)
at ActiproSoftware.Windows.Controls.SyntaxEditor.Synt axEditor.RaiseDocumentTextChangedEvent(EditorSnaps hotChangedEventArgs e)
at ActiproSoftware.Windows.Controls.SyntaxEditor.Synt axEditor.iSW(TextSnapshotChangedEventArgs )
at ActiproSoftware.Windows.Controls.SyntaxEditor.Synt axEditor.ISE(Object , TextSnapshotChangedEventArgs )
at ActiproSoftware.Windows.Controls.SyntaxEditor.Synt axEditor.<>c.xJP(SyntaxEditor instance, Object source, TextSnapshotChangedEventArgs eventArgs)
at ActiproSoftware.Text.Utility.WeakEventListener`2.O nEvent(Object source, TEventArgs eventArgs)
at ActiproSoftware.Text.Implementation.TextDocumentBa se.OnTextChanged(TextSnapshotChangedEventArgs e)
at ActiproSoftware.Text.Implementation.CodeDocument.O nTextChanged(TextSnapshotChangedEventArgs e)
at ActiproSoftware.Text.Implementation.TextDocumentBa se.ApplyTextChange(TextChange textChange, Action`1 snapshotCreatedAction)
at ActiproSoftware.Text.Implementation.TextChange.App ly()
at ActiproSoftware.Windows.Controls.SyntaxEditor.Prim itives.EditorView.ReplaceSelectedText(ITextChangeT ype type, String text, IEditorViewTextChangeOptions options)
at ActiproSoftware.Windows.Controls.SyntaxEditor.Edit Actions.TypingAction.Execute(IEditorView view)
at ActiproSoftware.Windows.Controls.SyntaxEditor.Prim itives.EditorView.ExecuteEditAction(IEditAction action)
at ActiproSoftware.Windows.Controls.SyntaxEditor.Prim itives.EditorView.PerformTyping(String text)
at ActiproSoftware.Windows.Controls.SyntaxEditor.Prim itives.EditorView.ProcessTyping(TextCompositionEve ntArgs e)
at ActiproSoftware.Windows.Controls.SyntaxEditor.Prim itives.EditorView.OnTextInput(TextCompositionEvent Args e)
at System.Windows.RoutedEventArgs.InvokeHandler(Deleg ate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandle r(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Objec t source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(Dependency Object sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedE ventArgs args)
at System.Windows.Input.InputManager.ProcessStagingAr ea()
at System.Windows.Input.InputManager.ProcessInput(Inp utEventArgs input)
at System.Windows.Input.TextCompositionManager.PostPr ocessInput(Object sender, ProcessInputEventArgs e)
at System.Windows.Input.InputManager.RaiseProcessInpu tEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
at System.Windows.Input.InputManager.ProcessStagingAr ea()
at System.Windows.Input.InputManager.ProcessInput(Inp utEventArgs input)
at System.Windows.Input.TextCompositionManager.PostPr ocessInput(Object sender, ProcessInputEventArgs e)
at System.Windows.Input.InputManager.RaiseProcessInpu tEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
at System.Windows.Input.InputManager.ProcessStagingAr ea()
at System.Windows.Input.InputManager.ProcessInput(Inp utEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput (InputReport inputReport)
at System.Windows.Interop.HwndKeyboardInputProvider.P rocessTextInputAction(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.OnPreprocessMess age(Object param)
at System.Windows.Threading.ExceptionWrapper.Internal RealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatch When(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)"
This was found in my trace file. Not sure how to fix or what it means. Seems to be an issue with the Auto completion on the typing in the editor
Thanks!

Comment