Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zazu calculator not functional #2

Open
meditatingCybermind opened this issue Jan 5, 2017 · 5 comments
Open

Zazu calculator not functional #2

meditatingCybermind opened this issue Jan 5, 2017 · 5 comments
Labels

Comments

@meditatingCybermind
Copy link

meditatingCybermind commented Jan 5, 2017

I'm receiving this error in the debugger when trying to do something, in this case pi * 3:

ERROR: [11:42:16][tinytacoteam/zazu-calculator:Service] 
Cannot find module 'typed-function'
{
  "block": "Service",
  "level": "error",
  "message": "Cannot find module 'typed-function'",
  "plugin": "tinytacoteam/zazu-calculator",
  "stack": [
    "Error: Cannot find module 'typed-function'",
    "    at Module._resolveFilename (module.js:455:15)",
    "    at Function.Module._resolveFilename (/Applications/Zazu.app/Contents/Resources/electron.asar/common/reset-search-paths.js:35:12)",
    "    at Function.Module._load (module.js:403:25)",
    "    at Module.require (module.js:483:17)",
    "    at require (internal/module.js:20:19)",
    "    at Object.<anonymous> (/Users/tparsons/.zazu/plugins/tinytacoteam/zazu-calculator/node_modules/mathjs/lib/core/typed.js:1:100)",
    "    at Module._compile (module.js:556:32)",
    "    at Object.Module._extensions..js (module.js:565:10)",
    "    at Module.load (module.js:473:32)",
    "    at tryModuleLoad (module.js:432:12)"
  ],
  "time": "2017-01-05T16:42:16.345Z"
}

I just installed Zazu today so I haven't had a chance to find all the ins-and-outs, but I have ensured that my .zazurc is correct

{
  "hotkey": "cmd+space",
  "theme": "tinytacoteam/zazu-playful-theme",
  "plugins": [
    "tinytacoteam/zazu-calculator",
    "tinytacoteam/zazu-file-finder",
    "tinytacoteam/zazu-fallback",
    "tinytacoteam/zazu-template",
    "tinytacoteam/zazu-system",
    {
      "name": "tinytacoteam/zazu-clipboard",
      "variables": {
        "ClipboardKey": "cmd+shift+v"
      }
    }
  ]
}

@bayleedev
Copy link
Member

Yes, your configuration file is perfect. My best guess is that there was an error during a npm install of the dependencies. Do you mind trying:

rm -rf ~/.zazu/plugins/tinytacoteam/zazu-calculator

and restarting zazu?

@bayleedev bayleedev added the bug label Jan 5, 2017
@meditatingCybermind
Copy link
Author

meditatingCybermind commented Jan 5, 2017

ERROR: [12:11:40][tinytacoteam/zazu-calculator:Service] 
Cannot find module 'mathjs'
{
  "block": "Service",
  "level": "error",
  "message": "Cannot find module 'mathjs'",
  "plugin": "tinytacoteam/zazu-calculator",
  "stack": [
    "Error: Cannot find module 'mathjs'",
    "    at Module._resolveFilename (module.js:455:15)",
    "    at Function.Module._resolveFilename (/Applications/Zazu.app/Contents/Resources/electron.asar/common/reset-search-paths.js:35:12)",
    "    at Function.Module._load (module.js:403:25)",
    "    at Module.require (module.js:483:17)",
    "    at require (internal/module.js:20:19)",
    "    at Object.<anonymous> (/Users/tparsons/.zazu/plugins/tinytacoteam/zazu-calculator/calculator.js:1:95)",
    "    at Module._compile (module.js:556:32)",
    "    at Object.Module._extensions..js (module.js:565:10)",
    "    at Module.load (module.js:473:32)",
    "    at tryModuleLoad (module.js:432:12)"
  ],
  "time": "2017-01-05T17:11:40.074Z"
}

Looks like you're on the right track with missing dependencies. I'll see about just running npm install and seeing if that changes anything

Edit: Running npm install from .../zazu-calculator fixed the issue, after rm -rf .../zazu-calculator and restarting zazu did not

@bayleedev
Copy link
Member

Is there a npm-debug.log in the calculator directory?

@meditatingCybermind
Copy link
Author

There is not.

@cecoates
Copy link

cecoates commented Jan 7, 2017

I had the same issue regarding the mathjs error, but your solution of rm -rf ~/.zazu/plugins/tinytacoteam/zazu-calculator
and restarting fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants