Etienne Millon
a05100db32
Bump the compat to 4.08+
...
Utop supports a wide range of OCaml versions, but this is getting more
difficult to support. In addition, some of the dependencies we use do
not support 4.03-4.07, so utop can not be built on these versions.
2022-07-19 11:38:52 +02:00
Etienne Millon
8c2039543b
Handle Syntaxerr.Removed_string_set
2022-07-19 11:07:42 +02:00
Etienne Millon
2569162157
Compatibility with zed 3.2.0
...
This updates utop to use the uu packages instead of camomile, following
ocaml-community/zed#46 and ocaml-community/lambda-term#109 .
2022-07-05 15:41:25 +01:00
David Allsopp
fbbaec6be8
Support new Load_path.init API
2022-06-09 10:35:44 +01:00
Kate
9fe8b5d838
Get rid of deprecated functions in OCaml 4.13
2021-05-25 21:00:33 +01:00
Christian Pellegrin
243f7a1536
Fix color highlight for errors.
...
The output from the compiler changed and now mentions the line number
(non only the charters, which actually becomes columns). This patch
introduces the idea of a range of lines spanned by an error and
correctly marks the faulty region.
I think a better solution would be to introduce a "point" record of
the form {line:int;column:int}. However, such a change would
reverberate through all the source code and so it is much more
invasive. I can prepare such a patch if desired, after this one, which
fixes the regression.
2021-04-05 08:56:50 +01:00
ZAN DoYe
cea5509294
add #edit_mode_default #edit_mode_vi directives
2020-04-25 23:40:41 +08:00
ZAN DoYe
692b92794d
make the #use_output directive compatible with ocaml >= 4.02
2020-03-25 19:38:17 +08:00
Jeremie Dimino
3f735497d9
Backport the #use_output directive from OCaml 4.11
...
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
2020-03-25 19:38:17 +08:00
ZAN DoYe
5ca427f2d2
compatible with 4.10
2019-12-12 17:02:57 +08:00
Anton Kochkov
ca00ce6146
Remove camlp4 remnants
2019-07-09 11:55:13 -04:00
ZAN DoYe
928bba9896
add get_load_path and set_load_path
2019-05-27 13:49:48 +08:00
ZAN DoYe
97224e635f
remove aux code
2019-05-27 13:49:48 +08:00
ZAN DoYe
ad510daa99
compatible with 4.08
2019-05-27 13:49:48 +08:00
ZAN DoYe
7df33e500a
depend on new zed and lambda-term
2019-05-15 01:11:58 +08:00
Anil Madhavapeddy
3212401775
fix or suppress some warnings in dune dev build mode
2019-01-15 09:50:54 +00:00
ncihnegn
cf8e423f58
Replace deprecated CamomileLibraryDyn with CamomileLibraryDefault for camomile >= 1.0.0
2018-08-29 18:46:43 +01:00
ncihnegn
239e6aad95
Replace deprecated Lwt_sequence with LTerm_dlist
2018-08-29 18:46:43 +01:00
Guillaume Petiot
081e49d882
Make more functions tail-recursive, and use tail-rec List functions ( #251 )
2018-08-23 17:53:07 +01:00
Rudi Grinberg
89c3355a2b
Naive fix for 4.06.0
2017-11-06 18:45:27 +08:00
Jeremie Dimino
1497232d4e
findlib_top --> findlib.top, topkg setup
2017-05-26 14:33:20 +01:00
Fabian
8ed78f2e39
Add command line option to enable implicitly generated bindings
2017-04-28 09:25:39 +01:00
Deokhwan Kim
644278311d
Simplify #if directives
...
UTop does not support OCaml < 4.02 anymore.
2017-04-20 13:55:08 +01:00
Jeremie Dimino
a71455b2fd
Fix directive name
2017-04-11 17:36:56 +01:00
Fabian
4661944155
Add #utop_stash and #utop_save
...
- Strip colour terminal escapes from errors
- Store inputs and outputs seperately in UTop_history
- Add #utop_save, which prints inputs and outputs similar to a simple
prompt
2017-04-11 17:31:58 +01:00
chrismamo1
6b8c78de58
stashing rebased (by chrismamo1)
2017-04-11 17:31:58 +01:00
Jeremie Dimino
4abe1ca311
Topfind.don't_load --> Topfind.don't_load_deeply
...
Since we don't use `ocamlfind ocamlmktop` anymore
2017-04-10 18:13:32 +01:00
Richard Bonichon
f64e9d2e78
Replace handwritten ppf with Format.formatter_of_buffer call
...
- Behavior is identical
- Makes utop forward compatible with merged PR 595 of ocaml trunk
2017-04-05 13:34:41 +01:00
Jérémie Dimino
ba3d278b32
Switch to jbuilder
2017-04-04 13:36:28 +01:00
Peter Zotov
257bfa7eb6
Replace pa_optcomp with cppo.
2014-10-20 16:20:55 +04:00
Maverick Woo
2116ebdcfc
change error message formatting of #require
...
Before:
utop # #require "foo";;
No such package: foo""
After:
utop # #require "foo";;
No such package: foo
The quoted empty string due to %S can be confusing to students.
2014-10-17 11:57:32 -04:00
Jeremie Dimino
50a398744a
handle Syntaxerr.Ill_formed_ast
2014-08-18 11:29:34 +01:00
Jeremie Dimino
8d35b32af0
fix #77
2014-07-28 10:18:45 +01:00
Peter Zotov
1dc2409107
Don't execute all phrases twice on >=4.02 ( fixes #69 ).
2014-05-12 14:25:44 +04:00
Jeremie Dimino
b0795906e5
fix for trunk
2014-05-02 10:58:05 +01:00
Daniel Bünzli
089aed899a
Support for React 1.0.0.
2014-03-27 13:58:45 +01:00
Jeremie Dimino
991ae65caa
make utop work with trunk
2014-02-14 09:53:18 +00:00
Jeremie Dimino
3f5ebae989
more syntax errors
2013-10-25 10:52:05 +01:00
Jeremie Dimino
e4962e3f73
fix #30
2013-08-07 12:35:02 -04:00
Jeremie Dimino
893cd5f327
compile with findlib < 1.4
2013-08-07 12:10:10 -04:00
Jeremie Dimino
5b5839c039
hide topfind messages
2013-08-07 11:57:28 -04:00
Jeremie Dimino
3df2cccf51
change the trick for getting type errors
...
Instead of generating "module (_ : sig end) = struct <phrase> end", we
generate "let _ () = let module _ = struct <phrase> end in ()". This
avoid type errors due to the use of first-class module inside a
functor.
2013-07-15 09:24:18 +01:00
Jeremie Dimino
e02a18b4d7
set the filename in the lexbuf
2013-07-12 12:02:18 +01:00
Jeremie Dimino
589f0707c4
fix UTop.check_phrase
...
The [get_ocaml_error_message] was done after the [Btype.backtrack] in
case of error, causing the type to be displayed incorrectly.
2013-05-21 10:26:59 +01:00
Jérémie Dimino
b721aa054b
fix the split_words function in uTop.ml
2013-05-17 19:39:14 +01:00
Jeremie Dimino
8da5b260fa
add an option to hide the completion bar
2013-04-26 09:53:59 +01:00
Jérémie Dimino
725c6b0327
Merge pull request #8 from benkard/input-multi
...
Add multi-phrase input
2013-04-14 09:51:44 -07:00
Matthias Andreas Benkard
244c6cfe01
Apply maintainer's suggestions.
2013-04-14 13:32:04 +02:00
Jérémie Dimino
e8c1b5f8ca
change the '$' character in the prompt to '#' to match the standard
...
toplevel.
2013-04-05 17:21:50 +01:00
Matthias Andreas Benkard
bef8cb8fed
Add function `parse_use_file`.
2013-04-03 21:21:52 +02:00