TabularEditor / TabularEditor

This is the code repository and issue tracker for Tabular Editor 2.X (free, open-source version). This repository is being maintained by Daniel Otykier.
https://tabulareditor.com
MIT License
880 stars 215 forks source link

Find and Replace Issue #744

Closed jebellingham closed 3 years ago

jebellingham commented 3 years ago

Hello & firstly thank you @otykier for creating such a useful application - I am not a developer, so please forgive my use of incorrect terms etc. My issue is with using Find and Replace. I am trying to use this feature to replace one element of an expression and what I am discovering is that whilst the Find feature will find the string of text, Find and Replace will not highlight the same text, or will not find it at all.

To trigger the error;

  1. I click on the measure with the text I want to replace
  2. Click within the Expression Editor
  3. Find / Find and Replace become available
  4. I click the Find icon and enter the text, then click Find, it finds the text as expected
  5. However, if I copy the text I entered into the Find function, close the dialog box, then click on Find and Replace, it does not find the same text. It tends to highlight text on the same row before the text it should highlight, on other expressions with the same text string, it may not find anything at all
  6. Sometimes clicking on the Format Dax icon and toggling between Long Line and Short Line seems to temporarily fix the issues, but not always

Expected behaviour would be for the finding part of Find and Replace to work the same as Find.

There are no error messages

Thank you once more for developing this very useful application, apologies for my poor use of terminology.

I am using version 2.13.7643.22890 which I believe is the most recent version Power BI Desktop Version is 2.88.1385.0 (December 2020)

jebellingham commented 3 years ago
1-Find 2-Find_and_Replace
otykier commented 3 years ago

Fixed in 2.14.0.