Skip to content

Missing rc.json #34

@delameter

Description

@delameter

Hello.
Tried to open rc.json right after installing and it wasn't successful:

> xo --rc
Traceback (most recent call last):
  File "/home/delameter/.local/bin/xo", line 1122, in <module>
    main()
  File "/home/delameter/.local/bin/xo", line 1109, in main
    with open(RC_PATH) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/delameter/.config/xo/rc.json'

Installed with pip install exofrills (i.e. user installation)

> mkdir /home/delameter/.config/xo
> touch /home/delameter/.config/xo/rc.json
> xo --rc-edit
Warning: rc file not valid JSON.
(empty file)

Maybe something like writing default config if current is empty should be implemeneted?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions