Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
RidaAyed opened this issue Jul 26, 2024 · 4 comments
Closed

Comments

@RidaAyed
Copy link

RidaAyed commented Jul 26, 2024

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 💻

  • OS: gnu/linux
  • Emacs: 29.4
  • Spacemacs: 0.999.0
  • Spacemacs branch: develop (rev. 20a8c6b43)
  • Graphic display: t
  • Running in daemon: nil
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
((spacemacs-layouts :variables spacemacs-layouts-restrict-spc-tab t)
 systemd graphviz
 (spell-checking :variables spell-checking-enable-by-default nil spell-checking-enable-auto-dictionary t enable-flyspell-auto-completion t)
 yaml
 (json :variables json-fmt-tool 'web-beautify)
 latex pass csv prodigy
 (treemacs :variables treemacs-use-all-the-icons-theme t)
 search-engine
 (auto-completion :variables auto-completion-enable-snippets-in-popup t auto-completion-enable-help-tooltip t auto-completion-return-key-behavior 'complete auto-completion-tab-key-behavior 'cycle auto-completion-enable-sort-by-usage t auto-completion-idle-delay 0.2 auto-completion-minimum-prefix-length 2)
 exwm emacs-lisp git helm finance
 (org :variables org-enable-hugo-support t org-enable-github-support t)
 (shell :variables shell-default-shell 'ansi-term shell-default-height 30 shell-default-position 'right spacemacs-vterm-history-file-location "~/.bash_history")
 (version-control :packages
                  (not git-gutter))
 mu4e pdf
 (python :variables python-backend 'lsp python-lsp-server 'pyright python-test-runner 'pytest))
  • System configuration features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB
@quazgar
Copy link

quazgar commented Oct 17, 2024

I can reproduce this with plain Emacs:

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

def fdn(bar):
    """

    Wrong type argument: listp, "bar"
    """ 
  • GNU Emacs 29.4 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.16.0) of 2024-07-22, modified by Debian
  • yasnippet: 20241013.1557
  • yasnippet-snippets: 20241014.949

@monnier
Copy link
Collaborator

monnier commented Oct 22, 2024 via email

@quazgar
Copy link

quazgar commented Oct 22, 2024

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
Copy link
Collaborator

monnier commented Oct 23, 2024

I think your message does just that 😃, thanks.

@monnier monnier closed this as completed Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants