atom-tablr icon indicating copy to clipboard operation
atom-tablr copied to clipboard

fix "Cannot read property includeInto of undefined" error

Open mfripp opened this issue 6 years ago • 6 comments

This fixes an error in pool.js that causes an error message "Cannot read property includeInto of undefined" (and no table) to appear when opening csv/tsv files with the Table Editor.

It appears that vm.runInContext() does not return a copy of the class when called with an ES6 class declaration, although it may have returned a copy of the class when called with a coffescript class declaration in the past. This pull request refers to the class at the end of the source code, which causes vm.runInContext() to return the class instead of undefined. This prevents the error noted above.

This fixes issues #100 and #101.

mfripp avatar Jul 22 '18 23:07 mfripp

I tested it and it worked for me on win 10 with latest atom. Thanks!

corymalcolmtaylor avatar Jul 22 '18 23:07 corymalcolmtaylor

Using branch in my atom and I can't open any CSV files at all once the package is installed. No error messages, it just shows the empty pane. Atom 1.28.2 on macOS 10.13.6

edit: Adding that when double clicking a csv file (default to opening in atom) it creates a separate instance of Atom.app which won't close and has to be killed forcefully

jnmandal avatar Aug 01 '18 16:08 jnmandal

Confirm it is fixing the issue on Mac OS 10.14.1 (18B75) Atom 1.34.0 x64

ajgreyling avatar Feb 18 '19 13:02 ajgreyling

Feb 21 2019 Not working on Mac OS 10.13.6 High Sierra Atom 1.34.0 x64

PhilippeComte avatar Feb 21 '19 15:02 PhilippeComte

Worked for me.

amitbattase avatar May 14 '20 06:05 amitbattase

Getting the same error :(

Jackson-H-Chen avatar Jun 08 '20 17:06 Jackson-H-Chen