ocsigen / ocsigen/tyxml

Uses deprecated Longident.parse

Open
#266 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
OCaml
Stars
179
Forks
63
Avg merge
5h
Merged PRs (30d)
22

Description

With OCaml 4.11 you get this deprecation warning when compiling tyxml. I believe this is causing a fatal build error.

46 |     (Longident.parse @@ implementation i ^ "." ^ s)
          ^^^^^^^^^^^^^^^
Error (alert deprecated): Migrate_parsetree.Ast_405.Longident.parse
this function may misparse its input,
use "Parse.longident" or "Longident.unflatten"

Full build log is here:
https://kojipkgs.fedoraproject.org//work/tasks/3434/43633434/build.log

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Search the codebase for the Longident.parse call shown in the issue, then inspect the surrounding construction of the identifier. Build tyxml with OCaml 4.11 and verify that the deprecated alert and fatal build error no longer occur.

Written by the indexing model from the issue text.

Assessment

Tech stack
ocaml
Domain
compilers
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.