Skip to content

Fix compatibility with Cmdliner 1.1.0#371

Merged
Leonidas-from-XIV merged 3 commits intorealworldocaml:mainfrom
Leonidas-from-XIV:cmdliner-1-dot-1
Feb 28, 2022
Merged

Fix compatibility with Cmdliner 1.1.0#371
Leonidas-from-XIV merged 3 commits intorealworldocaml:mainfrom
Leonidas-from-XIV:cmdliner-1-dot-1

Conversation

@Leonidas-from-XIV
Copy link
Copy Markdown
Collaborator

Currently the build fails because of the deprecations. I guess this is a good point to upgrade then.

Since we already depend on OCaml 4.08 depending on Cmdliner 1.1.0 should not be not much of a problem.

Cmdliner 1.1.0 changed a number of things in its API and deprecated the
old way, so to be forward compatible we upgrade our dependency and start
using Cmdliner the new way.
Copy link
Copy Markdown
Contributor

@NathanReb NathanReb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Thanks!

@Leonidas-from-XIV Leonidas-from-XIV merged commit cf176d7 into realworldocaml:main Feb 28, 2022
@Leonidas-from-XIV Leonidas-from-XIV deleted the cmdliner-1-dot-1 branch February 28, 2022 14:34
Leonidas-from-XIV added a commit to Leonidas-from-XIV/opam-repository that referenced this pull request Jan 6, 2023
CHANGES:

#### Added

- Report all parsing errors in Markdown files (realworldocaml/mdx#389, @NathanReb)

#### Changed

- Preserve indentation in multiline OCaml blocks in .mli files (realworldocaml/mdx#395, @panglesd)

#### Fixed

- Fixed compatibility with Cmdliner 1.1.0 (realworldocaml/mdx#371, @Leonidas-from-XIV)
- Report errors and exit codes of toplevel directives (realworldocaml/mdx#382, @talex5,
  @Leonidas-from-XIV)
- Fix block locations in error reporting (realworldocaml/mdx#389, @NathanReb)
- Include the content of the line that features the `part-end` MDX directive in
  the output, before that line would've been dropped (realworldocaml/mdx#374, realworldocaml/mdx#387,
  @Leonidas-from-XIV)
- Handle EINTR signal on waitpid call by restarting the syscall. (realworldocaml/mdx#409, @tmcgilchrist)
- Fix parsing of multiline toplevel phrases in .mli files (realworldocaml/mdx#394, realworldocaml/mdx#397,
  @Leonidas-from-XIV)

#### Removed

- Removed warning about missing semicolons added in MDX 1.11.0 and the
  automatic insertion of semicolons in the corrected files introduced in MDX
  2.0.0. (realworldocaml/mdx#398, @Leonidas-from-XIV)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants