JCPalmer Posted January 21, 2015 Share Posted January 21, 2015 When I try to gulp, I get errors due to not finding symbols, which are defined in References/waa.d.ts & References/poly2tri.d.ts. I see the gulpfile.js being updated for new stuff, but can anyone actually get it to run? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 21, 2015 Share Posted January 21, 2015 I'm not using it so perhaps things are missing. Let me know so that I can fix them:) Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted January 21, 2015 Author Share Posted January 21, 2015 Do not know if any source files missing, but fails to run. Do not know how to add the References Quote Link to comment Share on other sites More sharing options...
RaananW Posted January 21, 2015 Share Posted January 21, 2015 Hi JC, Two solutions - Easy one - copy both files to the babylon source directory, copile and delete them. :-) Not the best solution thou Edit gulpfile.js - both lines 25 and 36 should read : return gulp.src(['../../References/**/*.ts', '../../Babylon/**/*.ts']) I will commit it soon, this is actually a much better solution...I then got a different error - in babylon.sound.ts - there seems to be a wrong cast there (from enum to string and vice versa). I solved it by changing the strings to the correlating enums. Anyone else faces this problem? JCPalmer 1 Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted January 22, 2015 Author Share Posted January 22, 2015 Thanks, works again! With all the changes recently , the final .js & .d.ts are not always in sync with each other or the individual .ts files. A quick gulp on my end solves minor timing issues, and also enables me to test any non-python PR I might make. I could gen the .d.ts with the Planantir Typescript add-in, but in order to build a working single .js, the add-in needs to build in a certain order. There are no '///references' in the .ts files. That logic is within the gulpfile.js file. The bitBucket.js file, shown below, does not run. Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted January 23, 2015 Author Share Posted January 23, 2015 Well,I found the change to gulpfile.js got it to run, but not correctly. I made a change to AbstractMesh.ts, but no new AbstractMesh.js ever got generated. The babylon.d.ts did get generated, which made it difficult to understand, until I just deleted AbstractMesh.js, and found no new one after gulping. Played with: return gulp.src(['../../References/**/*.ts', '../../Babylon/**/*.ts'])Switched the order to this and it works and actually does something return gulp.src(['../../Babylon/**/*.ts','../../References/**/*.d.ts'])Will include in an upcoming PR soon Quote Link to comment Share on other sites More sharing options...
RaananW Posted January 23, 2015 Share Posted January 23, 2015 that's weird... worked for me... But this order actually makes more sense anyhow :-) Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted January 23, 2015 Author Share Posted January 23, 2015 My Gulp is pretty old. Under Linux, I could get Gulp installed, but not the portion once you change to the Babylon../gulp dir. The gulp update process stopped working months ago (even on Mac). I do not want to mess with it, if possible. There is an old thread on this, but basically I ran that part on OSX. (I use TrueCrypt for movable drive volumes & quick daily backups). Do have Windows 7 licenses, but with Window 10 / spartan browser / holographic glasses getting closer, not really worth the effort. Quote Link to comment Share on other sites More sharing options...
RaananW Posted January 24, 2015 Share Posted January 24, 2015 Maybe Windows 7 is worth installing -http://www.theverge.com/2015/1/21/7866679/windows-10-will-be-a-free-upgrade-for-windows-7-and-8-1-users:-) Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 24, 2015 Share Posted January 24, 2015 win10 will be free for win7 users! Quote Link to comment Share on other sites More sharing options...
Dad72 Posted January 24, 2015 Share Posted January 24, 2015 win10 will be free for win7 users! And for users of Windows 8? Quote Link to comment Share on other sites More sharing options...
RaananW Posted January 24, 2015 Share Posted January 24, 2015 Both 7 and 8. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.