wolfe-pack / moro

Interactive documentation and programming with Scala, iPython notebook style.
http://wolfe-pack.github.io/moro
BSD 2-Clause "Simplified" License
19 stars 3 forks source link

Sometimes adding a cell doesn't work #61

Closed riedelcastro closed 9 years ago

riedelcastro commented 9 years ago

By neither clicking or shift entering etc. Check out http://localhost:9000/doc/editor/01_tasks/02_wordmt in the statnlp-book project, and try to add a cell below or above any existing cell. At least on my machine nothing happens

sameersingh commented 9 years ago

Do you get an error in the Javascript console? Can you paste it here, with the trace?

On Mon, Apr 27, 2015 at 8:00 AM, Sebastian Riedel notifications@github.com wrote:

By neither clicking or shift entering etc. Check out http://localhost:9000/doc/editor/01_tasks/02_wordmt in the statnlp-book project, and try to add a cell below or above any existing cell. At least on my machine nothing happens

— Reply to this email directly or view it on GitHub https://github.com/wolfe-pack/moro/issues/61.

riedelcastro commented 9 years ago

Uncaught Error: ace.edit can't find div #editor1t.edit @ ace.js:1compilers.markdown.editor @ 0x_mle:493makeCellFunctional @ moro.js:173addCellBelow @ moro.js:251onclick @ 0x_mle:3064editor.commands.addCommand.exec @ 0x_mle:534(anonymous function) @ ace.js:1r._emit.r._dispatchEvent @ ace.js:1exec @ ace.js:1$callKeyboardHandlers @ ace.js:1onCommandKey @ ace.js:1onCommandKey @ ace.js:1o @ ace.js:1(anonymous function) @ ace.js:1 moro.js:290 saving doc to 02_methods/0x_mle 0x_mle:696 Uncaught TypeError: Cannot read property 'getSession' of undefinedcompilers.markdown.editorToInput @ 0x_mle:696cellToJson @ document.js:5docToJson @ document.js:31saveDoc @ moro.js:291autoSave

sameersingh commented 9 years ago

Pushed a change, can you check whether it fixed it?

On Mon, Apr 27, 2015 at 9:44 AM, Sebastian Riedel notifications@github.com wrote:

Uncaught Error: ace.edit can't find div #editor1t.edit @ ace.js:1compilers.markdown.editor @ 0x_mle:493makeCellFunctional @ moro.js:173addCellBelow @ moro.js:251onclick @ 0x_mle:3064editor.commands.addCommand.exec @ 0x_mle:534(anonymous function) @ ace.js:1r._emit.r._dispatchEvent @ ace.js:1exec @ ace.js:1$callKeyboardHandlers @ ace.js:1onCommandKey @ ace.js:1onCommandKey @ ace.js:1o @ ace.js:1(anonymous function) @ ace.js:1 moro.js:290 saving doc to 02_methods/0x_mle 0x_mle:696 Uncaught TypeError: Cannot read property 'getSession' of undefinedcompilers.markdown.editorToInput @ 0x_mle:696cellToJson @ document.js:5docToJson @ document.js:31saveDoc @ moro.js:291autoSave

— Reply to this email directly or view it on GitHub https://github.com/wolfe-pack/moro/issues/61#issuecomment-96541997.

riedelcastro commented 9 years ago

Seems fixed