abrt version: 1.1.13 architecture: x86_64 cmdline: /usr/bin/python /usr/lib64/anjuta/anjuta-python-autocomplete.py -o calltip -p /home/sergey/router -r /home/sergey/router/src/router.py -s /tmp/.QOENLV -f 814 component: anjuta executable: /usr/lib64/anjuta/anjuta-python-autocomplete.py kernel: 2.6.35.6-48.fc14.x86_64 package: anjuta-1:2.31.90.0-1.fc14 reason: evaluate.py:43:eval_str2:BadIdentifierError: Not a resolvable python identifier selected. release: Fedora release 14 (Laughlin) time: 1288772959 uid: 500 backtrace ----- evaluate.py:43:eval_str2:BadIdentifierError: Not a resolvable python identifier selected. Traceback (most recent call last): File "/usr/lib64/anjuta/anjuta-python-autocomplete.py", line 66, in <module> proposals = codeassist.get_doc(proj, source_code, position, resource=res, maxfixes=10) File "/usr/lib/python2.7/site-packages/rope/contrib/codeassist.py", line 59, in get_doc pyname = fixer.pyname_at(offset) File "/usr/lib/python2.7/site-packages/rope/contrib/fixsyntax.py", line 64, in pyname_at result = old_pyname() File "/usr/lib/python2.7/site-packages/rope/contrib/fixsyntax.py", line 57, in old_pyname return rope.base.evaluate.eval_str(scope, expression) File "/usr/lib/python2.7/site-packages/rope/base/evaluate.py", line 35, in eval_str return eval_str2(holding_scope, name)[1] File "/usr/lib/python2.7/site-packages/rope/base/evaluate.py", line 43, in eval_str2 raise BadIdentifierError('Not a resolvable python identifier selected.') BadIdentifierError: Not a resolvable python identifier selected. Local variables in innermost frame: name: 'if' holding_scope: <rope.base.pyscopes.FunctionScope object at 0x7fc14d052210>
Created attachment 457379 [details] File: backtrace
This is a bug in python.rope - not in anjuta
-- Fedora Bugzappers volunteer triage team https://fedoraproject.org/wiki/BugZappers
Are you able to give us the python files that cause this? This may be a bug in python-rope but it's at least equally likely that this is an anjuta bug: anjuta-python-autocomplete.py may need to catch the BadIdentifierError exception and decide how to display (or not display) the fact that the selected identifier was not found.
python-rope-0.9.3-2.20101213hg1585.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/python-rope-0.9.3-2.20101213hg1585.fc14
Please test this update. It's a snapshot that seems to be nothing but bugfixes but I'd rather not push it to stable unless someone verifies that this fixes the issue and doesn't cause new ones. Mailing list discussion and changelog entries indicate that this may fix the issue but looking at the code vs the traceback, I'm not as certain that it does. Please test.
python-rope-0.9.3-2.20101213hg1585.fc14 has been pushed to the Fedora 14 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update python-rope'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/python-rope-0.9.3-2.20101213hg1585.fc14
If someone could test that the update of python-rope fixes this bug I'd be most appreciative. I'm not an anjuta user and I'm also not heavily using python-rope currently so I'm hesitant to push this update without verification that it solves the bug.
Will test in some time.
python-rope-0.9.3-2.20101213hg1585.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.
I've got 0.9.3-2.20101213hg1585.fc14 and this problem still occurs.
Actually this is a problem in anjuta (or well, it's just the python is a bit picky about reporting errors when not asked for it.) Fixed in master: http://git.gnome.org/browse/anjuta/commit/?id=ea6d34ce2b69c43a63d395983aa21a8e41b0ba5a