avh4 / avh4/elm-format

--validate should print JSON if files don't exist

Open
#504 0 comments 0 reactions 0 assignees View on GitHub
bug small
Dominant language
Haskell
Stars
1.3k
Forks
147
PR merge metrics
No merged PRs in 30d

Description

```
$ elm-format --validate xxx
[There was a problem reading one or more of the specified input files:

xxx: File does not exist

Please check the given paths.
```
Should instead print:
```
$ elm-format --validate xxx
[{"path":"xxx","message":"File does not exist"}
]
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the elm-format --validate command entry point and how it handles a nonexistent path such as xxx. Run the command before and after the change, and confirm the result is JSON containing the path and the “File does not exist” message.

Written by the indexing model from the issue text.

Assessment

Tech stack
elm, haskell
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.