-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
twitter example fails to run with slim build #617
Comments
I'll take a look at this immediately. |
Don't let an internal failure from uglify bring down the entire deployment. Fixes gh-617
I should have tested this more thoroughly after your recent PR @rwaldron but it looks like Slim builds are still failing for some reason. When I run the twitter example I get the following error (and it doesn't occur if I run with
|
This is pretty frustrating. We need to be able to compress code, but I don't know how we're going to avoid completely valid source failing at runtime if the compression is over-eager. I will try peeling back compression options and see what I can learn. |
It's this: ast.figure_out_scope(mangle);
ast.compute_char_frequency(mangle);
ast.mangle_names(mangle); When I comment it out, everything works...
...But we lose a lot of compression. I don't really want to ditch this, so I'd like to think about it a bit before jumping to write a fix. I think strongest compression should be the default, with options to relax it. Not sure how to to do that, but I'll think on it and come back tomorrow. |
I'm of the opposite opinion simply because it doesn't matter how fast your code get deployed if it doesn't work on Tessel :/ I didn't previously realize that we could be potentially be creating runtime errors with our slimming (especially with popular libraries like `twitter). |
TBH, this is bad library code at fault, not our operation. I'm going to try making this seamless. |
Looks like I merely needed to set these
|
Or at very least: |
That's not really the value here, code deploys are always pretty fast. The real value is the unused disk on the board itself. |
Test Case:
Expected Results (which you can see by running
node index.js
ort2 run index.js --full
):Actual Results:
The text was updated successfully, but these errors were encountered: