Skip to content

Error on write when assigning inside lambda #554

@bgr

Description

@bgr

This code lambda: x = 1 will trigger the following error on write:

Error detected while processing function pymode#buffer_post_write..pymode#lint#check:
line   11:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File ".../python-mode/pymode/lint.py", line 71, in code_check
    env.run('g:PymodeLocList.current().extend', [e._info for e in errors])
  File ".../pymode/environment.py", line 186, in run
    self.prepare_value(a) for a in args
vim.error: Vim(call):E121: Undefined variable: null
Error detected while processing function pymode#buffer_post_write:
line   10:
E171: Missing :endif

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions