bayleeadamoss / zazu

:rocket: A fully extensible and open source launcher for hackers, creators and dabblers.
http://zazuapp.org
MIT License
2.09k stars 168 forks source link

Can't launch apps on Windows 10 #134

Open ptmkenny opened 7 years ago

ptmkenny commented 7 years ago

Related issue: https://github.com/tinytacoteam/zazu/issues/118 (for Linux, this is for Windows)

Expected Behavior

When I type Chrome or Word, When I type Chrome or Word, I can launch the app by pressing enter.

Actual Behavior

I get a prompt to search Google for Chrome or Word.

Steps to reproduce the behavior

Type the name of an app.

Versions

bayleedev commented 7 years ago

@ptmkenny does this file exist? C:\Users\<YOUR_USER>\.zazu\plugins\tinytacoteam\zazu-file-finder\data\applications.json ?

ptmkenny commented 7 years ago

In C:\Users\.zazu\plugins\tinytacoteam\zazu-file-finder\data\ the only file is .gitkeep, 0KB.

bayleedev commented 7 years ago

What's inside of C:\Users<YOUR_USER>.zazu\plugins\tinytacoteam\zazu-file-finder\node_modules ?

ptmkenny commented 7 years ago

There's a plist folder, which in turn contains:

dist/ examples/ lib/ .jshintrc .travis.yml History.md LICENSE Makefile README.md index.js package.json

On Tue, Jan 10, 2017 at 2:18 PM, Blaine Schmeisser <notifications@github.com

wrote:

What's inside of C:\Users.zazu\plugins\tinytacoteam\zazu- file-finder\node_modules ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tinytacoteam/zazu/issues/134#issuecomment-271488908, or mute the thread https://github.com/notifications/unsubscribe-auth/ABYl0J13pcHC5z3Bt4cYPcBPD8W2sOItks5rQxSlgaJpZM4LfAfw .

YonghoChoi commented 7 years ago

I have the same problem on windows 10.

drazik commented 7 years ago

Hello,

Same problem here. The only difference is that C:\Users<YOUR_USER>.zazu\plugins\tinytacoteam\zazu-file-finder\node_modules contains the following directories / files on my machine :

base64-js plist xmlbuilder xmldom

scheduardo commented 7 years ago

Same here. Nothing happens!

Windows 10!

See: https://cl.ly/j2Xy

twang2218 commented 7 years ago

If your system has node installed, could you try the following command under C:\Users\<YOUR_USER>\.zazu\plugins\tinytacoteam\zazu-file-finder\ directory, and paste the result here?

cd C:\Users\<YOUR_USER>\.zazu\plugins\tinytacoteam\zazu-file-finder\
node appCache.js '{}'

This will try to manually call the data\application.json generator, if any exception happened there, it will be output to the console.

TopGrd commented 7 years ago

I have same problem in my os: Windows 10. When i check the zazu-file-finder folder, i can't find application.json, so i run your command

cd C:\Users\<YOUR_USER>\.zazu\plugins\tinytacoteam\zazu-file-finder\
node appCache.js '{}'

some modules is not found like follow picture.
I run command npm install && node appCache.js {}, then SUCCESS!!

twang2218 commented 7 years ago

@TopGrd async is newly added dependencies in zazu-file-finder, it seems the plugin update process failed to install the new dependencies somehow. So, the zazu file/app finder works now?

TopGrd commented 7 years ago

@twang2218 not only async modules, like follow pictures.

Now the zazu file/app finder works well.

bayleedev commented 7 years ago

@TopGrd do you still have the log file from the day you upgraded?

~/.zazu/logs

TopGrd commented 7 years ago

@blainesch Yes, it's in my computer. There is download link if you need it. log

twang2218 commented 7 years ago

@TopGrd I didn't see the zazu-file-finder updating log, here is what I saw:

 cat zazu.log.2017-02-09| grep 'npm'
{"plugin":"tinytacoteam/zazu-calculator","level":"info","message":"npm install"}
{"level":"verbose","message":"npm install [tinytacoteam/zazu-calculator] has 3 attempts"}
{"plugin":"tinytacoteam/zazu-system","level":"info","message":"npm install"}
{"level":"verbose","message":"npm install [tinytacoteam/zazu-system] has 3 attempts"}
{"plugin":"tinytacoteam/zazu-template","level":"info","message":"npm install"}
{"level":"verbose","message":"npm install [tinytacoteam/zazu-template] has 3 attempts"}
{"level":"verbose","message":"npm install [tinytacoteam/zazu-system] success"}
{"plugin":"blakek/zazu-ip-address","level":"info","message":"npm install"}
{"level":"verbose","message":"npm install [blakek/zazu-ip-address] has 3 attempts"}
{"level":"verbose","message":"npm install [tinytacoteam/zazu-template] success"}
{"plugin":"tinytacoteam/zazu-clipboard","level":"info","message":"npm install"}
{"level":"verbose","message":"npm install [tinytacoteam/zazu-clipboard] has 3 attempts"}

And I didn't see the npm failures either:

 cat zazu.log.2017-02-09| grep failed
{"error":{},"plugin":"blakek/zazu-ip-address","block":"ciyxqkbq70000ucot7ml2rf5m","level":"error","message":"Script failed"}
{"error":{},"plugin":"blakek/zazu-ip-address","block":"ciyxqkbq70000ucot7ml2rf5m","level":"error","message":"Script failed"}

Did you update the zazu-file-finder at 2017-02-09? or another day? Could you run grep npm zazu.log.* at the log directory, maybe it's in another file.

Just based on this file, I found something interesting, there are 5 npm install request, but only 2 success without any failures. And without the zazu is closing message, I saw app is ready, which means you restart the Zazu(or system) during the installation process, which caused the installation interruption and might be the cause of dependencies broken.

If that is the case, run the Update plugins again might fix the problem, otherwise, you may need manually run npm install for each plugin (or even remove the node_modules directory under each plugin and do a clean npm install again).

TopGrd commented 7 years ago

@twang2218 Ok, i just installed zazu application at 2017-02-09, not update. Maybe it's my fault to interrupt the dependencies installation. i forget my actions during install.

drazik commented 7 years ago

Hello. If it can help, I have just updated Zazu (2017-02-10) today and the issue is still present.

I tried this and get no error.

twang2218 commented 7 years ago

@drazik Is there a C:\Users<YOUR_USER>.zazu\plugins\tinytacoteam\zazu-file-finder\data\application.json file? If you got no error of node appCache.js '{}', then probably it's working properly. Could you provide more information about your problem? Thanks.

drazik commented 7 years ago

Woops, I think I just needed to wait for indexing after the update, because now it's working properly. I'm sorry to have disturbed you for nothing. It seems the recent update fixed the problem. Good job, thank you very much 👍

ohardy commented 7 years ago

Same bug on MacOs with master branch when running node appCache.js '{}'

Error: Cannot find module 'app2png'
twang2218 commented 7 years ago

@ohardy Could you try npm install --production, it seems missing the dependencies somehow.

ohardy commented 7 years ago

@twang2218 Yep I did before you ask because I know. But it's look like à bug in Zazu that sometime failed to do npm install after plugin update

twang2218 commented 7 years ago

@ohardy There is a PR for sub-dependencies issue, https://github.com/tinytacoteam/zazu/pull/252, but app2png is direct dependency, do you have the log of the day you update the plugin? Could you post the log here if you still have it? I think there might be some error in the log.