matryer / xbar

Put the output from any script or program into your macOS Menu Bar (the BitBar reboot)
https://xbarapp.com
MIT License
17.55k stars 643 forks source link

Meta Package Manager plugin returns ERR: signal killed #777

Open ncihnegn opened 3 years ago

ncihnegn commented 3 years ago

Running in terminal is fine.

One thing standing out is that mpm needs a few minutes to finish. Does xbar has a timeout mechanism?

[plugins] mpm --output-format json outdated --cli-format xbar { "brew": { "errors": [], "id": "brew", "name": "Homebrew Formulae", "packages": [] }, "cask": { "errors": [], "id": "cask", "name": "Homebrew Cask", "packages": [] }, "gem": { "errors": [], "id": "gem", "name": "Ruby Gems", "packages": [ { "id": "nokogiri", "installed_version": "1.10.1", "latest_version": "1.12.4", "name": "nokogiri", "upgrade_cli": "shell=/usr/bin/gem | param1=update | param2=--user-install | param3=--quiet | param4=nokogiri" } ], "upgrade_all_cli": "shell=/usr/bin/gem | param1=update | param2=--user-install | param3=--quiet" }, "mas": { "errors": [], "id": "mas", "name": "Mac AppStore", "packages": [] }, "npm": { "errors": [], "id": "npm", "name": "Node's npm", "packages": [] }, "pip": { "errors": [], "id": "pip", "name": "Pip", "packages": [] }, "yarn": { "errors": [], "id": "yarn", "name": "Node's yarn", "packages": [] } }

ncihnegn commented 3 years ago

If I don't check for pip, it will work.

kdeldycke commented 2 years ago

Looks like xbar timeout is hard-coded to 2 minutes since v2.1.7-beta as per https://github.com/matryer/xbar/commit/3a8508a6191735999a963a596f226485ed0e6295 . This was bumped following #735.

I guess what you need is the feature describe in https://github.com/matryer/xbar/issues/704 which will allow for user-defined timeout.

kdeldycke commented 2 years ago

If I don't check for pip, it will work.

In that case you can let mpm always ignore pip by creating a config file at ~/.mpm/config.toml, and put this in:

[mpm]
exclude = ["pip"]