JunoLab / atom-ink

IDE toolkit for Atom
MIT License
229 stars 40 forks source link

Uncaught TypeError: Cannot read property 'style' of null #8

Closed nilshg closed 8 years ago

nilshg commented 9 years ago

I can't really enter steps to reproduce here, but now that I've gotten this randomly for the fifth time I thought I'd take Atom up on the offer to open an issue.

The issue doesn't seem to hurt, I can run my code without problems, but I thought I'd still document it here.

Atom Version: 1.0.11 System: Microsoft Windows 7 Enterprise Thrown From: ink package, v0.1.1

Stack Trace

Uncaught TypeError: Cannot read property 'style' of null

At C:\Users\tew207\.atom\packages\ink\lib\results.coffee:94

TypeError: Cannot read property 'style' of null
    at C:\Users\tew207\.atom\packages\ink\lib\results.coffee:94:41

Commands

     -0:34.2.0 editor:select-to-end-of-line (atom-text-editor.editor.is-focused)
     -0:33.9.0 julia-client:evaluate (atom-text-editor.editor.is-focused)
     -0:33.5.0 core:move-right (atom-text-editor.editor.is-focused)
     -0:32.1.0 inline-results:clear-current (atom-text-editor.editor.is-focused)
     -0:31.1.0 editor:select-to-first-character-of-line (atom-text-editor.editor.is-focused)
     -0:30.9.0 julia-client:evaluate (atom-text-editor.editor.is-focused)
     -0:21.8.0 autocomplete-plus:confirm (atom-text-editor.editor.is-focused.autocomplete-active)
     -0:21 editor:select-to-first-character-of-line (atom-text-editor.editor.is-focused)
     -0:20.8.0 julia-client:evaluate (atom-text-editor.editor.is-focused)
     -0:20.6.0 core:move-right (atom-text-editor.editor.is-focused)
     -0:14.6.0 autocomplete-plus:confirm (atom-text-editor.editor.is-focused.autocomplete-active)
     -0:13.6.0 editor:select-to-first-character-of-line (atom-text-editor.editor.is-focused)
     -0:12.9.0 core:move-right (atom-text-editor.editor.is-focused)
  2x -0:09.1.0 core:save (atom-text-editor.editor.is-focused)
     -0:04.3.0 core:select-all (atom-text-editor.editor.is-focused)
     -0:03.8.0 julia-client:evaluate (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "projectHome": "C:\\Users\\tew207\\Documents\\GitHub",
    "autoHideMenuBar": true
  }
}

Installed Packages

# User
autocomplete-python, v0.5.3
color-picker, v2.0.11
ink, v0.1.1
julia-client, v0.1.2
language-fortran, v1.5.7
language-julia, v0.4.1
language-latex, v0.6.1
language-matlab, v0.1.1
language-r, v0.2.0
language-sas, v0.2.4
language-stata, v0.1.0
latex, v0.25.1
latex-completions, v0.3.0

# Dev
No dev packages
dlfivefifty commented 9 years ago

+1

j2b2 commented 9 years ago

+1, OS Ubuntu 14.04

/home/j2b2/.atom/packages/ink/lib/results.coffee:57
TypeError: Cannot read property 'style' of null
    at /home/j2b2/.atom/packages/ink/lib/results.coffee:57:45
arwynroberts commented 8 years ago

+1, OSX El Capitan same error location as @j2b2

pfitzseb commented 8 years ago

This is due to this hack (on master).

It seems like Atom sometimes fails to insert/create/whatever the node in time for the timeout, so that everything that happens inside is working on undefined stuff.

Not sure what we should be doing about it -- obviously we could just increase the timeout time to something like 200 ms so the node is for sure inserted even if the computer is under heavy load, but that's a bit meh.

MikeInnes commented 8 years ago

This should be fixed on master, let me know if you see it again