Skip to content

Uncaught TypeError: Cannot read property '2' of undefined #207

Description

@krystaltkh

Hello, I'm not sure if there's a way to reproduce this, but:

  1. I ran a recursive CTE that took really long to run, and for some reason, could not be terminated.
  2. Closed & Quit Atom, and when I reopened Atom to connect to the database again, this error occurred and I can no longer connect to my database.

Prior to this, Atom & database connections were working fine. I'm still quite new to postgreSQL, but if there's any other information you think I can provide, do let me know. Thank you!

Atom: 1.58.0 x64
Electron: 9.4.4
OS: Mac OS X 10.15.7
Thrown From: data-atom package 0.29.1

Stack Trace

Uncaught TypeError: Cannot read property '2' of undefined

At /Users/krystaltay/.atom/packages/data-atom/node_modules/season/lib/cson.js:77

TypeError: Cannot read property '2' of undefined
    at Lexer.exports.Lexer.Lexer.tokenize (/packages/data-atom/node_modules/coffee-script/lib/coffee-script/lexer.js:43:58)
    at /packages/data-atom/node_modules/coffee-script/lib/coffee-script/coffee-script.js:111:33
    at /packages/data-atom/node_modules/coffee-script/lib/coffee-script/coffee-script.js:34:19
    at Object.parse (/packages/data-atom/node_modules/cson-parser/lib/parse.js:202:15)
    at parseObject (/packages/data-atom/node_modules/season/lib/cson.js:42:23)
    at parseContentsSync (/packages/data-atom/node_modules/season/lib/cson.js:68:16)
    at Object.readFileSync (/packages/data-atom/node_modules/season/lib/cson.js:170:14)
    at /packages/data-atom/lib/data-managers/db-factory.js:40:34
    at suppressedCallback (fs.js:202:5)
    at FSReqCallback.oncomplete (fs.js:146:23)

Commands

     -2:01.7.0 core:select-all (input.hidden-input)
     -2:01.0 core:paste (input.hidden-input)
     -1:59.3.0 core:undo (input.hidden-input)
     -1:57.3.0 core:paste (input.hidden-input)
     -1:54.2.0 core:save (input.hidden-input)
     -1:51.1.0 data-atom:new-connection (input.hidden-input)
     -1:14.6.0 data-atom:toggle-results-view (input.hidden-input)
  3x -1:12 data-atom:new-connection (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-dark-syntax.theme-one-dark-ui)

Non-Core Packages

atom-python-run 0.9.7 
atom-runner 2.7.1 
autocomplete-python 1.17.0 
color-picker 2.3.0 
data-atom 0.29.1 
ide-golang 0.0.5 
language-pgsql 0.2.3 
multi-cursor 3.0.0 
script 3.32.2 
script-runner 2.6.0 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions