Open adambois opened 7 years ago
It's probably not tied to High Sierra. I'm experiencing the same issue with Atom 1.21.0 and pigments 0.40.2 on Sierra (10.12.6)
Mine actually worked with that version of Sierra (10.12.6) but as soon as I upgraded to High Sierra the issue first occurred. Have you had any luck your end with a solution?
Having the same issue on windows.
Not even editing a CSS file for Atom, but one for my project.
Disabling Pigments for now
Linux (Manjaro XFCE) too.
I literally just tried to right-click on a text document (win10, with multiple community packages installed) and pigments throws this error? Strange...
Stack trace:
TypeError: Cannot read property 'NaN' of undefined
at TextEditorComponent.renderedScreenLineForRow (C:\Users\OEM\AppData\Local\atom\app-1.23.0\resources\app\src\text-editor-component.js:959:37)
at TextEditorComponent.screenPositionForPixelPosition (C:\Users\OEM\AppData\Local\atom\app-1.23.0\resources\app\src\text-editor-component.js:2398:33)
at HTMLElement.screenPositionForPixelPosition (C:\Users\OEM\AppData\Local\atom\app-1.20.1\resources\app\src\text-editor-element.js:247:32)
at HTMLElement.ColorBufferElement.screenPositionForMouseEvent (file:///C:/Users/OEM/.atom/packages/pigments/lib/color-buffer-element.coffee:429:22)
at HTMLElement.ColorBufferElement.colorMarkerForMouseEvent (file:///C:/Users/OEM/.atom/packages/pigments/lib/color-buffer-element.coffee:415:17)
at Object.colorMarkerForMouseEvent (file:///C:/Users/OEM/.atom/packages/pigments/lib/pigments.coffee:221:25)
at Object.shouldDisplayContextMenu (file:///C:/Users/OEM/.atom/packages/pigments/lib/pigments.coffee:215:5)
at Object.atom.contextMenu.add.atom-text-editor.shouldDisplay (file:///C:/Users/OEM/.atom/packages/pigments/lib/pigments.coffee:111:36)
at ContextMenuManager.module.exports.ContextMenuManager.cloneItemForEvent (C:\Users\OEM\AppData\Local\atom\app-1.23.0\resources\app\src\context-menu-manager.js:167:25)
at ContextMenuManager.module.exports.ContextMenuManager.templateForEvent (C:\Users\OEM\AppData\Local\atom\app-1.23.0\resources\app\src\context-menu-manager.js:100:39)
at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\OEM\AppData\Local\atom\app-1.23.0\resources\app\src\context-menu-manager.js:189:33)
at WindowEventHandler.handleDocumentContextmenu (C:\Users\OEM\AppData\Local\atom\app-1.23.0\resources\app\src\window-event-handler.js:251:44)
I'm getting the same error. I just tried to right in a simple text document. Using Atom 1.23.1 on Debian 64 bit.
TypeError: Cannot read property 'NaN' of undefined
at TextEditorComponent.renderedScreenLineForRow (/usr/share/atom/resources/app/src/text-editor-component.js:959:37)
at TextEditorComponent.screenPositionForPixelPosition (/usr/share/atom/resources/app/src/text-editor-component.js:2398:33)
at HTMLElement.screenPositionForPixelPosition (/usr/share/atom/resources/app/src/text-editor-element.js:247:32)
at HTMLElement.ColorBufferElement.screenPositionForMouseEvent (/home/zero/.atom/packages/pigments/lib/color-buffer-element.coffee:429:22)
at HTMLElement.ColorBufferElement.colorMarkerForMouseEvent (/home/zero/.atom/packages/pigments/lib/color-buffer-element.coffee:415:17)
at Object.colorMarkerForMouseEvent (/home/zero/.atom/packages/pigments/lib/pigments.coffee:221:25)
at Object.shouldDisplayContextMenu (/home/zero/.atom/packages/pigments/lib/pigments.coffee:215:5)
at Object.atom.contextMenu.add.atom-text-editor.shouldDisplay (/home/zero/.atom/packages/pigments/lib/pigments.coffee:111:36)
at ContextMenuManager.module.exports.ContextMenuManager.cloneItemForEvent (/usr/share/atom/resources/app/src/context-menu-manager.js:167:25)
at ContextMenuManager.module.exports.ContextMenuManager.templateForEvent (/usr/share/atom/resources/app/src/context-menu-manager.js:100:39)
at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (/usr/share/atom/resources/app/src/context-menu-manager.js:189:33)
at WindowEventHandler.handleDocumentContextmenu (/usr/share/atom/resources/app/src/window-event-handler.js:251:44)`
Same here. 1.23.1 on High Sierra. Happens every time I right click on the a text document. It makes correcting spelling mistakes impossible.
I can confirm this Bug, but on Debian Sid.
Atom: 1.23.2 x64 Electron: 1.6.15 OS: Debian GNU/Linux Thrown From: pigments package 0.40.2
Uncaught TypeError: Cannot read property 'NaN' of undefined
At /usr/share/atom/resources/app/src/text-editor-component.js:959
TypeError: Cannot read property 'NaN' of undefined
at TextEditorComponent.renderedScreenLineForRow (/usr/share/atom/resources/app/src/text-editor-component.js:959:37)
at TextEditorComponent.screenPositionForPixelPosition (/usr/share/atom/resources/app/src/text-editor-component.js:2398:33)
at HTMLElement.screenPositionForPixelPosition (/app.asar/src/text-editor-element.js:247:32)
at HTMLElement.ColorBufferElement.screenPositionForMouseEvent (/packages/pigments/lib/color-buffer-element.coffee:429:22)
at HTMLElement.ColorBufferElement.colorMarkerForMouseEvent (/packages/pigments/lib/color-buffer-element.coffee:415:17)
at Object.colorMarkerForMouseEvent (/packages/pigments/lib/pigments.coffee:221:25)
at Object.shouldDisplayContextMenu (/packages/pigments/lib/pigments.coffee:215:5)
at /packages/pigments/lib/pigments.coffee:111:36)
at ContextMenuManager.module.exports.ContextMenuManager.cloneItemForEvent (/usr/share/atom/resources/app/src/context-menu-manager.js:167:25)
at ContextMenuManager.module.exports.ContextMenuManager.templateForEvent (/usr/share/atom/resources/app/src/context-menu-manager.js:100:39)
at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (/usr/share/atom/resources/app/src/context-menu-manager.js:189:33)
at WindowEventHandler.handleDocumentContextmenu (/usr/share/atom/resources/app/src/window-event-handler.js:251:44)
-3:55 application:open-folder (input.hidden-input)
-3:26.3.0 application:reopen-project (input.hidden-input)
-2:16.9.0 intentions:highlight (input.hidden-input)
-2:16.9.0 core:select-all (input.hidden-input)
-2:16.6.0 core:paste (input.hidden-input)
-2:15.7.0 intentions:highlight (input.hidden-input)
-2:15.5.0 core:save (input.hidden-input)
2x -1:49.4.0 core:backspace (input.hidden-input)
-1:46.7.0 intentions:highlight (input.hidden-input)
-1:46.4.0 core:save (input.hidden-input)
-1:43.9.0 intentions:highlight (input.hidden-input)
-1:43.6.0 core:save (input.hidden-input)
atom-beautify 0.30.9
atom-latex 0.8.2
autocomplete-bibtex 1.1.0
autocomplete-clang 0.11.4
autocomplete-php 0.3.7
code-stats-atom 2.0.6
file-icons 2.1.15
file-types 0.5.5
highlight-selected 0.13.1
intentions 1.1.5
language-ini 1.19.0
language-patch 1.2.0
language-spec 0.1.0
linter 2.2.0
linter-gcc 0.7.1
linter-js-standard 4.2.0
linter-phpmd 2.0.0
linter-ui-default 1.6.10
minimap 4.29.7
minimap-highlight-selected 4.6.1
piatto-light-syntax 0.2.2
pigments 0.40.2
two-light-ui 1.1.3
Tried to edit a stylsheet and got
Uncaught TypeError: Cannot read property 'NaN' of undefined
. Seems to be ever since I upgraded my OS to High Seirra version 10.13. Pigments now causes the stylesheets to be unresponsive.Atom: 1.20.1 x64 Electron: 1.6.9 OS: Mac OS X 10.13 Thrown From: pigments package 0.40.2
Stack Trace
Uncaught TypeError: Cannot read property 'NaN' of undefined
Commands
Non-Core Packages