Skip to content

Error on write when assigning inside lambda #554

Closed

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

Activity

  1. dset0x commented on May 2, 2015

    @dset0x
    Contributor

    @bgr This should be fixed by this: #452 (comment)

  2. klen commented on Sep 8, 2015

    @klen
    Collaborator

    Thank you for the feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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