Log In
New Account
Home My Page Projects Blender 2.x BF release
Summary Activity Tracker SCM Files

Blender 2.6 Bug Tracker: Browse

[#24419] Console Autocomplete Error [Patch to fix attached]

Date:
2010-10-27 18:17
Priority:
3
State:
Closed
Submitted by:
Justin Dailey (dail)
Assigned to:
Campbell Barton (campbellbarton)
Category:
None
Status:
Fixed / Closed
Relates to:
Duplicates:
Patches:
 
Summary:
Console Autocomplete Error [Patch to fix attached]
Detailed description
When using autocomplete in the console for a function description, and no description exists, the console shows the error:

Traceback (most recent call last):
File "/home/justin/blender-svn/install/linux2/2.55/scripts/op/console_python.py", line 229, in autocomplete
private=bpy.app.debug)
File "/home/justin/blender-svn/install/linux2/2.55/scripts/modules/console/intellisense.py", line 117, in expand
cursor, namespace)
File "/home/justin/blender-svn/install/linux2/2.55/scripts/modules/console/complete_calltip.py", line 192, in complete
return matches, word, scrollback
UnboundLocalError: local variable 'scrollback' referenced before assignment

To reproduce, start blender, open console, type something like "bpy.data.armatures(" and hit Ctrl+Space. Clearly the problem is armatures is not callable, but this still needs fixed due to either someone not realizing it is not callable or if a description just doesn't have a description.

r32740
Ubuntu 10.04

Patch attached.

Followup

Message
  • Date: 2010-10-27 18:52
  • Sender: Campbell Barton
  • Thanks for the patch.
    for some reason this didnt give a python error for me but I can see its possible to fail if func returned but was None.

    applied in svn r32744.
  • Date: 2010-10-27 19:56
  • Sender: Campbell Barton
  • Thanks for the patch.
    for some reason this didnt give a python error for me but I can see its possible to fail if func returned but was None.

    applied in svn r32744.
 

Attached Files:

Name Date Download
console_error.py 2010-10-27 18:17 Download

Changes:

Field Old Value Date By
close_date2010-10-27 19:562010-10-27 19:56campbellbarton
ResolutionNone2010-10-27 18:52campbellbarton
close_date2010-10-27 18:522010-10-27 18:52campbellbarton
assigned_tonone2010-10-27 18:52campbellbarton
status_idOpen2010-10-27 18:52campbellbarton
File Added13269: console_error.py2010-10-27 18:17dail