coderoad / atom-coderoad-deprecated

Interactive tutorial plugin for Atom
https://coderoad.github.io
Apache License 2.0
55 stars 5 forks source link

Uncaught TypeError: Cannot read property 'dir' of undefined #5

Closed henrymzhao closed 8 years ago

henrymzhao commented 8 years ago

Steps to reproduce:

  1. Open Atom
  2. Toggle on Coderoad
  3. Start -> FUNCTIONAL-SCHOOL
  4. Select first tutorial "1. Start"
  5. Return back to tutorials menu via top right drop down
  6. Select FUNCTIONAL-SCHOOL

Atom Version: 1.8.0 System: Microsoft Windows 10 Pro Thrown From: atom-coderoad package, v0.10.3

Stack Trace

Uncaught TypeError: Cannot read property 'dir' of undefined

At D:\Documents\Atom\coderoad\node_modules\coderoad-functional-school\node_modules\mocha-coderoad\lib\create-runner.js:25

TypeError: Cannot read property 'dir' of undefined
    at Object.createRunner (D:\Documents\Atom\coderoad\node_modules\coderoad-functional-school\node_modules\mocha-coderoad\lib\create-runner.js:25:20)
    at Object.runner [as run] (D:\Documents\Atom\coderoad\node_modules\coderoad-functional-school\node_modules\mocha-coderoad\lib\runner.js:5:34)
    at Object.runTaskTests [as default] (C:\Users\user\.atom\packages\atom-coderoad\lib\modules\tests\test-run\run.js:14:24)
    at runTest (C:\Users\user\.atom\packages\atom-coderoad\lib\modules\tests\test-run\index.js:9:33)
    at combination (C:\Users\user\.atom\packages\atom-coderoad\node_modules\redux\lib\combineReducers.js:117:29)
    at dispatch (C:\Users\user\.atom\packages\atom-coderoad\node_modules\redux\lib\createStore.js:179:22)
    at invokeFunc (C:\Users\user\.atom\packages\atom-coderoad\node_modules\core-coderoad\node_modules\redux-throttle-actions\node_modules\lodash.throttle\node_modules\lodash.debounce\index.js:148:19)
    at leadingEdge (C:\Users\user\.atom\packages\atom-coderoad\node_modules\core-coderoad\node_modules\redux-throttle-actions\node_modules\lodash.throttle\node_modules\lodash.debounce\index.js:158:22)
    at debounced (C:\Users\user\.atom\packages\atom-coderoad\node_modules\core-coderoad\node_modules\redux-throttle-actions\node_modules\lodash.throttle\node_modules\lodash.debounce\index.js:224:16)
    at C:\Users\user\.atom\packages\atom-coderoad\node_modules\core-coderoad\node_modules\redux-throttle-actions\lib\index.js:38:16
    at C:\Users\user\.atom\packages\atom-coderoad\node_modules\core-coderoad\node_modules\redux-thunk\lib\index.js:14:16
    at dispatch (C:\Users\user\.atom\packages\atom-coderoad\node_modules\redux\lib\applyMiddleware.js:45:18)
    at C:\Users\user\.atom\packages\atom-coderoad\lib\modules\tests\actions.js:7:9
    at C:\Users\user\.atom\packages\atom-coderoad\node_modules\core-coderoad\node_modules\redux-thunk\lib\index.js:11:18
    at dispatch (C:\Users\user\.atom\packages\atom-coderoad\node_modules\redux\lib\applyMiddleware.js:45:18)
    at C:\Users\user\.atom\packages\atom-coderoad\lib\modules\progress\actions.js:9:9
    at C:\Users\user\.atom\packages\atom-coderoad\node_modules\core-coderoad\node_modules\redux-thunk\lib\index.js:11:18
    at Object.progressLoad (C:\Users\user\.atom\packages\atom-coderoad\node_modules\redux\lib\bindActionCreators.js:7:12)
    at Progress.componentWillMount (C:\Users\user\.atom\packages\atom-coderoad\lib\components\Progress\index.js:37:20)
    at [object Object].ReactCompositeComponentMixin.performInitialMount (C:\Users\user\.atom\packages\atom-coderoad\node_modules\react\lib\ReactCompositeComponent.js:332:12)
    at [object Object].ReactCompositeComponentMixin.mountComponent (C:\Users\user\.atom\packages\atom-coderoad\node_modules\react\lib\ReactCompositeComponent.js:240:21)
    at Object.ReactReconciler.mountComponent (C:\Users\user\.atom\packages\atom-coderoad\node_modules\react\lib\ReactReconciler.js:49:35)
    at [object Object].ReactCompositeComponentMixin.performInitialMount (C:\Users\user\.atom\packages\atom-coderoad\node_modules\react\lib\ReactCompositeComponent.js:359:34)
    at [object Object].ReactCompositeComponentMixin.mountComponent (C:\Users\user\.atom\packages\atom-coderoad\node_modules\react\lib\ReactCompositeComponent.js:240:21)
    at Object.ReactReconciler.mountComponent (C:\Users\user\.atom\packages\atom-coderoad\node_modules\react\lib\ReactReconciler.js:49:35)
    at [object Object].ReactCompositeComponentMixin._updateRenderedComponent (C:\Users\user\.atom\packages\atom-coderoad\node_modules\react\lib\ReactCompositeComponent.js:743:40)
    at [object Object].ReactCompositeComponentMixin._performComponentUpdate (C:\Users\user\.atom\packages\atom-coderoad\node_modules\react\lib\ReactCompositeComponent.js:707:10)
    at [object Object].ReactCompositeComponentMixin.updateComponent (C:\Users\user\.atom\packages\atom-coderoad\node_modules\react\lib\ReactCompositeComponent.js:626:12)
    at [object Object].ReactCompositeComponentMixin.receiveComponent (C:\Users\user\.atom\packages\atom-coderoad\node_modules\react\lib\ReactCompositeComponent.js:526:10)
    at Object.ReactReconciler.receiveComponent (C:\Users\user\.atom\packages\atom-coderoad\node_modules\react\lib\ReactReconciler.js:131:22)
    at [object Object].ReactCompositeComponentMixin._updateRenderedComponent (C:\Users\user\.atom\packages\atom-coderoad\node_modules\react\lib\ReactCompositeComponent.js:729:23)
    at [object Object].ReactCompositeComponentMixin._performComponentUpdate (C:\Users\user\.atom\packages\atom-coderoad\node_modules\react\lib\ReactCompositeComponent.js:707:10)
    at [object Object].ReactCompositeComponentMixin.updateComponent (C:\Users\user\.atom\packages\atom-coderoad\node_modules\react\lib\ReactCompositeComponent.js:626:12)
    at [object Object].ReactCompositeComponentMixin.performUpdateIfNecessary (C:\Users\user\.atom\packages\atom-coderoad\node_modules\react\lib\ReactCompositeComponent.js:540:12)
    at Object.ReactReconciler.performUpdateIfNecessary (C:\Users\user\.atom\packages\atom-coderoad\node_modules\react\lib\ReactReconciler.js:165:22)
    at runBatchedUpdates (C:\Users\user\.atom\packages\atom-coderoad\node_modules\react\lib\ReactUpdates.js:152:21)
    at ReactReconcileTransaction.Mixin.perform (C:\Users\user\.atom\packages\atom-coderoad\node_modules\react\lib\Transaction.js:138:20)
    at ReactUpdatesFlushTransaction.Mixin.perform (C:\Users\user\.atom\packages\atom-coderoad\node_modules\react\lib\Transaction.js:138:20)
    at ReactUpdatesFlushTransaction._assign.perform (C:\Users\user\.atom\packages\atom-coderoad\node_modules\react\lib\ReactUpdates.js:91:38)
    at Object.flushBatchedUpdates (C:\Users\user\.atom\packages\atom-coderoad\node_modules\react\lib\ReactUpdates.js:178:19)
    at ReactDefaultBatchingStrategyTransaction.Mixin.closeAll (C:\Users\user\.atom\packages\atom-coderoad\node_modules\react\lib\Transaction.js:204:25)
    at ReactDefaultBatchingStrategyTransaction.Mixin.perform (C:\Users\user\.atom\packages\atom-coderoad\node_modules\react\lib\Transaction.js:151:16)
    at Object.ReactDefaultBatchingStrategy.batchedUpdates (C:\Users\user\.atom\packages\atom-coderoad\node_modules\react\lib\ReactDefaultBatchingStrategy.js:63:19)
    at Object.batchedUpdates (C:\Users\user\.atom\packages\atom-coderoad\node_modules\react\lib\ReactUpdates.js:99:20)
    at ReactEventListener.dispatchEvent (C:\Users\user\.atom\packages\atom-coderoad\node_modules\react\lib\ReactEventListener.js:150:20)

Commands

     -0:54.3.0 cr-viewer:toggle (atom-pane.pane.active)

Config

{
  "core": {
    "disabledPackages": [
      "builder-coderoad"
    ]
  }
}

Installed Packages

# User
atom-coderoad, v0.10.3
atom-shell-commands, v1.4.0
atom-ternjs, v0.14.2
autocomplete-ruby, v0.1.0
browser-plus, v0.0.60
language-babel, v2.29.2
ruby-block, v0.3.5

# Dev
No dev packages
ShMcK commented 8 years ago

Similar to #7.