Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
New map iteration -- INTERNAL ERROR. Trying to set type of an unbound or captured variable.
George_Anderson
Member Posts: 71 ✭✭
Using the latest Featurescript, I'm intermittently getting this message:
INTERNAL ERROR. Trying to set type of an unbound or captured variable.It always points to various places in my code where I started to use the new support for nicer map iteration:
for (var key, value in myMap){
It's happening only rarely, and unpredictably, and seems to reset sometimes when refreshing the page, or switching tabs, so I don't think it is based on different part studio states (like different variable values). I'd file a bug report, but I can't seem to see any pattern, just checking if anyone has seen this.
Tagged:
0
Comments
Edit: the team is aware of it and it is a priority to fix. The current workaround is to avoid the new for loop syntax.
@alnis is my personal account. @alnis_ptc is my official PTC account.
Feel free to use this new 2-variable for loop syntax any time you iterate through a map or an array!