Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alert deprecated: Toploop.directive_table #5318

Closed
ddickstein opened this issue Jan 6, 2022 · 1 comment
Closed

Alert deprecated: Toploop.directive_table #5318

ddickstein opened this issue Jan 6, 2022 · 1 comment

Comments

@ddickstein
Copy link
Contributor

I'm running into this error when trying to build my project with dune.

$ dune build -w @runtest @all --terminal-persistence=clear-on-rebuild
Entering directory '/my/project/root'
File "/my/project/root/_build/.dune/default/duniverse/stdlib-shims/src/dune.ml", line 28, characters 14-37:
28 |   Hashtbl.add Toploop.directive_table "require"
                   ^^^^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Toploop.directive_table
File "/my/project/root/_build/.dune/default/duniverse/stdlib-shims/src/dune.ml", line 30, characters 14-37:
30 |   Hashtbl.add Toploop.directive_table "use"
                   ^^^^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Toploop.directive_table
File "/my/project/root/_build/.dune/default/duniverse/stdlib-shims/src/dune.ml", line 34, characters 14-37:
34 |   Hashtbl.add Toploop.directive_table "use_mod"
                   ^^^^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Toploop.directive_table

Specifications

  • Version of dune (output of dune --version): 2.9.1
  • Version of ocaml (output of ocamlc --version): 4.13.0
  • Operating system (distribution and version): Arch Linux 5.15.6-arch2-1

In the short term how can I suppress the warning?

@nojb
Copy link
Collaborator

nojb commented Jan 6, 2022

This has been fixed in #4834, but I believe there is no release yet with it. Otherwise I think the only option is to downgrade the OCaml version to 4.12 where this function is not yet deprecated.

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

No branches or pull requests

2 participants