Atom.workspace.open error


#1
url = require 'url'
alohaView = require "./aloha-view"
{EditorView} = require 'atom'

module.exports =
  alohaView:null

  activate: (state) ->
    console.log 'active'
    atom.workspace.registerOpener (uriToOpen)  ->
      #return dom object (√)
      return new alohaView()

    atom.workspaceView.command 'aloha:toggle', => 
      @show()

  show:()->
    console.log 'show'
    url = 'aloha://start'
    atom.workspace.open(url)
       #add url param error, remove success
      
      #**× error:TypeError: undefined is not a function at \Atom\resources\app\node_modules\q\q.js:108:17),at process._tickCallback (node.js:349:11)**
      

code from:
https://github.com/jamischarles/atom-todo-show/blob/master/lib/show-todo.coffee