Author Topic: Edit Bug  (Read 1067 times)

Rick3137

  • Full Member
  • ***
  • Posts: 108
    • View Profile
    • Rick's Programs
Edit Bug
« on: 17. July 2013, 20:13:50 »
         
     I keep running into a bug that you all should be aware of.  You may already know about it , but I'll post it any way.
    My style of cut and paste causes too much white space in the editor. The compiler gets confused and leaves out semicolons in the Java Script output code. When I try to run it, I just get a blank screen. Windows Explorer fails to run it and will not give a clue as to why.
   The solution is to find the bad code in the Java Script and go back to the editor and select and delete the extra spaces at the end of the line.
    Compile again. No problems after this.
   
http://rb23.yolasite.com  Ricks Programs
http://rb27.synthasite.com   Sight and Sound

SteveOW

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Re: Edit Bug
« Reply #1 on: 17. July 2013, 22:30:19 »
Hi Rick,

I dont seem to get that white space bug any more but perhaps as you say it is a matter of coding style.

For javascript bugs in general if you use Firefox as your browser there is an Add-On/Extension called Firebug (http://getfirebug.com/) which you can install into Firefox.
It is very often helpful in finding bugs.  I dont know what there is for other browsers.

cheers, SteveOW.
PS Nice triangular fractal. :)

Guilect

  • Moderator
  • Full Member
  • *****
  • Posts: 110
    • View Profile
Re: Edit Bug
« Reply #2 on: 17. July 2013, 23:32:25 »
Rick3137, give a snippet of code that causes the issue and I'll take a look into it.

Rick3137

  • Full Member
  • ***
  • Posts: 108
    • View Profile
    • Rick's Programs
Re: Edit Bug
« Reply #3 on: 18. July 2013, 02:53:49 »
   I done fixed it and it won't come back. If I see it again I'll save a copy.
http://rb23.yolasite.com  Ricks Programs
http://rb27.synthasite.com   Sight and Sound