We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Emacs version: 29.2 yasnippet version: 20240124.258 (Melpa)
Snippets using elpy-snippet-init-assignments expand to error output "Symbol’s value as variable is void: start-point".
elpy-snippet-init-assignments
E.g.
# -*- mode: snippet -*- # name: init # key: init # group : definitions # -- def __init__(self${1:, args}): ${1:$(my/elpy-snippet-init-assignments yas/text)}
expands to
def __init__(self, args): Symbol’s value as variable is void: start-point
As a quick fix replacing start-point with (point) appears to work:
start-point
(point)
(defun fix/elpy-snippet-init-assignments (arg-string) "Return the typical __init__ assignments for arguments in ARG-STRING." (let ((indentation (make-string (save-excursion (goto-char (point)) (current-indentation)) ?\s))) (mapconcat (lambda (arg) (if (string-match "^\\*" arg) "" (format "self.%s = %s\n%s" arg arg indentation))) (elpy-snippet-split-args arg-string) "")))
The text was updated successfully, but these errors were encountered:
What/where is my/elpy-snippet-init-assignments? It sounds like the error is coming from that function, which is not part of YASnippet, AFAICT.
my/elpy-snippet-init-assignments
Sorry, something went wrong.
No branches or pull requests
Emacs version: 29.2
yasnippet version: 20240124.258 (Melpa)
Snippets using
elpy-snippet-init-assignments
expand to error output "Symbol’s value as variable is void: start-point".E.g.
expands to
As a quick fix replacing
start-point
with(point)
appears to work:The text was updated successfully, but these errors were encountered: