Arcath / compile-watch

Watch and compile files with atom
3 stars 0 forks source link

Cannot read property 'replace' of undefined #4

Open Arcath opened 9 years ago

Arcath commented 9 years ago

I get this error from time to time when opening atom. Unsure as to its cause and it doesn't happen every time nor can I see (at the moment) what makes it happen.

Atom Version: 1.0.2 System: Microsoft Windows 8.1 Pro Thrown From: Atom Core

Stack Trace

Failed to activate the compile-watch package

At Cannot read property 'replace' of undefined

TypeError: Cannot read property 'replace' of undefined
  at Object.module.exports.didOpenFile (C:\Code\Atom\compile-watch\lib\compile-watch.coffee:137:23)
  at C:\Code\Atom\compile-watch\lib\compile-watch.coffee:35:52
  at Workspace.module.exports.Workspace.observeTextEditors (C:\Users\adam.laycock\AppData\Local\atom\app-1.0.2\resources\app.asar\src\workspace.js:276:9)
  at Object.module.exports.activate (C:\Code\Atom\compile-watch\lib\compile-watch.coffee:35:20)
  at Package.module.exports.Package.activateNow (C:\Users\adam.laycock\AppData\Local\atom\app-1.0.2\resources\app.asar\src\package.js:240:19)
  at C:\Users\adam.laycock\AppData\Local\atom\app-1.0.2\resources\app.asar\src\package.js:221:30
  at Package.module.exports.Package.measure (C:\Users\adam.laycock\AppData\Local\atom\app-1.0.2\resources\app.asar\src\package.js:165:15)
  at Package.module.exports.Package.activate (C:\Users\adam.laycock\AppData\Local\atom\app-1.0.2\resources\app.asar\src\package.js:213:14)
  at PackageManager.module.exports.PackageManager.activatePackage (C:\Users\adam.laycock\AppData\Local\atom\app-1.0.2\resources\app.asar\src\package-manager.js:452:21)
  at C:\Users\adam.laycock\AppData\Local\atom\app-1.0.2\resources\app.asar\src\package-manager.js:436:29
  at Config.module.exports.Config.transact (C:\Users\adam.laycock\AppData\Local\atom\app-1.0.2\resources\app.asar\src\config.js:311:16)
  at PackageManager.module.exports.PackageManager.activatePackages (C:\Users\adam.laycock\AppData\Local\atom\app-1.0.2\resources\app.asar\src\package-manager.js:431:19)
  at PackageManager.module.exports.PackageManager.activate (C:\Users\adam.laycock\AppData\Local\atom\app-1.0.2\resources\app.asar\src\package-manager.js:412:46)
  at Atom.module.exports.Atom.startEditorWindow (C:\Users\adam.laycock\AppData\Local\atom\app-1.0.2\resources\app.asar\src\atom.js:645:21)
  at Object.<anonymous> (C:\Users\adam.laycock\AppData\Local\atom\app-1.0.2\resources\app.asar\src\window-bootstrap.js:12:8)
  at Object.<anonymous> (C:\Users\adam.laycock\AppData\Local\atom\app-1.0.2\resources\app.asar\src\window-bootstrap.js:23:4)
  at Module._compile (module.js:452:26)
  at Object.loadFile [as .js] (C:\Users\adam.laycock\AppData\Local\atom\app-1.0.2\resources\app.asar\src\babel.js:162:21)
  at Module.load (module.js:347:32)
  at Function.Module._load (module.js:302:12)
  at Module.require (module.js:357:17)
  at require (module.js:376:17)
  at setupWindow (file:///C:/Users/adam.laycock/AppData/Local/atom/app-1.0.2/resources/app.asar/static/index.js:96:23)
  at window.onload (file:///C:/Users/adam.laycock/AppData/Local/atom/app-1.0.2/resources/app.asar/static/index.js:36:7)

Commands

Config

{
  "core": {
    "themes": [
      "isotope-ui",
      "railscasts-syntax"
    ],
    "disabledPackages": [
      "wrap-guide",
      "atom-compile-coffee",
      "sass-watch",
      "file-type-icons"
    ]
  },
  "editor": {
    "invisibles": {},
    "fontSize": 16
  }
}

Installed Packages

# User
compile-watch, v0.1.4
file-icons, v1.5.8
isotope-ui, v2.5.1
minimap, v4.11.2
railscasts-syntax, v0.4.0

# Dev
No dev packages