TabularEditor3 icon indicating copy to clipboard operation
TabularEditor3 copied to clipboard

Intellisense bug after & operator

Open avatorl opened this issue 4 years ago • 3 comments

I can't type in any function name after & operator. If I enter ( after either UNICHAR or FORMAT in my example, it will duplicate first letter of function name instead: UUNICHAR, FFORMAT

TabularEditor3_2021-07-16_21-36-58 1

avatorl avatar Jul 16 '21 19:07 avatorl

What version of Tabular Editor 3 are you using? I'm not able to reproduce this with 3.0.9. Could you perhaps record a gif to demonstrate this? Also, could you copy the entire DAX expression and insert it here as text? I suspect the special unicode character in front of "Mount Everest" might cause the issue.

otykier avatar Aug 10 '21 11:08 otykier

It was in the older version, but now I tried in 3.0.10 and I was able to reproduce the problem. You're right, it seems to be caused by some unicode characters (e.g. U+1F69E), but now it work a bit differently:

After typing in F letter in "?? Test" & F

Tabular Editor Unhandled Exception Error Report

Tabular Editor version: 3.0.10 (3.0.7892.27410) OS version: Microsoft Windows NT 10.0.19042.0 Model details: CompatibilityLevel: 1550 CompatibilityMode: PowerBI IsPbiDesktop: True SourceType: Database TableCount: 5 FirstTimeModelLoad: False DatabaseNameSHA256: 64d7946b96a87481f48a076810d879f9110a0b9f1548810a ServerVersion: 15.1.97.23 ServerLocation: OnPremise ServerProductLevel: RTM ServerProductName: Microsoft SQL Server Analysis Services ServerEdition: Enterprise64 ServerNameSHA256: 19b50ed4396b2ff5396558a9f437983bf9beb9cebf4944db User description: After typing in F letter in the following code I'm getting this error...

"?? Test" & F

Related to https://github.com/TabularEditor/TabularEditor3/issues/135 Exception message: Non-negative number required. Parameter name: length Exception source: mscorlib Stack trace: at System.String.CreateString(SByte* value, Int32 startIndex, Int32 length, Encoding enc) at System.String..ctor(SByte* value, Int32 startIndex, Int32 length, Encoding enc) at ScintillaNET.Scintilla.GetTextRange(Int32 position, Int32 length) at DaxscillaEditor.Features.AutoComplete.AutoCompleteManager.UpdateFilterStringFromToken(Int32 replaceFrom, IToken token) at DaxscillaEditor.Features.AutoComplete.AutoCompleteManager.DetermineState(Char addedChar, Boolean forceShow) at DaxscillaEditor.Daxscilla.OnCharAdded(CharAddedEventArgs e) at ScintillaNET.Scintilla.WmReflectNotify(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) Modules loaded: tabulareditor3.exe

avatorl avatar Aug 10 '21 16:08 avatorl

@avatorl is this still an issue with the newest version of TE3? If so, could you provide the full DAX expression of the measure where this error is triggered?

otykier avatar Sep 28 '21 19:09 otykier