Skip to content
This repository has been archived by the owner on Apr 29, 2022. It is now read-only.

Improve DX when .scalaunfmt.conf is not found #17

Closed
exoego opened this issue Jun 16, 2019 · 1 comment · Fixed by #18
Closed

Improve DX when .scalaunfmt.conf is not found #17

exoego opened this issue Jun 16, 2019 · 1 comment · Fixed by #18

Comments

@exoego
Copy link
Contributor

exoego commented Jun 16, 2019

I ran into this issue when I tried to use scalaunfmt.

Steps to reproduce

  1. Install coursier.
  2. Install scalaunfmt by the below command (from README)
coursier bootstrap com.github.tanishiking:scalaunfmt_2.12:0.0.3 \
  -r sonatype:releases \
  -o scalaunfmt --standalone --main com.github.tanishiking.scalaunfmt.cli.Cli
  1. Run scalaunfmt ./scalaunfmt -v 2.0.0-RC8 ./src
  2. Then scalaunfmt abort with Exception in thread "main" java.nio.file.NoSuchFileException: .scalaunfmt.conf.

However, it is not clear what .scalaunfmt.conf should look like from README.
I think it should be documented.
Well, it is documented.

It also would be helpful if scalaunfmt

  • show more helpful message something like .scalaunfmt.conf is missing. See <URL to example> ,
  • use default settings if no .scalaunfmt.conf

from developer experience POV.

@exoego
Copy link
Contributor Author

exoego commented Jun 16, 2019

Ah, I finally found the example content for .scalaunfmt.conf in https://github.com/tanishiking/scalaunfmt#configuration

@exoego exoego changed the title NoSuchFileException: .scalaunfmt.conf Show more helpful message when no .scalaunfmt.conf Jun 16, 2019
@exoego exoego changed the title Show more helpful message when no .scalaunfmt.conf Improve DX when .scalaunfmt.conf is not found Jun 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant