DCE creates .JS files that won #727
Comments
Just started trying this feature. Out of hundreds of enums, 5 are getting created with a BaseType that isn't recognized. The top one is an example of one that is created fine, the second one is created with I've not yet figured out what these 5 enums have in common that the ones which are working don't have. Though I would go ahead and open a defect in case somebody already knows what this is. I will continue to research some more as well. JSIL.MakeEnum( /* enum Sketch.Interface.StaircaseFramingEnums+ConstructionType */ JSIL.MakeEnum( |
Can you provide part of source code that enough to reproducing? In any case, I don't see any reasons, why |
Still looking at. For whatever it’s worth, with DCE turned back off, it then has BaseType: Other things that might be relevant… These are enums inside of static classes as well (but so are others that do work.) I will attempt to extract the enums into a stand alone test case and see if I can get something relatively straight forward to reproduce. From: Igor Kiselev [mailto:notifications@github.com] Can you provide part of source code that enough to reproducing? In any case, I don't see any reasons, why $.Int32 should not work. — Xactware's opt-in mailing list allows you to receive Xactware News that is of interest to you. Visit my.xactware.com today to join or to update your email preferences! This email is intended solely for the recipient. It may contain privileged, proprietary or confidential information or material. If you are not the intended recipient, please delete this email and any attachments and notify the sender of the error. |
Looks like having a an enum in a class is good enough to reproduce it. A.B fails, C works. As a side note Both fail if not passed through a function (with a different error - Memoized value is undefined – presumption being that using it this way keeps it out of the dead code elimination better than just using it straight up). If I allocate A somewhere in the code (A a = new A()), then the issue also goes away. Presumably it decides that A is used, which runs the elimination code differently – which probably explains why the static classes are more problematic… namespace SketchJS
#if true #endif
#if true
} From: Igor Kiselev [mailto:notifications@github.com] Can you provide part of source code that enough to reproducing? In any case, I don't see any reasons, why $.Int32 should not work. — Xactware's opt-in mailing list allows you to receive Xactware News that is of interest to you. Visit my.xactware.com today to join or to update your email preferences! This email is intended solely for the recipient. It may contain privileged, proprietary or confidential information or material. If you are not the intended recipient, please delete this email and any attachments and notify the sender of the error. |
Will look on it in next few days - have a lot of work right now. On Mon, Apr 13, 2015 at 3:11 PM, dbh1997 notifications@github.com wrote:
|
Thanks. I should be able to work around it for now by forcing an allocation of each (or possibly calling a static function) – or possibly whitelisting these. From: Igor Kiselev [mailto:notifications@github.com] Will look on it in next few days - have a lot of work right now. On Mon, Apr 13, 2015 at 3:11 PM, dbh1997 <notifications@github.commailto:notifications@github.com> wrote:
— Xactware's opt-in mailing list allows you to receive Xactware News that is of interest to you. Visit my.xactware.com today to join or to update your email preferences! This email is intended solely for the recipient. It may contain privileged, proprietary or confidential information or material. If you are not the intended recipient, please delete this email and any attachments and notify the sender of the error. |
Able to reproduce this here too. Might find time to fix it. |
…rent type was stripped by DCE. Fix sq#727.
…rent type was stripped by DCE. Fix sq#727.
No description provided.
The text was updated successfully, but these errors were encountered: