You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
Activity
boatx commentedon Jul 17, 2018
Hi
I think it could be solved by my pull request: #914
diraol commentedon Jul 17, 2018
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?
Sunno commentedon Jul 17, 2018
@boatx @diraol it works! not sure if type should be an empty string but it does the work
diraol commentedon Jul 20, 2018
I've tried to find out what should be the content of the
typevariable, but I couldn't.It may be an important attribute actually (or not... LOL).
Any suggestion @fmv1992 ?
boatx commentedon Jul 20, 2018
This error is related to
PymodeLocList. It is used to display places in code where rope has found occurences.python-mode/autoload/pymode/rope.vim
Line 60 in bb746d0
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.
python-mode/autoload/pymode/tools/loclist.vim
Line 54 in bb746d0
This type is later displayed next to line number. I wasn't sure what to put for rope so I've added empty string.
diraol commentedon Jul 23, 2018
@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.
Merge pull request #914 from boatx/bugfix/fix_finding_occurrences