Skip to content

Instantly share code, notes, and snippets.

@Glavin001
Created May 23, 2015 15:55
Show Gist options
  • Save Glavin001/c42ec72dc17fa9b7127c to your computer and use it in GitHub Desktop.
Save Glavin001/c42ec72dc17fa9b7127c to your computer and use it in GitHub Desktop.
error.md

[Enter steps to reproduce below:]

  1. 'Editing a JavaScript file. See other file.
  2. Add the {} for the function value for key prepare
  3. Press Enter while cursor inside {} (which was autocompleted) to expand {} to new lines.
  4. Error occurrs, when trying to expand {}.

I notice now that I cannot reproduce after I reload and/or after I paste the contents over the text editor.

Atom Version: 0.201.0 System: Microsoft Windows 8.1 Thrown From: Atom Core

Stack Trace

Uncaught TypeError: Cannot read property 'isComment' of undefined

At C:\Users\Glavin\AppData\Local\atom\app-0.201.0\resources\app.asar\node_modules\text-buffer\lib\text-buffer.js:683

TypeError: Cannot read property 'isComment' of undefined
    at TokenizedBuffer.module.exports.TokenizedBuffer.isFoldableCodeAtRow (C:\Users\Glavin\AppData\Local\atom\app-0.201.0\resources\app.asar\src\tokenized-buffer.js:424:71)
    at TokenizedBuffer.module.exports.TokenizedBuffer.isFoldableAtRow (C:\Users\Glavin\AppData\Local\atom\app-0.201.0\resources\app.asar\src\tokenized-buffer.js:419:19)
    at TokenizedBuffer.module.exports.TokenizedBuffer.updateFoldableStatus (C:\Users\Glavin\AppData\Local\atom\app-0.201.0\resources\app.asar\src\tokenized-buffer.js:407:25)
    at TokenizedBuffer.module.exports.TokenizedBuffer.handleBufferChange (C:\Users\Glavin\AppData\Local\atom\app-0.201.0\resources\app.asar\src\tokenized-buffer.js:372:20)
    at C:\Users\Glavin\AppData\Local\atom\app-0.201.0\resources\app.asar\src\tokenized-buffer.js:57:24
    at Emitter.module.exports.Emitter.emit (C:\Users\Glavin\AppData\Local\atom\app-0.201.0\resources\app.asar\node_modules\event-kit\lib\emitter.js:82:11)
    at TextBuffer.module.exports.TextBuffer.applyChange (C:\Users\Glavin\AppData\Local\atom\app-0.201.0\resources\app.asar\node_modules\text-buffer\lib\text-buffer.js:556:20)
    at TextBuffer.module.exports.TextBuffer.revertToCheckpoint (C:\Users\Glavin\AppData\Local\atom\app-0.201.0\resources\app.asar\node_modules\text-buffer\lib\text-buffer.js:717:16)
    at TextBuffer.module.exports.TextBuffer.transact (C:\Users\Glavin\AppData\Local\atom\app-0.201.0\resources\app.asar\node_modules\text-buffer\lib\text-buffer.js:681:14)
    at TextEditor.module.exports.TextEditor.transact (C:\Users\Glavin\AppData\Local\atom\app-0.201.0\resources\app.asar\src\text-editor.js:1132:26)

Commands

     -2:28.6.0 core:move-right (atom-text-editor.editor.is-focused)
     -2:28.3.0 editor:newline (atom-text-editor.editor.is-focused)
     -2:27.7.0 core:move-up (atom-text-editor.editor.is-focused)
  2x -2:25 core:move-down (atom-text-editor.editor.is-focused)
  2x -2:22.2.0 editor:newline (atom-text-editor.editor.is-focused)
  4x -2:18.1.0 core:backspace (atom-text-editor.editor.is-focused)
     -2:12.9.0 editor:newline (atom-text-editor.editor.is-focused)
     -0:57.4.0 command-palette:toggle (atom-text-editor.editor.is-focused)
     -0:55.8.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:55.8.0 pane:split-up (atom-text-editor.editor)
     -0:34 core:copy (atom-text-editor.editor.is-focused)
     -0:32.2.0 core:paste (atom-text-editor.editor.is-focused)
     -0:28.7.0 core:copy (atom-text-editor.editor.is-focused)
     -0:26.9.0 core:paste (atom-text-editor.editor.is-focused)
     -0:15.4.0 core:copy (atom-text-editor.editor.is-focused)
  2x -0:09.1.0 editor:newline (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "autocomplete-plus"
    ]
  },
  "editor": {
    "invisibles": {}
  }
}

Installed Packages

# User
No installed packages

# Dev
No dev packages
module.exports = {
name: "login",
auth: false,
form: true,
path: "twbkwbis.P_ValLogin",
referrer: "twbkwbis.P_WWWLogin",
prepare: function(options, cb) {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment