File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
message-index/messages/S-6602/empty Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 2
2
title : Stack does not accept empty YAML files
3
3
---
4
4
5
- When run with an empty YAML file, Stack fails to parse it. In particular , ` stack --stack-yaml empty.yaml build ` results in the error:
5
+ When run with an empty YAML file, Stack fails to parse it. For example , ` stack --stack-yaml empty.yaml build ` results in the error:
6
6
```
7
7
Error: [S-6602]
8
- Could not parse '/PATH/TO/empty.yaml':
9
- Aeson exception:
10
- Error in $: parsing ProjectAndConfigMonoid failed, expected Object, but encountered Null
11
- See http://docs.haskellstack.org/en/stable/yaml_configuration/
8
+ Stack could not load and parse /PATH/TO/empty.yaml as a YAML
9
+ configuraton file.
10
+
11
+ While loading and parsing, Stack encountered the following exception:
12
+
13
+ Aeson exception:
14
+ Error in $: parsing ProjectAndConfigMonoid failed, expected Object, but encountered Null
15
+
16
+ For help about the content of Stack's YAML configuration files, see (for the most recent release of
17
+ Stack) http://docs.haskellstack.org/en/stable/yaml_configuration/.
12
18
```
13
19
14
20
This can be fixed by specifying a resolver, which is the minimal ` stack.yaml ` configuration.
You can’t perform that action at this time.
0 commit comments