Skip to content

Find ocurrences not working #921

Closed
Closed

Description

@Sunno

Hi, when I'm using f it throws this error, not sure if it could be misconfiguration or something in my system

Error detected while processing function pymode#rope#find_it:
line    4:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/alvaro/.vim/bundle/python-mode/pymode/rope.py", line 187, in find_it
    env.run('g:PymodeLocList.current().extend', lst)
  File "/home/alvaro/.vim/bundle/python-mode/pymode/environment.py", line 186, in run
    self.prepare_value(a) for a in args
vim.error: Vim(let):E716: Key not present in Dictionary: type

I was using an old version but it stopped working with recent versions, I even uninstalled and installed the plugin again.

Any ideas?

Activity

  1. boatx commented on Jul 17, 2018

    @boatx

    Hi

    I think it could be solved by my pull request: #914

  2. diraol commented on Jul 17, 2018

    @diraol
    Contributor

    Hi friends, I haven't had much time to dedicate to the project, so sorry for not reviewing the PR and other issues.

    @Sunno can you test @boatx PR (#914) in order to see if his suggestion fixes your problem?

  3. Sunno commented on Jul 17, 2018

    @Sunno
    Author

    @boatx @diraol it works! not sure if type should be an empty string but it does the work

  4. diraol commented on Jul 20, 2018

    @diraol
    Contributor

    I've tried to find out what should be the content of the type variable, but I couldn't.

    It may be an important attribute actually (or not... LOL).

    Any suggestion @fmv1992 ?

  5. boatx commented on Jul 20, 2018

    @boatx

    This error is related to PymodeLocList. It is used to display places in code where rope has found occurences.

    let loclist = g:PymodeLocList.current()

    But it is also (or mostly used) by linters to display line of code with error of warnings (type 'E' or 'W'), when list of locations is extended new entries are filtered over type.
    let err_list = filter(copy(a:raw_list), 'v:val["type"] == "E"')

    This type is later displayed next to line number. I wasn't sure what to put for rope so I've added empty string.

  6. diraol commented on Jul 23, 2018

    @diraol
    Contributor

    @boatx thanks for the explanation! =)

    I'll edit your Pull Request in order to add this very important explanation over there, so we can keep it on the git history/log for future reference.

  7. added a commit that references this issue on Jul 23, 2018
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