This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,12 @@
Check the error message when using an extension that is not available
at the current language version:
$ dune build
File "dune", line 1, characters 0-5:
1 | (mdx)
^^^^^
Error: 'mdx' is available only when mdx is enabled in the dune-project file.
You must enable it using (using mdx ..) in your dune-project file.
Note however that the currently selected version of dune (1.0) does not
support this plugin. The first version of this plugin is 0.1 and was
introduced in dune 2.4.
[1]

View file

@ -0,0 +1,2 @@
(lang dune 1.2)
(using menhir 2.0)

View file

@ -0,0 +1,11 @@
Test that version of extensions is compatible with dune_lang version
$ dune build
File "dune-project", line 2, characters 14-17:
2 | (using menhir 2.0)
^^^
Warning: Version 2.0 of the menhir extension is not supported until version
1.4 of the dune language.
Supported versions of this extension in version 1.2 of the dune language:
- 1.0

View file

@ -0,0 +1,2 @@
(lang dune 2.5)
(using menhir 4.0)

View file

@ -0,0 +1,13 @@
TODO $ dune build Should raise an error and not a warning as in
version-mismatch.t
$ dune build
File "dune-project", line 2, characters 14-17:
2 | (using menhir 4.0)
^^^
Error: Version 4.0 of the menhir extension is not supported.
Supported versions of this extension in version 2.5 of the dune language:
- 1.0 to 1.1
- 2.0 to 2.1
[1]

View file

@ -0,0 +1,2 @@
(lang dune 1.2)
(using menhir 4.0)

View file

@ -0,0 +1,9 @@
$ dune build
File "dune-project", line 2, characters 14-17:
2 | (using menhir 4.0)
^^^
Error: Version 4.0 of the menhir extension is not supported.
Supported versions of this extension in version 1.2 of the dune language:
- 1.0
[1]