Rudi Grinberg
b76211b916
Capitalize module names in errors messages
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-09-04 15:26:29 +04:00
Rudi Grinberg
fbc0284132
Introduce Module.Name_map.t alias
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-09-04 15:22:15 +04:00
Rudi Grinberg
f899e7be05
Remove unnecessary boilerplate for accumulating errors
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-09-04 15:22:15 +04:00
Rudi Grinberg
8c41bdc8d2
Create a dedidcated collection type for errors
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-09-04 15:22:15 +04:00
Rudi Grinberg
7663117075
Replaces uses of List.hd with pattern matching
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-09-04 15:22:15 +04:00
Rudi Grinberg
cf86781ad2
Add tests for all permutations of virtual modules field
...
All permutations of:
* presence of implementation
* presence in virtual_modules
* presence in modules_without_implementation
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-09-04 15:22:15 +04:00
Rudi Grinberg
15e06f8008
Add test for invalid virtual libraries
...
Specifically, the virtual module listed already has an implementation
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-09-04 15:22:15 +04:00
Rudi Grinberg
ccc972676d
Interpret virtual modules field
...
Check that it doesn't overlap with other fields and signal appropriate errors
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-09-04 15:22:15 +04:00
Louis Roché
7d12034741
emacs: cleanup dune package
...
- Fix description of the package
- Run `checkdoc`
- Run `package-lint`
- Remove non necessary `:group` in defcustom
Signed-off-by: Louis Roché <louis@louisroche.net>
2018-09-04 10:49:53 +01:00
Rudi Grinberg
a61a2c8cd8
Merge pull request #1210 from rgrinberg/wrapped-virtual
...
Enforce wrapped true for virtual libs/implementations
2018-09-04 00:49:59 +04:00
Rudi Grinberg
61d8a597a0
Disable wrapped for implementations
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-09-03 16:39:20 +04:00
Rudi Grinberg
ea72649311
Enforce wrapped true for virtual libs/implementations
...
This is useful to enforce because it lets us check for the wrapped propertyy without having to
look up virtual libraries of implementations.
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-09-03 16:29:23 +04:00
Rudi Grinberg
daac91da82
Merge pull request #1213 from rgrinberg/lib-deps
...
Move SC.Libs to own module
2018-09-03 16:28:19 +04:00
Rudi Grinberg
baf8852e4c
Rename Lib_deps to Lib_file_deps
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-09-03 16:25:34 +04:00
Rudi Grinberg
5bd510543d
Encapsulate the -and- separator in lib_deps
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-09-03 16:25:34 +04:00
Rudi Grinberg
0ebad2d50f
Move functions that operate on more than 1 module to Lib_deps.L
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-09-03 16:25:34 +04:00
Rudi Grinberg
e47987a670
Move library glob handling to own module
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-09-03 16:25:34 +04:00
Rudi Grinberg
ede1487d04
Merge pull request #1209 from rgrinberg/lib-info-mod
...
Move Lib.Info to own module
2018-09-03 16:23:04 +04:00
Rudi Grinberg
7f306e3504
Simplify a pattern match with Result.is_ok?
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-09-03 16:21:49 +04:00
Rudi Grinberg
16d257db9c
Move Lib.Info to own module
...
This will be useful when this module will expand to cover more installation needs
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-09-03 16:16:18 +04:00
Rudi Grinberg
7ae939313b
Merge pull request #1214 from rgrinberg/result-list-map
...
Simplify some Result.List.all
2018-09-03 16:11:17 +04:00
Rudi Grinberg
68f4147869
Simplify some Result.List.all
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-09-03 16:01:46 +04:00
Etienne Millon
b41f132fb0
Merge pull request #1203 from ocaml/always-display-file-number
...
Always display the line number in file excerpts
2018-09-03 10:18:15 +02:00
Etienne Millon
46338d109c
Always display the line number in file excerpts
...
Signed-off-by: Etienne Millon <me@emillon.org>
2018-09-03 09:54:29 +02:00
Etienne Millon
8dbfd668e9
Merge pull request #1168 from anuragsoni/error-more-than-10-lines
...
Truncated view for blocks longer than 10 lines
2018-09-03 09:45:22 +02:00
Anurag Soni
81797f86cc
Truncated view for blocks longer than 10 lines
...
Signed-off-by: Anurag Soni <anuragsoni.13@gmail.com>
2018-09-03 09:26:50 +02:00
Rudi Grinberg
6657247897
Merge pull request #1193 from rgrinberg/virtual-disable-archives
...
Disable archives for virtual libraries
2018-09-01 10:54:03 +03:00
Rudi Grinberg
918ae9ab0a
Disable archives for virtual libraries
...
And refactor the archive building to allow for external o files to be provided
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-09-01 10:53:30 +03:00
Rudi Grinberg
6da1f199f7
Merge pull request #1188 from rgrinberg/wrapped-transition
...
Fix #985
2018-08-31 19:12:16 +03:00
Rudi Grinberg
add287f864
Merge pull request #1199 from aantron/patch-1
...
Fix typo in Configurator docs
2018-08-31 19:07:16 +03:00
Rudi Grinberg
3c89b6c131
Require dune lang 1.2 for transitioning wraps
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-31 19:05:17 +03:00
Rudi Grinberg
18abaa7def
Simplify code using Module.dir
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-31 19:05:17 +03:00
Rudi Grinberg
28b311cf95
Clarifying comment about appending wrapped compat modules
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-31 19:05:17 +03:00
Rudi Grinberg
8449b46bc1
Fix tests
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-31 19:05:17 +03:00
Rudi Grinberg
96e3448228
Add documentation and change log entry
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-31 19:05:17 +03:00
Rudi Grinberg
868ecbc632
Change deprecated modules in a separate directory
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-31 19:04:48 +03:00
Rudi Grinberg
ba1b3f8d24
Set intf to None
...
deprecated modules don't really have interfaces
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-31 19:04:48 +03:00
Rudi Grinberg
161ca64030
Add Cm_kind.to_sexp conversion
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-31 19:04:48 +03:00
Rudi Grinberg
366c102aa0
Add .mli to one of transitioned modules
...
Somehow this removes the deprecation
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-31 19:04:48 +03:00
Rudi Grinberg
dfd3b1083c
Handle case when module alias exists
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-31 19:04:48 +03:00
Rudi Grinberg
c8970ab977
Change terminology to wrapped_compat
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-31 19:04:48 +03:00
Rudi Grinberg
f47834d80b
Add modules_without_implementation example to wrapped transition mode
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-31 19:04:48 +03:00
Rudi Grinberg
8acca614da
Use dedicated compilation context for deprecated modules
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-31 19:04:48 +03:00
Rudi Grinberg
d0b937c25e
Use proper sum type wrapped.t
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-31 19:04:48 +03:00
Rudi Grinberg
f9ad608e8c
Fix deprecation attribute for transition modules
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-31 19:04:48 +03:00
Rudi Grinberg
492286ba12
Don't hardcode the transition message to be date based
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-31 19:04:48 +03:00
Rudi Grinberg
d1d7672e96
wrapped transition mode
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-31 19:04:48 +03:00
Etienne Millon
2cd796f405
Merge pull request #1196 from ocaml/fix-1173
...
When there are extra parentheses, display the exn
2018-08-31 17:59:20 +02:00
Anton Bachin
f44b83f23b
Fix typo in Configurator docs
...
Signed-off-by: Anton Bachin <antonbachin@yahoo.com>
2018-08-31 10:56:37 -05:00
Etienne Millon
f8f9db2d9c
When there are extra parentheses, display the exn
...
Dune tries to be helpful when there are extra parentheses, but sometimes
it is a bit too eager. This wraps the exception so that the original one
is displayed.
Closes #1173
Closes #1181
Signed-off-by: Etienne Millon <me@emillon.org>
2018-08-31 17:05:06 +02:00