Commit Graph

2503 Commits

Author SHA1 Message Date
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
Etienne Millon 6fbb93d086 Move the "try: " part to hints themselves
Signed-off-by: Etienne Millon <me@emillon.org>
2018-08-31 17:04:22 +02:00
Etienne Millon 7c0a9a84ba Refactor Report_error module
- make `printer` type abstract
- make a builtin printer

Signed-off-by: Etienne Millon <me@emillon.org>
2018-08-31 17:04:22 +02:00
Rudi Grinberg 7cd183877e
Merge pull request #1202 from rgrinberg/lib-info-abstract
Make Lib.Info.t abstract
2018-08-31 17:27:45 +03:00
Rudi Grinberg b01c22f9b7 Make Lib.Info.t abstract
It's not used outside the Lib module anyway

Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-31 15:43:38 +03:00
Rudi Grinberg 6dedc68186
Merge pull request #1197 from rgrinberg/install-rules-virtual-libs
Adjust install files for virtual libraries
2018-08-31 13:51:26 +03:00
Jérémie Dimino 5cad714100
Promote a subset of the files + emacs integration (#1192)
- add support for promoting a selected list of files
- add an emacs mode with helpers for promoting the correction for the current buffer

Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
2018-08-31 11:12:49 +01:00
Jérémie Dimino d8e474c716
Fix preprocessing action in src/dune (#1200)
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
2018-08-31 10:58:28 +01:00
Rudi Grinberg 1ded621dc7 Install c/cxx stubs for virtual libraries
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-30 14:36:03 +03:00
Rudi Grinberg 44ca7f0bbf Adjust installed artifacts for virtual libraries
* Virtual libraries do not install archive files
* Virtual libraries should install .o files

Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-30 14:24:04 +03:00