Page 2 of 2

Re: Freezing modules having native and viper functions

Posted: Sun Aug 18, 2019 12:45 pm
by jimmo
OK thanks for the detailed repro instructions. It looks like I might be able to run this code without anything connected and the driver won't complain, hopefully can repro that way. Will let you know.

Otherwise...might just have to order one of those displays... :)

Re: Freezing modules having native and viper functions

Posted: Tue Aug 20, 2019 5:48 am
by jimmo
The fix for original issue with alignment is now merged. #5014

@pythoncoder's follow up issue I'm still investigating. There appears to be an issue calling a @native function that calls another @native/@viper function when the globals change (e.g. across a module). It seems that a workaround in the meantime is to make any @native function module-private, and always call it via a regular function in the same scope. (It looks like the native emitter that doesn't correctly save/restore the globals dict).