rs.PopupMenu stopped working here

Running this:

import rhinoscriptsyntax as rs
my_list=["ham","eggs","spam"]
result=rs.PopupMenu(my_list)

Gives

Message: Object reference not set to an instance of an object.

Traceback:
line 1210, in PopupMenu, “C:\Users\heynick\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\userinterface.py”
line 3, in , “C:\Users\heynick\AppData\Local\Temp\TempScript.py”

Nothing else seems to be affected so far, all my other scripts not involving PopupMenu seem to work.
(6.6.18156.11421, 05-06-18)
(didn’t get last auto-update either…)
Restart of machine and Rhino did not help…

Hi Mitch,

This was fixed in the code a few days ago:
https://mcneel.myjetbrains.com/youtrack/issue/RH-46606

In the meantime you need to add the modes parameter:

result=rs.PopupMenu(my_list, modes=[0])

https://mcneel.myjetbrains.com/youtrack/issue/RH-46606

No permissions to view…

Oops. Should be able to view it now.

OK, appears to have been fixed in (6.6.18163.7531, 12-06-18), thanks!