PhaserEditor2D Posted April 12, 2015 Share Posted April 12, 2015 Hello I created a set of Eclipse Editor Templates with the code completions used by the Phaser sandbox (http://phaser.io/sandbox) You can see instructions to install it on Eclipse here: https://bitbucket.org/boniatillo/phasereditortemplates Screenshot: PhaserEditor2D, Pooya72 and CanDbas 3 Link to comment Share on other sites More sharing options...
Pooya72 Posted April 15, 2015 Share Posted April 15, 2015 Thx ArianThis should work with aptana too, right? And what about brackets ? Link to comment Share on other sites More sharing options...
PhaserEditor2D Posted April 22, 2015 Author Share Posted April 22, 2015 Hi Pooya72, I don't know if this work with Aptana, you can try. I will too. Pooya72 1 Link to comment Share on other sites More sharing options...
PhaserEditor2D Posted April 22, 2015 Author Share Posted April 22, 2015 Hi, If you like this, probably you will like also the OptiPNG for Eclipse Link to comment Share on other sites More sharing options...
oranjoose Posted May 14, 2015 Share Posted May 14, 2015 @Pooya72 Bracket uses Tern as its built-in JS analyzer. On the Brackets How-to-Use page, it makes it seem that as long as the phaser.js file is in the same folder or if it is in a require statement, then it should be picked up for code completion. However, I haven't been able to get it to work. Anyone know more about this? Thanks. Pooya72 1 Link to comment Share on other sites More sharing options...
oranjoose Posted May 16, 2015 Share Posted May 16, 2015 So I think I figured it out. The max file size for what Tern analyzes is 524288 bytes by default, and Phaser is over 2000000. You can adjust this by creating a new .jscodehints file in the root directory. The config is a JSON block, and the one I did to make it work, at least partially, was this: { "max-file-size: 3000000 } It may work to just use the minified file instead. Link to comment Share on other sites More sharing options...
Pooya72 Posted May 29, 2015 Share Posted May 29, 2015 Hi @ oranjoose may you describe more please ? Link to comment Share on other sites More sharing options...
oranjoose Posted May 31, 2015 Share Posted May 31, 2015 @Pooya72 To clarify, the default 512KB limit Tern sets for the files it uses for autocomplete is less than the phaser.js file which is over 2MB, therefore Tern does not parse it for definitions for populating the autocomplete. However, the phaser min file, it being significantly smaller, could very well be parsed by the Tern autocomplete engine, so it might just work to make sure the phaser min file is in the same directory as your project source files. The other option I suggested was to change that 512KB limit by creating a new file with the name ".jscodehints". To change the size limit of files the Tern engine will parse, you can include { "max-file-size": 3000000 } in the .jscodehints file. Reload brackets and this should hopefully do the trick. misfit 1 Link to comment Share on other sites More sharing options...
Pooya72 Posted June 2, 2015 Share Posted June 2, 2015 @Pooya72 To clarify, the default 512KB limit Tern sets for the files it uses for autocomplete is less than the phaser.js file which is over 2MB, therefore Tern does not parse it for definitions for populating the autocomplete. However, the phaser min file, it being significantly smaller, could very well be parsed by the Tern autocomplete engine, so it might just work to make sure the phaser min file is in the same directory as your project source files. The other option I suggested was to change that 512KB limit by creating a new file with the name ".jscodehints". To change the size limit of files the Tern engine will parse, you can include { "max-file-size": 3000000 } in the .jscodehints file. Reload brackets and this should hopefully do the trick. Thx oranjoose. your solution could be helpful for many of developers (also out of Phaser's world), please Create a new topic for it. Link to comment Share on other sites More sharing options...
Recommended Posts