Hello,

isearch fails to highlight in dired and displays the following error:
image.png

As dired sets text property 'invisible to a symbol, either: 'dired-hide-details-detail, 'dired-hide-details-information or 'dired-hide-details-link, in order for isearch to properly highlight the searched string in a dired buffer, the following patch ought to be applied to isearch-range-invisible:
diff -u isearch.el~ isearch.el
--- isearch.el~ 2019-09-10 02:32:49.000000000 +0200
+++ isearch.el 2022-06-02 17:13:55.490492201 +0200
@@ -2972,7 +2972,7 @@
  ;; skip all characters with that same `invisible' property value.
  ;; Do that over and over.
  (while (and (< (point) end) (invisible-p (point)))
-  (if (invisible-p (get-text-property (point) 'invisible))
+  (if (member (get-text-property (point) 'invisible) buffer-invisibility-spec)
       (progn
  (goto-char (next-single-property-change (point) 'invisible
  nil end))

Kind Regards,

Thierry Emery