fjenett / javascript-mode-processing

Former ProcessingJS mode (Processing 1.5) that became JavaScript mode (Processing 2.0 beta) that has now been moved out of the Processing IDE.
57 stars 13 forks source link

Some feedback as to why the IDE does not open "Box2dWeb-2.1.a.3.js", please? #8

Closed Antony74 closed 11 years ago

Antony74 commented 11 years ago

If you open a sketch in JavaScript-mode, other .js files in the sketch's directory are opened, but not "Box2dWeb-2.1.a.3.js", because it doesn't like the hypen or the extra dots in the filename. Knowing this it's easy to workaround by renaming the file, so it would be nice upon opening the sketch to be given some feedback explaining what the problem is.

Originally reported here: https://github.com/processing/processing/issues/1446

fjenett commented 11 years ago

Thanks for re-reporting .. i did not see the other report for some unknown reason.

For JS mode to ba as compatible to the PDE as possible i will not change the file name handling here to be any different from the Java (default) mode. Otherwise switching back and forth between the two would become a real pain.

That said i don't really see why you would want to include a whole library like Box2D into you sketch like that ..? If you use it in your sketch and this is just a way to "import" it into your project there is a better option:

From now on Box2D will be included when you run your sketch.

Another option might be to have a "data" folder inside the sketch folder ... but i have not checked recently if that is still working.

Antony74 commented 11 years ago

Sorry - yes, you're right, this is an issue with Processing, not JavaScript-mode specifically. Add a file called "my-file.pde" to a sketch’s directory and you'll get the same total lack of information about why nothing new is happening when you open the sketch.