ahyatt / ekg

The emacs knowledge graph, app for notes and structured data.
GNU General Public License v3.0
230 stars 19 forks source link

Error running ekg-embedding-show-similar for note with no text #64

Closed jayrajput closed 1 year ago

jayrajput commented 1 year ago

I have some ekg notes with no content/text. They are generally pointing to a URL and I am using ekg notes to bookmark them. Since such notes has no text substring-no-properties generate the args-out-of-range error. Here is the error and the stack trace.

Debugger entered--Lisp error: (args-out-of-range "" 0 10)
  substring-no-properties("" 0 10)
  (format "%s..." (substring-no-properties ...
  ekg-note-snippet(....)
ahyatt commented 1 year ago

Thank you for reporting this!