PencilCode / pencilcode

An online IDE for kids: pencilcode.net.
http://dev.pencilcode.net/
MIT License
167 stars 100 forks source link

HTML code will not switch to BLOCKS mode #194

Closed MichaelEason closed 9 years ago

MichaelEason commented 9 years ago

Simple HTML code will not switch to BLOCKS mode.

Error message is: "Oops, the computer could not show blocks. It says:this.model.getLinesToParent is not a function"

The HTML code and error is shown below: image

Any idea what is wrong?

I have copied the code from PencilCode into Notepad, then copied it back from Notepad into a new PencilCode document, and still can't switch to BLOCKS mode.

I retyped the code directly into a new PencilCode document and had no problem switching to BLOCKS mode.

davidbau commented 9 years ago

Sounds like a bug! Can you send a link to the URL or the exact HTML text that you used? (I know you sent a screenshot, but if I just type it in, I may miss spaces or other invisible characters.)

On Sat, Aug 29, 2015 at 4:42 PM, Michael Eason notifications@github.com wrote:

Simple HTML code will not switch to BLOCKS mode.

Error message is: "Oops, the computer could not show blocks. It says:this.model.getLinesToParent is not a function"

The HTML code and error is shown below: [image: image] https://cloud.githubusercontent.com/assets/9910523/9564145/4eea0022-4e6a-11e5-8ed8-94549406ddcc.png

Any idea what is wrong?

I have copied the code from PencilCode into Notepad, then copied it back from Notepad into a new PencilCode document, and still can't switch to BLOCKS mode.

I retyped the code directly into a new PencilCode document and had no problem switching to BLOCKS mode.

— Reply to this email directly or view it on GitHub https://github.com/PencilCode/pencilcode/issues/194.

MichaelEason commented 9 years ago

http://shalynn.pencilcode.net/edit/shalynntaboutme.html and http://shalynn.pencilcode.net/edit/shalynntindexi.html

The code belongs to one of my students.

If you copy the code from either link and paste it into a blank .html file in your PencilCode account, it should fail to switch to BLOCKS mode just like it does for me (and the student). I have twenty other students using PencilCode without this problem.

davidbau commented 9 years ago

Thanks Michael. I've opened up this issue - we'll investigate and get it fixed.

https://github.com/droplet-editor/droplet/issues/126

David

On Sat, Aug 29, 2015 at 5:21 PM, Michael Eason notifications@github.com wrote:

The code belongs to one of my students.

If you copy the code from either link and paste it into a blank .html file in your PencilCode account, it should fail to switch to BLOCKS mode just like it does for me (and the student). I have twenty other students using PencilCode without this problem.

— Reply to this email directly or view it on GitHub https://github.com/PencilCode/pencilcode/issues/194#issuecomment-136053849 .

davidbau commented 9 years ago

The fix for this bug has been pushed!