You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the CLI with a directory as input, it failed with the following:
➜ bin ./conjure compile inner-in/ out.json
Exception in thread "main" unacceptable character '' (0x0) special characters are not allowed
in "'reader'", position 0
at com.fasterxml.jackson.dataformat.yaml.snakeyaml.reader.StreamReader.checkPrintable(StreamReader.java:93)
at com.fasterxml.jackson.dataformat.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:192)
at com.fasterxml.jackson.dataformat.yaml.snakeyaml.reader.StreamReader.<init>(StreamReader.java:60)
at com.fasterxml.jackson.dataformat.yaml.YAMLParser.<init>(YAMLParser.java:154)
at com.fasterxml.jackson.dataformat.yaml.YAMLFactory._createParser(YAMLFactory.java:420)
at com.fasterxml.jackson.dataformat.yaml.YAMLFactory.createParser(YAMLFactory.java:306)
at com.fasterxml.jackson.dataformat.yaml.YAMLFactory.createParser(YAMLFactory.java:14)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2691)
at com.palantir.conjure.parser.ConjureParser$RecursiveParser.parseInternal(ConjureParser.java:105)
at com.palantir.conjure.parser.ConjureParser$RecursiveParser.parse(ConjureParser.java:90)
at com.palantir.conjure.parser.ConjureParser.parse(ConjureParser.java:60)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
at com.palantir.conjure.defs.Conjure.parse(Conjure.java:35)
at com.palantir.conjure.cli.ConjureCli.generate(ConjureCli.java:61)
at com.palantir.conjure.cli.ConjureCli.main(ConjureCli.java:40)
At first, it was not at all clear what was going on. After further investigation, I determined that the issue was that the directory contained a .DS_Store file:
➜ bin ls -la inner-in
total 24
drwxr-xr-x 4 nmiyake nmiyake 128 Aug 17 10:26 .
drwxr-xr-x@ 9 nmiyake nmiyake 288 Aug 17 10:26 ..
-rw-r--r--@ 1 nmiyake nmiyake 6148 Aug 17 10:26 .DS_Store
-rw-r--r--@ 1 nmiyake nmiyake 252 Aug 17 10:24 in.conjure.yml
➜ bin rm inner-in/.DS_Store
➜ bin ./conjure compile ./inner-in out.json
2 issues here:
The failure message should include the path of the file that fails to parse
When processing a directory, the CLI should either:
Only include YAML files in the directory (.yml)
Ignore invisible files
The text was updated successfully, but these errors were encountered:
When running the CLI with a directory as input, it failed with the following:
At first, it was not at all clear what was going on. After further investigation, I determined that the issue was that the directory contained a
.DS_Store
file:2 issues here:
.yml
)The text was updated successfully, but these errors were encountered: