JunoLab / atom-julia-client

Juno a good IDE?
http://junolab.org
MIT License
273 stars 72 forks source link

fix subtle errors in cell highlighting #680

Closed aviatesk closed 4 years ago

aviatesk commented 4 years ago

When we switch editors quickly, currently we have small errors around cell highlighting:

Uncaught (in promise) TypeError: Cannot read property 'destroy' of null
    at file:///C:/Users/aviat/github/atom-pkgs/atom-julia-client/lib/ui/cellhighlighter.js:36:24
    at wrapped (C:\Users\aviat\AppData\Local\atom\app-1.43.0\resources\app\static\<embedded>:11:1213931)
    at Function.simpleDispatch (C:\Users\aviat\AppData\Local\atom\app-1.43.0\resources\app\static\<embedded>:11:1212922)
    at Emitter.emit (C:\Users\aviat\AppData\Local\atom\app-1.43.0\resources\app\static\<embedded>:11:1214363)
    at TextEditor.destroy (C:\Users\aviat\AppData\Local\atom\app-1.43.0\resources\app\static\<embedded>:11:7180)
    at Pane.destroyItem (C:\Users\aviat\AppData\Local\atom\app-1.43.0\resources\app\static\<embedded>:11:461289)
(anonymous) @ cellhighlighter.js:36
wrapped @ <embedded>:11
simpleDispatch @ <embedded>:11
emit @ <embedded>:11
destroy @ <embedded>:11
destroyItem @ <embedded>:11