Jérémie Dimino
c87d8e95e5
Do not build and install shared libs when not supported ( #1165 )
...
Read `ocamlc -where`/Makefile.config to determine whether this is
supported.
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
2018-08-22 14:48:02 +01:00
Anurag Soni
ea0baeb4bc
multi line error highlights
...
Reference: #1131
Signed-off-by: Anurag Soni <anuragsoni.13@gmail.com>
2018-08-21 15:39:26 +02:00
Rudi Grinberg
4c85d058c9
Update CHANGES
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-20 20:07:00 +03:00
Etienne Millon
6fe9ec68c0
Improve error message for `dune utop`
...
Closes #1149
Signed-off-by: Etienne Millon <me@emillon.org>
2018-08-20 13:59:24 +02:00
Etienne Millon
a611205ff8
Initial implementation of `dune fmt`
...
This is a first draft with three main limitations:
- it is language agnostic, so it does not know about field names
- it is not able to parse comments
- it does not break long lines
The formatting rules are pretty simple:
- lists composed only of atoms, quoted strings, templates, and
singletons are displayed on a single line
- other lists are displayed with a line break after each element
- an empty line is inserted between toplevel stanzas
The CLI is pretty light: it can either read a file or standard input,
and fix a file in place. In addition, the command is named
`unstable-fmt` for now, until some guarantees are given.
Closes #940
Signed-off-by: Etienne Millon <me@emillon.org>
2018-08-20 10:21:47 +02:00
Etienne Millon
0603f4fca6
Display actual stanza when package is ambiguous
...
Previously we displayed `(install ...)` in all cases.
Closes #1123
Signed-off-by: Etienne Millon <me@emillon.org>
2018-08-13 13:15:49 +00:00
Etienne Millon
06bc3b1d0c
Highlight error locations
...
This is a simple implementation of an error printer that highlights the
error location with squiggly lines, for example:
File "dune", line 1, characters 14-21:
(copy_files %{read:x}/*)
^^^^^^
The message is not displayed in some cases, like if the file does not
exist, or if the location spans multiple lines.
Signed-off-by: Etienne Millon <me@emillon.org>
2018-08-13 12:51:55 +00:00
Etienne Millon
4f22d32c68
Fix error when copy_files source does not exist
...
Closes #1099
Signed-off-by: Etienne Millon <me@emillon.org>
2018-08-13 12:29:49 +00:00
Jérémie Dimino
1187b3501e
Fix #1116 ( #1118 )
...
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
2018-08-09 12:35:39 +01:00
Rudi Grinberg
ac601f8f48
Update CHANGELOG for 1.1.1
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-08 23:41:29 +03:00
Rudi Grinberg
2899744908
Merge pull request #1114 from diml/envs-and-contexts
...
Fix a bad interaction between `(env ...)` and `(merlin)` in the workspace file
2018-08-08 23:35:00 +03:00
Jeremie Dimino
6a9c32dcb4
Fix bug exposed by previous commit
...
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
2018-08-08 15:54:58 +01:00
Rudi Grinberg
272012ea5c
Update CHANGELOG
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-08 15:07:26 +03:00
Rudi Grinberg
12bf6bda4a
Fix #1107
...
-opaque should be passed for mli only modules or for all modules when opaque
mode is on
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-07 13:05:37 +03:00
Etienne Millon
f5c45a72a8
Do not duplicate profile in missing deps message
...
Closes #1106
Signed-off-by: Etienne Millon <me@emillon.org>
2018-08-07 09:53:34 +00:00
Rudi Grinberg
ecd29a1c81
Update CHANGES
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-07 12:17:17 +03:00
Rudi Grinberg
f74a064aed
Fix #1103
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-07 00:36:27 +03:00
Rudi Grinberg
58d0ccb713
Update CHANGES for 1.1.0
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-06 15:59:18 +03:00
Rudi Grinberg
b3d87dc163
Update CHANGES
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-04 13:22:19 +03:00
Rudi Grinberg
55dbe740c6
Fix typo in CHANGELOG s/qualified/unqalified/
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-02 21:04:38 +02:00
Etienne Millon
7129564d12
Fix placeholders in dune subst documentation
...
They were substituted, leading to confusing documentation.
Signed-off-by: Etienne Millon <me@emillon.org>
2018-08-02 14:30:59 +00:00
Rudi Grinberg
4cbd698527
Update CHANGELOG for -opaque by in dev
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-02 16:23:07 +02:00
Jérémie Dimino
b05e28569e
Add support for staged ppx rewriters such as ones using the typer ( #1080 )
...
Fix #193
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
2018-08-02 12:11:59 +01:00
Jérémie Dimino
282c0b3c41
Add support for multi directory libraries and executables ( #1034 )
...
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
2018-08-01 15:23:26 +01:00
Rudi Grinberg
919c0bc403
Don't use rst syntax in markdown file
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-01 10:07:29 +02:00
Rudi Grinberg
7d0a9c5cff
Update CHANGELOG with optional names entry
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-01 10:07:24 +02:00
Jérémie Dimino
4e15fa1522
Fix #1070 ( #1072 )
...
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
2018-07-31 18:06:17 +01:00
Rudi Grinberg
3e4720e479
CHANGES entry
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-07-31 11:01:08 +02:00
Rudi Grinberg
2836a3c6b0
Document the workspace level env stanza
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-07-30 15:12:17 +02:00
Rudi Grinberg
5683909fc3
Update changelog for 1.0.1
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-07-19 23:47:06 +02:00
Jeremie Dimino
213e093b07
Move back .pp files to the source directory
...
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
2018-07-19 15:59:29 +01:00
Jeremie Dimino
c52d0676e8
Fix #1019
...
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
2018-07-16 14:04:07 +01:00
Jeremie Dimino
dd4994495d
Update changelog
...
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
2018-07-12 14:55:38 +01:00
Rudi Grinberg
630c10edaf
Update CHANGELOG
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-07-11 16:42:33 +02:00
Jeremie Dimino
94608b6f04
Update changelog regarding ${<}
...
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
2018-07-10 16:55:45 +01:00
Jeremie Dimino
6b1046c1ea
Update changelog for 1.0.0
...
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
2018-07-10 15:33:12 +01:00
Jérémie Dimino
d27377166b
Rename %{root} to %{workspace_root} ( #993 )
...
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
2018-07-10 15:08:38 +01:00
Etienne Millon
1d594ce5a3
Fix typos in source code
...
Signed-off-by: Etienne Millon <etienne@cryptosense.com>
2018-07-10 13:05:58 +01:00
Jérémie Dimino
d7222ae1a6
Fix detection of dynamic cycles ( #988 )
...
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
2018-07-10 12:14:40 +01:00
Rudi Grinberg
61c189a6d4
Update CHANGES
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-07-10 01:32:26 +07:00
Rudi Grinberg
b5b0a43554
Update CHANGES
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-07-09 01:15:46 +07:00
Jérémie Dimino
3348b6a913
Adapt the behavior of dune subst for dune projects ( #960 )
...
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
2018-07-08 09:51:16 +01:00
Etienne Millon
35ff6466de
Remove path-no-dep syntax
...
See #944
Signed-off-by: Etienne Millon <etienne@cryptosense.com>
2018-07-04 10:39:57 +02:00
Etienne Millon
628914fe28
Rename path to dep in dune files
...
See #842
Signed-off-by: Etienne Millon <etienne@cryptosense.com>
2018-07-03 15:59:52 +02:00
Jérémie Dimino
e6a5ef9508
Add the lib_root and libexec_root install sections ( #947 )
...
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
2018-07-03 10:49:18 +01:00
Jérémie Dimino
e56fba9a57
Do not use opam-installer to copy files ( #941 )
...
Instead of calling opam-installer, manually parse .install files and copy the files.
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
2018-07-03 10:10:09 +01:00
Jérémie Dimino
438fef915f
Forbid #require in dune files in OCaml syntax ( #938 )
...
And add run_and_read_lines to replace old use cases of Unix.open_process_in
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
2018-07-02 08:17:53 +01:00
Rudi Grinberg
f163f6197a
Merge branch 'master' into rename-build-profile
2018-07-02 13:45:00 +07:00
Rudi Grinberg
5f6e0f658f
Update doc/changes regarding %{profile}
...
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-07-02 12:55:48 +07:00
Jeremie Dimino
9029c61539
Update changelog
...
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
2018-07-01 21:57:17 +01:00