carloscuesta / gitmoji-cli

A gitmoji interactive cli tool for using emojis on commits. 💻
https://www.npmjs.com/package/gitmoji-cli
MIT License
4.63k stars 206 forks source link

CLI can't query gitmoji list #331

Closed Larandar closed 4 years ago

Larandar commented 4 years ago

Hello @carloscuesta!

When using any command that makes a query the CLI crash with the following message.

OS: Ubuntu (WSL) gitmoji-cli -v: 3.2.1 or 3.2.2 (--version show different version from npm) Node version: 13.10.1

Error Message:

query init
Error: Total of weights cannot exceed 1
    at e.value (/usr/local/lib/node_modules/gitmoji-cli/node_modules/fuse.js/dist/fuse.js:9:3409)
    at new e (/usr/local/lib/node_modules/gitmoji-cli/node_modules/fuse.js/dist/fuse.js:9:2634)
    at filterGitmojis (/usr/local/lib/node_modules/gitmoji-cli/lib/utils/filterGitmojis.js:24:16)
    at /usr/local/lib/node_modules/gitmoji-cli/lib/commands/search/index.js:18:81
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

image

carloscuesta commented 4 years ago

Hello @Larandar seems that you have two different versions installed.

This was fixed on 3.2.2 at #329, please uninstall both versions and make sure you are using the last one

Thanks!