Posts: 17,859
Joined: Jul 2011
Reputation:
371
what recent nightly build because maybe it already has been fixed?
Posts: 492
Joined: Dec 2006
Reputation:
5
Yup. If you're using the _cmp_ (the overloaded '==' operator) to check for the control, then I just checked in a fix.
Try the current master. If it's still not working, post here.
PLEASE MAKE SURE YOU REBUILD FROM SCRATCH. There's a problem with some of the platforms with correctly regenerating code.
Thanks
Jim
Posts: 492
Joined: Dec 2006
Reputation:
5
I really meant "just checked in a fix" ...like 2 minutes before (Sunday night, east coast US). It'd be great if I could get an entire addon that exhibits this behavior (if it's still happening).
Please make sure you build from scratch when checking out new code.
Thanks
Jim
Posts: 1,466
Joined: Jul 2005
Reputation:
29
Basje
Team-Kodi Member
Posts: 1,466
I just installed XBMCSetup-20120916-ce9750d-master.exe, which should include your fix b59ddb1bce5ed6ee3f56371e2e61553ca1b1925e.
With this build the issue still exists. So I invite you to install my add-on and test it yourself (might need to restart it the first run, due to some config stuff that is initialized on the first boot).
Posts: 492
Joined: Dec 2006
Reputation:
5
Basje, I couldn't get your script to go past the loading dialog (on either the latest, or a version prior to all of the changes in the scripting engine).
Posts: 492
Joined: Dec 2006
Reputation:
5
Nevermind. I installed it wrong. Will try again later.
Posts: 492
Joined: Dec 2006
Reputation:
5
I'm not sure. I think maybe I did have it installed correctly. But, it comes up under Videos, not Programs (like the doc says) and it just sits on the loading dialog.
Posts: 492
Joined: Dec 2006
Reputation:
5
Ha ha... it appears to be in both places. Maybe I have it installed correctly AND incorrectly.
Posts: 492
Joined: Dec 2006
Reputation:
5
Ok. This error is from the codebase PRIOR to any of the codegenerator changes going in:
09:38:15 T:139999207294720 ERROR: Non-Existent Control 1051
So there's nothing that's been introduced by the codegenerator, which is a complete rewrite of the entire scripting engine. In both cases it gets this error. I suggest you check the exact window/control you're trying to retrieve that control from.
Posts: 492
Joined: Dec 2006
Reputation:
5
There is one difference to note. The old system used to raise a "TypeError" in python when this happend. Now a RuntimeError is raised. Maybe that explains why you notice a difference?