-
Notifications
You must be signed in to change notification settings - Fork 883
println messes up strings with a<b for many a and many b #284
Comments
those are very old versions; the current version is 1.6.6, does it still happen in that? |
I do not know about 1.6.6. When I go to https://github.com/processing-js/processing-js the README.md file says "Simply grab the processing.js or processing.min.js files, include them as script on your webpage, and you're all set." Neither of those files contain valid Javascript when viewed by either of my browsers, Chrome or Firefox. For example, processing.js ends mid block-comment at line 14192. |
Yes, the problem persists in 1.6.6. |
@GoToLoop for future reference, https://www.npmjs.com/package/processing-js is a better link to provide (since it always points specifically to the latest version) |
@lgto4 it looks like it's your spacing. With "proper" spacing (always up for debate of course but most linters insist on this style) the code runs fine: http://jsbin.com/juwivosaga/edit?html,js,output Also note that |
Got it. All we have to do to work around the bug is to convince all coders (including the robotic ones) to conform to our notions of good hygiene. So in the Pomax example if I replace processing.js with processing.min.js and try Similarly, Updating the bug report... |
That link is extremely cluttered for someone to pinpoint what's the latest version there. There's absolutely no fair comparison to the logical & cleanliness organization at https://GitHub.com/processing-js/processing-js/releases
Given everything ends up merged here in GitHub, I bet in no short time this repo gets a tagged version ready to download here. |
The recommended installation is through npm, which is the de-facto installer for both serverside and clientside libraries these days. NPM always points to the latest version, you don't "pick one", you run The version on npm is always based on the git tag pointed to by |
Uh oh!
There was an error while loading. Please reload this page.
In Processing.js versions 1.4.7, 1.4.8, and 1.6.6 (but not version 1.4.1)
println
of a string with a<
without white space around it may fail.See https://jsfiddle.net/blyon/on7a5f9s/ for a simple demo which contains this code :
var a=function(){ return a<a; }; println(a);
A simpler example is
println("Strings with a<b don't work.");
The text was updated successfully, but these errors were encountered: