Skip to content

Bug: max-indent = none in .ocamlformat fails #1101

@jberdine

Description

@jberdine

Describe the bug
Adding a max-indent = none line to .ocamlformat leads to a parse failure:

Fatal error: exception ("User Error: malformed .ocamlformat file"
  ("bad value for" (max-indent "invalid value `none', expected an integer")))
Raised at file "src/error.ml" (inlined), line 9, characters 14-30
Called from file "src/error.ml", line 11, characters 19-40
Called from file "src/exn.ml", line 66, characters 8-11
Re-raised at file "src/exn.ml", line 69, characters 6-15
Called from file "src/Conf.ml", line 1904, characters 6-1023
Called from file "list.ml", line 117, characters 24-34
Called from file "src/list0.ml" (inlined), line 22, characters 40-81
Called from file "src/Conf.ml", line 2054, characters 4-45
Called from file "src/Conf.ml", line 99, characters 14-18
Called from file "src/Conf.ml", line 2091, characters 4-61
Called from file "src/Conf.ml", line 2134, characters 20-69

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions