maxlath / wikibase-cli

read and edit a Wikibase instance from the command line
MIT License
227 stars 24 forks source link

wdprops fails #2

Closed Hunter-Github closed 8 years ago

Hunter-Github commented 8 years ago
$ wdprops

Unhandled rejection Error: ENOENT: no such file or directory, open '~/.nodebrew/node/v5.11.1/props/node_modules/wikidata-cli/lib/en.json'
    at Error (native)
maxlath commented 8 years ago

thanks for reporting! which version of wikidata-cli are you using? (that should be indicated in ~/.nodebrew/node/v5.11.1/props/node_modules/wikidata-cli/package.json at "version")

Hunter-Github commented 8 years ago

1.7.1 at the moment.

maxlath commented 8 years ago

could you try installing the debuggingIssue2 branch locally and see what it outputs?

git clone https://github.com/maxlath/wikidata-cli
cd wikidata-cli
git checkout debuggingIssue2
npm install
./bin/wdprops
Hunter-Github commented 8 years ago

Works fine now, even d/loads the necessary en.json.

maxlath commented 8 years ago

so the cloned version works but not the global package version?

Hunter-Github commented 8 years ago

1.7.2 fails to track the paths: when I run the global wdprops, it says no file at ~/.nodebrew/node/v5.11.1/props/node_modules/wikidata-cli/lib/en.json - note that it's not the path where the installation is supposed to go. The local cloned version works all right.

maxlath commented 8 years ago

ok, I think 5d2ee23 should have fixed this issue, which was due to my lazyness to use a proper path resolution function, all my apologies for that >< I published the patch so you should be able to test it by upgrading to the last version.

Hunter-Github commented 8 years ago

Definitely fixed in 1.7.5.