bayleeadamoss / zazu-clipboard

A clipboard manager for Zazu.
The Unlicense
14 stars 12 forks source link

Clipboard crashes when you update plugins. #12

Open cecoates opened 7 years ago

cecoates commented 7 years ago

When you update plugins, and then launch Zazu again, the clipboard crashes with the error:

"ENOENT: no such file or directory, open '/home/cecoates/.zazu/plugins/tinytacoteam/zazu-clipboard/node_modules/underscore/underscore.js'"

It will also sometimes return the same error mentioned here:

https://github.com/tinytacoteam/zazu-clipboard/issues/9

Deleting zazu-clipboard and clicking reload config fixes it. But the next time you click update plugins it happens again.

Expected Behavior

Click update plugins. Launch Zazu. No errors.

Actual Behavior

Click update plugins. Launch Zazu. Clipboard crashes with error.

Steps to reproduce the behavior

Select update plugins. Alt+Space to start Zazu. Clipboard crashes.

Versions

Zazu: 2.3 OS: Linux debian 4.8.0-2-amd64 #1 SMP Debian 4.8.11-1 (2016-12-02) x86_64 GNU/Linux jan 6 2017 7-45 pm - edited

GIT (if you have it installed):

Please, include a link to gist of most applicable ~/.zazu/log/ file.

zazu.log (copy).2017-01-09.txt

http://cld.wthms.co/PWn0

bayleedev commented 7 years ago

Thank you for reporting this!

twang2218 commented 7 years ago

@cecoates It seems the dependencies of zazu-clipboard are broken, is it possible something happened during the upgrade? such as internet access problem?

Could you try run upgrade again? or manually re-install the dependencies:

$ cd ~/.zazu/plugins/tinytacoteam/zazu-clipboard/
$ git pull
$ rm -rf node_modules
$ npm i --production
antoine-atmire commented 7 years ago

Same happens to me.

$ ls -1 ~/.zazu/plugins/tinytacoteam/zazu-clipboard/node_modules
color
js-htmlencode
mkdirp
nedb
recast
s-ago

When I run npm i --production all the missing dependencies are added, but when I let zazu update the plugins afterwards they're gone again.

This is with zazu v0.4.0 on ubuntu 16.10

bayleedev commented 7 years ago

@antoine-atmire what version of git do you have, if any?

Is that the node_modules before or after the npm i --production call?

antoine-atmire commented 7 years ago

That list is when zazu updates its plugin. This is the list when I run npm i --production myself: acorn amdefine ast-types async base62 binary-search-tree clone color color-convert color-name color-string core-util-is es3ify esmangle-evaluator esprima-fb falafel foreach immediate inherits inline-process-browser isarray js-htmlencode jstransform lie localforage minimist mkdirp nedb object-keys private readable-stream recast s-ago source-map string_decoder through through2 underscore unreachable-branch-transform xtend

My git version is 2.9.3