ruffjs / ruff-issues

Ruff Issues is a issue collector for Ruff.
https://ruff.io
15 stars 0 forks source link

Ruff SDK 1.7.1 & 1.7.2 don't work without init #20

Closed iFwu closed 7 years ago

iFwu commented 7 years ago

Ruff Version: Ruff SDK 1.7.1 & 1.7.2 on macOS 10.12.4 (16E195)

Expected behavior: Normal behavior.

Actual behavior: In shell environment,rap command is totally broken which returns the following ERR info when there is no init files (package.json).

ERR Invalid package version.

Thus, I can't init a directory use rap command because I can't use rap init, that's a infinite loop. Hope there will be more robust tests before upgrade to avoid such low-level mistakes.

zpan commented 7 years ago

Hi Xekri,

Could you help to check whether this is a file named package.json in your user's home directory?

If so, try to rename it and run 'rap init' again.

iFwu commented 7 years ago

@blackisle All right, after renaming it, the command works. But I still think that's not what a shell program should expect...

zpan commented 7 years ago

Hi Xekri,

Thanks for your reply.

We will improve it in the next release.