Closed nibushibu closed 7 years ago
You're on an Atom beta, so blame it on the beta and not linter-ui-default :)
I'm getting this in Atom 1.19.0 on the latest linter-ui-default. Is that expected?
Nope, but I don't know if it was ever reported to Atom so I'm reopening this.
I noticed this error as well, however I've been able to isolate that it only occurs in my environment when I have atom-beautify enabled.
Similar to @fdefalco, when I save a shell script, atom-beautify runs and starts freaking out. And that's when I get this error.
Personally I don't have atom-beautify installed. I seem to get the error when managing tabs, especially when closing them. Doesn't happen all the time though.
I've disabled atom-beautify and the error disappeared
Here's a stack trace from 1.19.0. I don't have atom-beautify installed.
Atom: 1.19.0 x64 Electron: 1.6.9 OS: Mac OS X 10.12.6 Thrown From: linter-ui-default package 1.6.4
Uncaught TypeError: Cannot read property 'getBoundingClientRect' of undefined
At /Applications/Atom.app/Contents/Resources/app/src/text-editor-component.js:1885
TypeError: Cannot read property 'getBoundingClientRect' of undefined
at TextEditorComponent.pixelPositionForMouseEvent (/Applications/Atom.app/Contents/Resources/app/src/text-editor-component.js:1885:48)
at getBufferPositionFromMouseEvent (/packages/linter-ui-default/lib/editor/helpers.js:8:49)
at /packages/linter-ui-default/lib/editor/index.js:168:29)
at later (/packages/linter/node_modules/sb-debounce/index.js:9:14)
-2:07.1.0 core:copy (input.hidden-input)
-2:05.0 pane:show-previous-item (input.hidden-input)
-2:03.5.0 core:paste (input.hidden-input)
-2:01.4.0 core:save (input.hidden-input)
2x -2:01.0 pane:show-next-item (input.hidden-input)
2x -1:38.7.0 vim-mode-plus:delete-right (input.hidden-input)
-1:32.6.0 core:save (input.hidden-input)
3x -1:29.4.0 vim-mode-plus:delete-right (input.hidden-input)
-1:26.6.0 core:save (input.hidden-input)
-1:20.1.0 core:close (input.hidden-input)
-1:10.8.0 command-palette:toggle (input.hidden-input)
-1:07.3.0 editor:consolidate-selections (input.hidden-input)
-1:07.3.0 core:cancel (input.hidden-input)
2x -0:19.6.0 core:close (input.hidden-input)
2x -0:18.1.0 pane:reopen-closed-item (input.hidden-input)
3x -0:17.3.0 core:close (input.hidden-input)
apex-syntax-red 0.1.0
busy-signal 1.4.3
cursor-history 0.12.0
file-icons 2.1.10
git-projects 1.17.0
hey-pane 1.0.0
highlight-selected 0.13.1
intentions 1.1.5
language-babel 2.69.0
language-docker 1.1.8
language-groovy 0.7.0
linter 2.2.0
linter-clojure 1.1.3
linter-csslint 1.3.4
linter-docker 0.2.0
linter-eslint 8.2.1
linter-flow 5.6.0
linter-javac 1.9.4
linter-js-standard 3.9.3
linter-js-yaml 1.2.7
linter-jsonlint 1.3.0
linter-less 2.6.0
linter-ui-default 1.6.4
open-this 0.4.0
pigments 0.40.2
pretty-json 1.6.4
sort-lines 0.14.0
vim-mode-plus 0.96.2
vim-mode-plus-keymaps-for-surround 0.2.1
I've just updated atom-beautify to the next version and got this exception.
I'm getting this same error notification when closing tabs wether atom-beautify is enabled or not.
I've also published a possible fix from our side in v1.6.6
Sorry for spamming you guys with updates but just got a comment on the Atom issue that this is still happening, so investigated and found another place we could safeguard. v1.6.7 is out
Quick tests are looking better 👍 Give it a day thought. We shall see.
Still no errors from me 👍
[Enter steps to reproduce:]
Atom: 1.19.0-beta0 x64 Electron: 1.6.9 OS: Mac OS X 10.12.5 Thrown From: linter-ui-default package 1.6.1
Stack Trace
Uncaught TypeError: Cannot read property 'getBoundingClientRect' of undefined
Commands
Non-Core Packages