Page MenuHome

Assigning shortcut to editor properties gives errors
Open, Confirmed, HighPublic

Description

System Information
Operating system: Windows-8.1-6.3.9600 64 Bits
Graphics card: AMD Radeon R5 M230 Series ATI Technologies Inc. 4.5.13464 Core Profile Context 21.19.407.0

Blender Version
Broken: version: 2.80 (sub 74), branch: master, commit date: 2019-05-31 22:45, hash: rBcc600de6695a
Worked: (optional)

Short description of error
Everytime I open blender and click anything in the object mode, the program reports to me an error and it's very annoying.
I'll write the entire report:

File "D:\Blender\blender-2.80.0-git.cc600de6695a-windows64\2.80\scripts\startup\bl_operators\wm.py", line 332, in execute if context_path_validate(context, data_path) is Ellipsis:
File "D:\Blender\blender-2.80.0-git.cc600de6695a-windows64\2.80\scripts\startup\bl_operators\wm.py", line 75, in context_path_validate value = eval("context.%s" data_path) if data_path else Ellipsis
File "<string>", line 1
context.(null).shading.show_xray
        ^
SintaxError: invalid syntax

location: <unkown location>:-1

Exact steps for others to reproduce the error
Right click on "Show whole scene transparent" -> "Assign Shortcut" -> I clicked "Dash" key

Details

Type
Bug

Event Timeline

Gabriele (gtmax99) updated the task description. (Show Details)
Brecht Van Lommel (brecht) triaged this task as Confirmed, Medium priority.

It should not allow creating shortcuts for such incomplete paths. Additionally it would be good to add support for context.space_data, that's a pretty common case for binding shortcuts.

Brecht Van Lommel (brecht) renamed this task from Error shortcut to Assigning shortcut to editor properties gives errors.Jun 2 2019, 12:51 AM

@Brecht Van Lommel (brecht) as we discussed, this seems to be a bit more tricky that initially anticipated.

Brecht Van Lommel (brecht) raised the priority of this task from Confirmed, Medium to Confirmed, High.

@Brecht Van Lommel (brecht) as we discussed, this seems to be a bit more tricky than initially anticipated.

How tricky is it?