Skip to content

Error when selecting 'fill match arms' code action: (void-function yas-expand-snippet) #2280

@jimblandy

Description

@jimblandy

In lsp-mode-20201021.1658, clicking on the light bulb in the mode line to fill in a match statement raises an error saying that yas-expand-snippet is not defined, at the backtrace below.

I do not have yasnippet installed.

Debugger entered--Lisp error: (void-function yas-expand-snippet)
  yas-expand-snippet("\\{\n            Some(${0:_}) => \\{}\n            Non..." 4829 4894 nil)
  lsp--expand-snippet("{\n            Some(${0:_}) => {}\n            None ..." 4829 4894)
  #f(compiled-function (edit) #<bytecode 0xdcf815>)(#<hash-table equal 3/3 0xe649e1>)
  mapc(#f(compiled-function (edit) #<bytecode 0xdcf815>) [#<hash-table equal 3/3 0xe649e1>])
  lsp--apply-text-edits([#<hash-table equal 3/3 0xe649e1>])
  lsp--apply-text-document-edit(#<hash-table equal 2/2 0xe64989>)
  mapc(lsp--apply-text-document-edit (#<hash-table equal 2/2 0xe64989>))
  seq-do(lsp--apply-text-document-edit (#<hash-table equal 2/2 0xe64989>))
  lsp--apply-workspace-edit(#<hash-table equal 1/1 0xe64951>)
  lsp-execute-code-action(#<hash-table equal 3/3 0xe648f9>)
  #f(compiled-function () (interactive nil) #<bytecode 0xe6b869>)()
  funcall-interactively(#f(compiled-function () (interactive nil) #<bytecode 0xe6b869>))
  call-interactively(#f(compiled-function () (interactive nil) #<bytecode 0xe6b869>) nil nil)
  command-execute(#f(compiled-function () (interactive nil) #<bytecode 0xe6b869>))

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions