joaotavora / yasnippet

A template system for Emacs
http://joaotavora.github.io/yasnippet/
2.81k stars 311 forks source link

Any snippet using python-args-to-docstring returns Wrong type argument: listp #1200

Closed RidaAyed closed 1 month ago

RidaAyed commented 4 months ago

Expanding e.g. function_docstring and tabbing the cursor to args, shows error Wrong type argument: listp written into the docstr upon typing. Instead of the args I'm typing.

System Info :computer:

quazgar commented 1 month ago

I can reproduce this with plain Emacs:

def fd(foo):
    """
    Wrong type argument: listp, "foo"
    """

def fdn(bar):
    """

    Wrong type argument: listp, "bar"
    """ 
monnier commented 1 month ago

I can reproduce this with plain Emacs:

Neither Emacs nor YAsnippet refer to or define python-args-to-docstring, so this looks like a problem in yasnippet-snippets rather than in YAsnippet (and AFAICT there's already an issue open for that over there).

Am I missing something?

quazgar commented 1 month ago

so this looks like a problem in yasnippet-snippets

Exactly, that's why I opened #505 there. I am fine with closing this issue. Can Github semantically link to that other issue and tell people straightforward to look there?

monnier commented 1 month ago

I think your message does just that :smiley:, thanks.