jdtsmith / kind-icon

Completion kind text/icon prefix labelling for emacs in-region completion
GNU Affero General Public License v3.0
174 stars 4 forks source link

Interaction between kind-icon and ement causes breakage #37

Closed stsquad closed 1 year ago

stsquad commented 1 year ago

It looks like some sort of interaction between ement (a matrix client) and kind-icon causes breakage. I suspect it is due to the way they use svg-lib. See https://github.com/alphapapa/ement.el/issues/212 for the full details.

jdtsmith commented 1 year ago

Looks complicated. Can you briefly describe the issue? Is it clear what's causing it?

alphapapa commented 1 year ago

Looks complicated. Can you briefly describe the issue? Is it clear what's causing it?

You'll have to read through the linked issue. And, no, it's not clear at all. In fact, the error seems inexplicable, and I can't reproduce it. @stsquad says that it only happens when he uses the kind-icon configuration he shows there, but I don't know how that could cause it, either.

jdtsmith commented 1 year ago

That's a lot to digest; @stsquad can you make a minimum reproducer starting from emacs -q, ideally using just an svg-lib-tag call (not all of ement)? Often I've found that bisecting configs gives you the wrong impression about the source of the error. It could also be a bug in svg-lib, for example.

Also if you C-M-x inside svg-lib-tag, the error traceback will be more specific. I've seen no issues with this, in the same buffer where kind-icon is operating:

(insert-image (svg-lib-tag "n" nil :background "#d98580" :foreground "white" :stroke 0))
jdtsmith commented 1 year ago

It seems this is a problem with conflicting svg tag libraries? Let me know if kind-icon is implicated on further study.