Can not use tab key anymore to insert variables

=>>>Crashes when i use tab to insert existing code or variables.<<<=

De objectverwijzing is niet op een exemplaar van een object ingesteld.
bij RemObjects.Fire.ProjectSystem.TextFile.getCodeSnippetForLine____atLocation__replaceRestOfLine(String line, FBLCursor cursor, Boolean& replaceRestOfLine)
bij RemObjects.Fire.CodeEditor.FCECanvasCodeSnippet.tryExpandSnippetAtCursor()
bij RemObjects.Fire.CodeEditor.FCECanvasCodeSnippet.insertTabAtCursor()
bij RemObjects.Fire.CodeEditor.FCECanvasCodeSnippet.tab(Boolean shiftPressed)
bij RemObjects.Fire.CodeEditor.FCECanvasCodeSnippet.handleKeysWindows(KeyEventArgs theEvent)
bij RemObjects.Fire.CodeEditor.FCECanvasCodeSnippet.keyDown(KeyEventArgs theEvent)
bij RemObjects.Fire.CodeEditor.FCECanvasCodeSnippet.OnKeyDown(KeyEventArgs e)
bij System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
bij System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
bij System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
bij System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
bij System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
bij System.Windows.Input.InputManager.ProcessStagingArea()
bij System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
bij System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
bij System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
bij System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
bij System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
bij System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
bij System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
bij System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Hey, sorry for the delayed reply :folded_hands:
I tried to reproduce this exception, but couldn’t with the latest version. Can you please specify if this error is still relevant to you? If so, please provide a small test case and the exact steps to take to see this error. Thanks!

FWIW, From the error stack, it sounds like this is very likely specific to the text on the current line, yes

Hi Ekateriana,

It is hard to reproduce the error intentionally.
Instead of the tab to autoinsert now i use the enter key to do so.
That does not give any trouble.
If no body else has this issue then i could be something with my laptop setup, who knows.

Kind regards.

Can you give me an example of what’s on the current line of code when this fails? Just rthe one line will probably suffice, as I expect this is a bug/regression in the code snippet expansion, which I recently made a bit more flexible, and I might have overlooked a corner-case…

I don’t need the complete file, literally the one single line of code will suffice (you can send it t me as DM).

thanx!
marc

I think I reproduced what you’re seeing. When the current line starts with a code snippet, using tab in the CC window will expend the snippet (exported behavior, when CC is not open), instead of picking the CC item.

An argument could be made for either behavior, but I agree it’s probably best to keep Tab accepting the CC item in this scenario. I’ll and fix this for the next build.

yours,
marc