breadcrumb icon indicating copy to clipboard operation
breadcrumb copied to clipboard

Error during redisplay: (eval (breadcrumb--header-line)) signaled (args-out-of-range 0 1)

Open jcs090218 opened this issue 9 months ago • 5 comments

It seems like something went wrong in breadcrumb--ipath-plain.

 (defun breadcrumb-ipath (index-alist pos)
   "Get breadcrumb for position POS given INDEX-ALIST."
   (if (get-text-property 0 'breadcrumb-region (caar index-alist))
       (breadcrumb--ipath-rich index-alist pos)
-     (breadcrumb--ipath-plain index-alist pos)))
+    (ignore-errors (breadcrumb--ipath-plain index-alist pos))))

After ignore-errors, the error disappear. 🤔

Step to reproduce

  1. Open the file below in svelte-mode then you will see the error:
<section>
    <h1>
        <span class="welcome">
        </span>
    </h1>

    <Counter />
</section>

Additional Information

The breadcrumb is now empty due to the error. Other (or most) svelte files work fine.

jcs090218 avatar May 13 '24 09:05 jcs090218