GameMonetize Posted October 21, 2014 Share Posted October 21, 2014 We worked hard to bring you a new HUGE feature in the Playground. You can now discover/learn new API and functions parameters while you're typing: Feel free to relay it:D Dad72, HugoMcPhee, spritefire and 1 other 4 Quote Link to comment Share on other sites More sharing options...
Dad72 Posted October 21, 2014 Share Posted October 21, 2014 wow, that 'a top cool feature. I love. Quote Link to comment Share on other sites More sharing options...
OttoRobba Posted October 22, 2014 Share Posted October 22, 2014 That is insanely useful, congrats! Quote Link to comment Share on other sites More sharing options...
joshcamas Posted October 22, 2014 Share Posted October 22, 2014 Fancy! Amazing work!! Quote Link to comment Share on other sites More sharing options...
davrous Posted October 24, 2014 Share Posted October 24, 2014 A small video demonstrating its usage: Quote Link to comment Share on other sites More sharing options...
[email protected] Posted January 19, 2015 Share Posted January 19, 2015 This is great. However, I do not even know how to get intelisense to work for Babylonjs in VS 2012. Any hint? I am new to Babylonjs. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 19, 2015 Author Share Posted January 19, 2015 JavaScript intellisense in VS can be achieved by adding:/// <reference path="../babylon.max.js" /> Quote Link to comment Share on other sites More sharing options...
[email protected] Posted January 19, 2015 Share Posted January 19, 2015 It does not seem to work. Do I need babylon.max.js file? I could not find it in the Babylon distribution. I am using the Babylonjs Editor source distribution. Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted January 19, 2015 Share Posted January 19, 2015 Yes, you need the babylon.max.js file in the given path in /// <reference path="path_to_babylon.max.js" />babylon.max.js is generated when you compile the TS files if I'm not wrong Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 19, 2015 Author Share Posted January 19, 2015 You can find it here: www.babylonjs.com/babylon.max.js Quote Link to comment Share on other sites More sharing options...
[email protected] Posted January 21, 2015 Share Posted January 21, 2015 Thanks, that works now. However, I am having a hard time to get intellisense to work for the Babylon Editor source code. Is there any trick to it? I dragged Editor's js files into the .js file where I want to have intellisense, but it refuse to work. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 21, 2015 Author Share Posted January 21, 2015 The editor is not open source and not designed to work outside the playground Quote Link to comment Share on other sites More sharing options...
[email protected] Posted January 22, 2015 Share Posted January 22, 2015 The Editor I am referring to is: https://github.com/BabylonJS/Editor/tree/develop It is under Apache open source license. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 22, 2015 Author Share Posted January 22, 2015 lol sorry I thought you talked about the code editor (Because this is the topic of this post) Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted January 22, 2015 Share Posted January 22, 2015 Hey danjiang, Happy to see that you use and develop the editor =DMy trick is to reference directly the index.html file in all my .js files. Like for example:/// <reference path="./../index.html" /> Quote Link to comment Share on other sites More sharing options...
[email protected] Posted January 23, 2015 Share Posted January 23, 2015 Deltakosh, sorry for the confusion, I should have been more specific in my question. Maybe we can refer the Editor as Babylonjs Sample Editor to differentiate it from the Source Code Editor in the sandbox. I think i figured out what is wrong: the intellisense has been working all along, but I was expecting it to work on variables with no type definition, such as "this._core" in many .js files in the Editor. Well, since such variables have no type definition, how could intellisense know what type it is? So we need .ts .ts files... Luaacro, assume you are also using the Sample Editor source code, have you created the .ts file from those .js files ? Dan Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted January 24, 2015 Share Posted January 24, 2015 Absolutely not, it is pure JSBut, TS is a feature coming with the future versions of the Editor So we'll have the intellisense working well with the TS files Quote Link to comment Share on other sites More sharing options...
HugoMcPhee Posted May 30, 2015 Share Posted May 30, 2015 Here's a Tern JSON definition file for babylonjs http://hugos.site/babylonjs.json (generated from www.babylonjs.com/babylon.max.js) , (a few "Invalid !type spec" errors were fixed by changing the "!type" of about 10 things to "fn()") ("it's not 100% functioning properly) Quote Link to comment Share on other sites More sharing options...
n4nova Posted September 26, 2015 Share Posted September 26, 2015 Is there any way, we can have intellisense for Babylon.js in Eclipse?Will this work? /// <reference path="path_to_babylon.max.js" /> Quote Link to comment Share on other sites More sharing options...
gri Posted September 28, 2015 Share Posted September 28, 2015 .....and Netbeans ? Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted September 28, 2015 Share Posted September 28, 2015 Is there any way, we can have intellisense for Babylon.js in Eclipse?Will this work? /// <reference path="path_to_babylon.max.js" />Yes and no. I have been using Palantir's typescript plug-in for Eclipse for over a year. Works good. Recently, manually translated (90+% complete) a 10,000 + line Java system with it, and could not have done it without it. Code completion actually started meaningfully working at about 70%. If you are doing your own stuff, you need to have // <references in your own files of your other files, not for code completion, but so it builds things in the right order. Fortunately, the system I translated did extensive Java include statements, so I just converted them to references. It will not build a valid Babylon.js file since there are no // <references. Use Gulp from the repository, if you need to do that. If you just wish to get Babylon.JS code completion for own files, do not do it the way you described (that's the no part). Just put babylon.d.ts file in your source directory. You also need to install Node.JS to use this plug-in. https://github.com/palantir/eclipse-typescript .....and Netbeans ?Not right now. There is a long running thread about it. Guess they are starting to work it (actually think it is AngularJS). Good part is do not think it will require Node.js. In process Java should be more responsive than external calls, anyway. Did see that NetBeans 8.2 beta works with Node.js, but I got that (Gulp) working with Ant too in Eclipse, so probably not amazing. https://netbeans.org/bugzilla/show_bug.cgi?format=multiple&id=233197 Quote Link to comment Share on other sites More sharing options...
Ahiru Posted September 28, 2015 Share Posted September 28, 2015 (edited) #deleted# - didn't see the last post Edited September 28, 2015 by Ahiru 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.