livestyle / atom

LiveStyle plugin for Atom editor
http://livestyle.io
135 stars 9 forks source link

Uncaught TypeError: Cannot read property 'getPath' of undefined #1

Closed thamamur closed 8 years ago

thamamur commented 8 years ago

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.3.2 System: Mac OS X 10.10.5 Thrown From: livestyle-atom package, v0.1.0

Stack Trace

Uncaught TypeError: Cannot read property 'getPath' of undefined

At /Users/thamamur/.atom/packages/livestyle-atom/lib/editor.js:44

TypeError: Cannot read property 'getPath' of undefined
    at Object.module.exports.syntax.editor [as syntax] (/Users/thamamur/.atom/packages/livestyle-atom/lib/editor.js:44:23)
    at initialContent (/Users/thamamur/.atom/packages/livestyle-atom/index.js:201:18)
    at WebSocket.<anonymous> (/Users/thamamur/.atom/packages/livestyle-atom/index.js:30:32)
    at emitOne (events.js:77:13)
    at WebSocket.emit (events.js:169:7)
    at WebSocket.onMessage (/Users/thamamur/.atom/packages/livestyle-atom/lib/client.js:78:7)
    at emitTwo (events.js:87:13)
    at WebSocket.emit (events.js:172:7)
    at Receiver.ontext (/Users/thamamur/.atom/packages/livestyle-atom/node_modules/ws/lib/WebSocket.js:816:10)
    at /Users/thamamur/.atom/packages/livestyle-atom/node_modules/ws/lib/Receiver.js:477:18
    at /Users/thamamur/.atom/packages/livestyle-atom/node_modules/ws/lib/Receiver.js:361:7
    at /Users/thamamur/.atom/packages/livestyle-atom/node_modules/ws/lib/PerMessageDeflate.js:247:5
    at afterWrite (_stream_writable.js:346:3)
    at onwrite (_stream_writable.js:337:7)
    at WritableState.onwrite (_stream_writable.js:89:5)
    at afterTransform (_stream_transform.js:79:5)
    at TransformState.afterTransform (_stream_transform.js:54:12)
    at Zlib.callback (zlib.js:614:5)

Commands

  4x -2:26.4.0 core:backspace (atom-text-editor.editor.mini.is-focused)
     -2:23 editor:newline (atom-text-editor.editor.mini.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "remember-session",
      "linter-scss-lint"
    ],
    "themes": [
      "atom-dark-ui",
      "atom-dark-syntax"
    ]
  }
}

Installed Packages

# User
Stylus, v1.2.1
atom-color-highlight, v3.0.9
autocomplete-paths, v1.0.2
compare-files, v0.6.2
editorconfig, v1.2.2
emmet, v2.3.17
file-icons, v1.6.13
language-markdown, v0.7.1
language-slim, v0.5.0
linter, v1.11.3
livestyle-atom, v0.1.0
markdown-themeable-pdf, v0.10.1
pdf-view, v0.38.0

# Dev
No dev packages