Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge in upstream main for 5.2 merge #82

Merged
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
379 commits
Select commit Hold shift + click to select a range
c997578
[B] Add a CI that check compatibility with ocaml-lsp (#1614)
voodoos Aug 24, 2023
2bf0c2e
wip: add a small utility script to diff and apply patches
voodoos Apr 14, 2023
359ed5b
Copy upstream files at 5.1
voodoos Apr 14, 2023
e215a13
Apply changes to vendored compiler
voodoos Apr 17, 2023
84ca5db
Bump opam files to 5.1
voodoos Apr 17, 2023
7f00508
Add a changelog entry
voodoos Apr 18, 2023
9b0fd0b
Prepare CI for 5.1
voodoos Jun 9, 2023
4276155
Prepare for release 4.11-501
voodoos Sep 21, 2023
daf31ee
Disable windows CI until Opam 2.2 is out :finger-crossed:
voodoos Nov 8, 2023
4012a91
Add test illustrating #1703
voodoos Nov 21, 2023
742f484
Add `-cmi-file` to the ignored flags. Fixes #1703
voodoos Nov 21, 2023
80a6f5c
Add change entry for 11710
voodoos Nov 21, 2023
419becf
Pull latest changes from upsteam
voodoos Nov 27, 2023
95dc450
Merge upstream changes to the vendored typer
voodoos Nov 27, 2023
7b0dcd6
Use compiler-libs' compression for read cmi and cmt files
voodoos Nov 27, 2023
3713299
Bump minimal OCaml version
voodoos Nov 27, 2023
13e55cd
Update changelog
voodoos Dec 1, 2023
4640531
upstream: fetch latest changes from 5.2 branch.
voodoos Feb 5, 2024
1c4064f
fix auto-patcher
voodoos Feb 5, 2024
36ff3d4
typer: merge upstream changes into vendored typer
voodoos Feb 5, 2024
1711442
upgrade: adapt to small changes in the typer
voodoos Feb 5, 2024
f1e2ceb
upgrade: support for hidden dependencies
voodoos Feb 5, 2024
80f29ff
Use new iterator to perform locate and occurrences
voodoos Feb 7, 2024
dc39730
Build with new Texp_function nodes
voodoos Feb 7, 2024
ee8c43e
config: bump magic number
voodoos Feb 7, 2024
840a50e
shape_reduce: fix late usage of local_store
voodoos Feb 7, 2024
6a865dd
tests: promote improved tests
voodoos Feb 7, 2024
f94393b
opam: bump required ocaml version
voodoos Feb 7, 2024
92d32b7
construct: handle function arity better
voodoos Feb 8, 2024
86c411e
tests: new function recovery test with 5.1 output
voodoos Feb 8, 2024
5d37374
tests: more expected function recovery
voodoos Feb 9, 2024
1fcb58a
functions: add uid to [Texp_newtype'] nodes
voodoos Feb 9, 2024
f67393c
env_lookup: log in all cases
voodoos Feb 12, 2024
5dd0291
destruct: add test for fun. param. case analysis
voodoos Feb 12, 2024
aedc47d
tests: more updates
voodoos Feb 14, 2024
dcfa0dd
tests: test for fun recovery saved parts
voodoos Feb 14, 2024
0903757
squash: commit change to handle newtype'
voodoos Feb 14, 2024
4beafb6
parser: remove old lwt extension
voodoos Feb 14, 2024
fca9b6e
Try to restore function recovery
voodoos Feb 14, 2024
069261b
tests: promote changes
voodoos Feb 14, 2024
861388e
printtyped: expose expression printing
voodoos Feb 16, 2024
192658b
tests: push test changes with remaining FIXMEs
voodoos Feb 16, 2024
5358cf5
destruct: wip: stop raising when called on function parameters
voodoos Feb 16, 2024
729a8cc
Prepare for preview release
voodoos Feb 16, 2024
4ab50e8
recovery: fix issue with function recovery
voodoos Feb 19, 2024
3a0f31b
tests: more function recovery test
voodoos Feb 19, 2024
b9a727d
recovery: fix erroneous type repr
voodoos Feb 19, 2024
fce3c27
test: promote improvements in testsuite
voodoos Feb 19, 2024
32378c2
occurrences: refactor and remove code related to project-wide occurre…
voodoos Feb 19, 2024
8cd46cb
occurrences: introduce a cache for the index
voodoos Feb 20, 2024
1bd0d88
index: remove unused index_format
voodoos Feb 22, 2024
3b4d0d9
index: re-add missing function
voodoos Feb 22, 2024
f7512b2
occurrences: use the cache, Luke !
voodoos Feb 29, 2024
dbdd17d
shapes: don't read_back entire modules in alias case
voodoos Mar 1, 2024
e75c892
upstream: pull changes from ocaml/ocaml
voodoos Apr 15, 2024
bce24e5
Merge changes in vendored typer and update analysis
voodoos Apr 16, 2024
a12d6a9
Test case and changelog for #1739
xvw Apr 8, 2024
fbaa902
Refactor `destruct`
xvw Apr 8, 2024
9ac6228
Fix #1739: destruct in function arguments
xvw Apr 8, 2024
a62af42
Additional tests using 1-elt sum/record
xvw Apr 9, 2024
881892e
Add more bunch of test and remove old FIXME
xvw Apr 10, 2024
8ac60d0
Externalize `included_in` for location overlapping
xvw Apr 12, 2024
4cd85fc
Add labeled argument for `Location_aux.included`
xvw Apr 15, 2024
91c05c7
Fix a typo in lexer_raw
voodoos Apr 26, 2024
c2d0346
hidden_path: use distinct source and build paths
voodoos Apr 26, 2024
5d4a662
Attempt to please ocaml-ci
voodoos Apr 30, 2024
fb5ffad
hidden path: change H -> BH and SH in dot_merlin_reader
voodoos Apr 30, 2024
3b78aa8
Small refactors, added documentation and tests update
voodoos May 2, 2024
1850cbe
occurrences: do not attempt to shrink the selection of idents that ne…
voodoos May 2, 2024
2ce5d3c
hidden_deps: test showing multiple issues
voodoos May 2, 2024
9374eae
hidden_deps: fix new load_path init function
voodoos May 2, 2024
3532f9e
hidden_deps: add hidden paths to source and cmt paths
voodoos May 2, 2024
57f704b
hidden_deps: show that the dep is hidden in the test
voodoos May 2, 2024
fb180ed
syntax_doc: adapt to new function repr
voodoos May 2, 2024
e8c91f8
fix pprintast exports after rebase
voodoos May 2, 2024
ee41c4d
promote slight test improvement
voodoos May 2, 2024
5e9eab2
Pull latest changes from upstream
voodoos May 3, 2024
477132d
Apply patches to internal compiler
voodoos May 3, 2024
48abbf4
Add changelog entry for #1757
voodoos May 3, 2024
1d3e934
Re-enable ppx tests
voodoos May 3, 2024
6f85342
tests: remove staled fixme
voodoos May 3, 2024
aafec74
fix regression with parser error labelling
voodoos May 3, 2024
cde4ea9
hidden path: also use for ppxes and Path_list
voodoos May 6, 2024
b5fe8d7
tests: more hidden path tests
voodoos May 6, 2024
12ce61c
Lint `fuzzy-ci.yml`
xvw May 10, 2024
bcf73f3
Update `MERL_AN_SHA` enabling strip-location
xvw May 10, 2024
9afb036
Merge pull request #1762 from xvw/update-fuzzy-ci
pitag-ha May 10, 2024
082a1ac
refactor: extract identifier parsing from query commands
voodoos May 13, 2024
77d00e4
locate: fix alias traversal
voodoos May 13, 2024
a1547db
test: promote
voodoos May 13, 2024
02959ba
occ: improve handling of paths in current buffer
voodoos May 13, 2024
11bc49a
Remove old occurrences code
voodoos May 13, 2024
7af8695
Merge pull request #1757 from voodoos/502
voodoos May 13, 2024
8388ef6
Extract `commands` of new protocol in `merlin-lib`
xvw May 6, 2024
46e4faf
Add change entry
xvw May 13, 2024
25bb400
Merge pull request #1758 from xvw/tunneling-merlin-lsp-p1-split-protocol
voodoos May 13, 2024
c42e0cb
Restore merging of cmi and cmt paths
voodoos May 13, 2024
5137ef4
Promote test result showing the issue
voodoos May 16, 2024
f82fd9f
Implement suggested changes
voodoos May 16, 2024
5ba620f
Add repo organisation introduction
voodoos May 16, 2024
81947a9
Fix typo
voodoos May 16, 2024
fa9b391
Merge pull request #1752 from voodoos/contributing
voodoos May 16, 2024
4d5560e
Do not traverse `merlin.hide` nodes when iterating
voodoos May 16, 2024
e5bb711
Add changelog for #1768
voodoos May 16, 2024
6b5fe77
Merge pull request #1768 from voodoos/occurrences-in-ppxes
voodoos May 17, 2024
abe7d40
nix: Build with OCaml 5.2
Julow May 16, 2024
4c2412d
nix: Use the current merlin in 'nix develop'
Julow May 16, 2024
2ac4c23
test: make test reproducible
voodoos May 17, 2024
4fccc83
Merge pull request #1769 from Julow/nix-ocaml-52
voodoos May 17, 2024
e46a484
Use compat branch in lsp compat check
voodoos May 17, 2024
94dea9d
Merge pull request #1771 from voodoos/fix-lsp-ci
voodoos May 17, 2024
df27557
Revert: remove raparsing of longident to index modules in paths
voodoos May 17, 2024
df63ca4
Merge pull request #1772 from voodoos/remove-mod-in-paths-hack
voodoos May 17, 2024
466f83e
ci: use ocaml 5.2 in benchmark CI
voodoos May 17, 2024
ccf3714
Add a test showing issue when looking for some doc
voodoos May 17, 2024
56aea6e
Use the new uid_to_decl table in 52 to locate doc
voodoos Apr 30, 2024
2080e3c
Add a changelog entry for #1773
voodoos May 17, 2024
be597d5
Merge pull request #1773 from voodoos/get-doc-of-decl
voodoos May 17, 2024
a7e8e6e
Prepare release 5.0
voodoos May 17, 2024
617a91d
Upgrade dune to 3.0 and fix warnings
voodoos May 13, 2024
e34f5ff
index: add new configuration directive
voodoos Feb 22, 2024
dd23fbd
config: handle SOURCE_ROOT directive
voodoos May 23, 2024
34e2688
occurrences: add support for project-wide occurrences
voodoos Feb 22, 2024
a34cc1c
[emacs] handle project-wide-occurrences in occur-mode
voodoos Feb 23, 2024
2dfa1fc
Add changelog entry for #1766
voodoos May 14, 2024
bd900fd
Merge pull request #1766 from voodoos/502+PWO
voodoos Jun 4, 2024
e13db17
config: use unit_name info from reader
voodoos Jun 4, 2024
0dff10e
Merge pull request #1776 from voodoos/502+PWO++UNIT
voodoos Jun 4, 2024
1577d8f
refactor: properly define mtyper cache type
voodoos Jun 3, 2024
a4bb508
occurrences: incrementally index the buffer in Mtyper
voodoos Jun 3, 2024
dd4312e
Add changelog for #1777
voodoos Jun 4, 2024
97564e2
Vim: Insert Python path at the front
Julow Apr 19, 2024
070d8d4
Vim: Support project wide occurrences
Julow Apr 19, 2024
aa54b9f
Vim: Refactor: Separate vim record formatting
Julow Apr 22, 2024
5ae2824
Vim: Occurrences: Text preview in the current file
Julow Apr 23, 2024
308e17d
Vim: Occurrences: Don't crash on incomplete result
Julow Apr 23, 2024
cc33be2
Vim: Occurrences: Add text previews
Julow Apr 23, 2024
db463ee
Add changelog entry for #1767
voodoos Jun 4, 2024
9e8a1e1
Merge pull request #1767 from Julow/vim_projectwideoccurrences_m
voodoos Jun 4, 2024
db9ea11
Merge pull request #1777 from voodoos/502+PWO++UNIT+INCR
voodoos Jun 4, 2024
bb54e4c
merlin-lib.commandsmerlin.commands: Add a `find_command_opt`
voodoos Jun 10, 2024
3df384a
Add changelog entry for #1778
voodoos Jun 10, 2024
a5c7b4d
Merge pull request #1778 from voodoos/find-command-opt
voodoos Jun 10, 2024
29e6260
Add a document describing the release procedure
voodoos Jun 10, 2024
139272e
Correctly identify which locs are in the current buffer
voodoos Jun 10, 2024
a0dbfb2
occ: add a test showing clashes between mli and ml uids
voodoos Jun 10, 2024
38c28f2
occ: do no return PWO for definitions in a mli
voodoos Jun 10, 2024
6376360
Add changelog entry for #1781
voodoos Jun 10, 2024
33bbcdb
Merge pull request #1781 from voodoos/occ-clash-ml-mli
voodoos Jun 10, 2024
5658dd8
format: add optional root_directory
voodoos Jun 5, 2024
f12b7d8
Disable benchmark until merl-an compatibility is restored
voodoos Jun 11, 2024
5426a23
Disable benchmarks until merl-an is rea-dy.
voodoos Jun 11, 2024
1f3f8eb
Revert restoration of the dockerfile
voodoos Jun 11, 2024
f42b910
Use a dummy dockerfile to deactivate the benchmarks
voodoos Jun 11, 2024
1ed529e
Add test showing issue with unstable uids
voodoos Jun 10, 2024
bc794bf
Reset uid counter when restoring the typer's state
voodoos Jun 10, 2024
1cf79be
Add a change entry for #1779
voodoos Jun 10, 2024
42bda3d
Update tests and prevent them from running
voodoos Jun 11, 2024
064900d
bench: add a dummy makefile target
voodoos Jun 11, 2024
dd625e6
Merge pull request #1779 from voodoos/reset-uid-counter
voodoos Jun 11, 2024
af14a1f
test: add test showing issue with at origin occurrences
voodoos Jun 17, 2024
7bd03f0
Better context inference
voodoos Jun 17, 2024
ce84ce9
Add changelog entry for #1785
voodoos Jun 17, 2024
21b9f1d
ci: update nix flake
voodoos Jun 17, 2024
b602e95
Merge pull request #1785 from voodoos/at-origin-occurrences
voodoos Jun 17, 2024
5b96c62
Fix crashing when logging lid
voodoos Jun 5, 2024
08b18cb
pkg: make merlin depend on ocaml-index
voodoos Jun 10, 2024
58eaadb
Update changelog
voodoos Jun 11, 2024
cda498e
ci: Pin ocaml-index
voodoos Jun 11, 2024
1e934d6
Prepare changelog for release 5.1
voodoos Jun 18, 2024
ce00b5b
Merge pull request #1784 from voodoos/occ-tweaks
voodoos Jun 18, 2024
cb1bf03
Create test
liam923 Jun 19, 2024
81b01f6
Fix UNIT_NAME bug
liam923 Jun 19, 2024
093d48a
Add WRAPPING_PREFIX directive
liam923 Jun 19, 2024
7350363
Move UNIT_NAME and WRAPPING_PREFIX to pass_forward
liam923 Jun 20, 2024
9b9fc49
Update changelog
liam923 Jun 20, 2024
baf5a06
Undo accidentally committed change to merlin.opam
liam923 Jun 20, 2024
1c59eda
Move changelog entry to new section
voodoos Jun 20, 2024
b6ff2d4
Merge pull request #1788 from liam923/wrapping-prefix
voodoos Jun 20, 2024
923ddf7
Remove ocaml-index pin-dependency
voodoos Jul 1, 2024
68fdaf4
Update ocaml/setup-ocaml to v3 (#1791)
smorimoto Jul 2, 2024
d5bc15a
Move ocaml index (#1793)
voodoos Jul 5, 2024
3bab2f7
Add test for #1794
xvw Jul 8, 2024
f17f3cf
Fix #1794
xvw Jul 8, 2024
2fc7e2f
Add CHANGE entry for #1794
xvw Jul 8, 2024
68c5d3c
Mention both PR and issue # in changlelog
voodoos Jul 8, 2024
ec6d2fb
Merge pull request #1795 from xvw/fix-1794
voodoos Jul 8, 2024
ea30d3f
Warn about default branch renaming in readme
voodoos Jul 11, 2024
9e0c47b
merlin.py: fix python-3.12 Syntax warnings
paparodeo Jul 12, 2024
ce1f62f
Add changelog entry for #1798
paparodeo Jul 12, 2024
ce92495
Merge pull request #1798 from paparodeo/vim-plugin-fix
voodoos Jul 12, 2024
bb7d320
vim: remove references to MerlinPhrase
paparodeo Jul 20, 2024
74be9c0
Ignore new Menhir deprecations
voodoos Jul 24, 2024
f12a7c6
Merge pull request #1806 from voodoos/menhir-compat
voodoos Jul 24, 2024
853dd0e
Reproduce issue #1335
voodoos Nov 7, 2022
c303f34
Tests for issues #1335 and #1755
voodoos Jul 24, 2024
754f0e4
Add changelog entry for #1804
paparodeo Jul 25, 2024
d16805d
Merge pull request #1804 from paparodeo/vim-merlin-phrase
voodoos Jul 26, 2024
be6fc3b
Add test for #1770
xvw Jul 16, 2024
55bc11b
Fix #1770
xvw Jul 16, 2024
5c67022
Add CHANGE entry for #1770
xvw Jul 25, 2024
0f54748
Merge pull request #1800 from xvw/fix-1770
voodoos Jul 26, 2024
0b80059
Check always that default args are option
xvw Jul 29, 2024
94ff960
Merge pull request #1807 from xvw/1770-follow-up
voodoos Jul 29, 2024
581242e
Merge pull request #1805 from voodoos/type-enclosing-from-inside-rec-…
voodoos Jul 29, 2024
7daecb2
Fix ignorance of STDLIB in .merlin
liam923 Jul 17, 2024
84c87dc
Modify postprocess instead
liam923 Jul 25, 2024
f40096e
Add test for -ocamllib-path flag
liam923 Jul 29, 2024
42a1fd8
[DMR] Merge pull request #1803 from liam923/config-stdlib
voodoos Jul 30, 2024
9fa77db
[New Command] Expand PPX nodes (#1745)
PizieDust Aug 2, 2024
6b3f6af
Commit conflicts
ncik-roberts Aug 14, 2024
240f8aa
Commit v2 of conflicts
ncik-roberts Aug 14, 2024
ac53d63
Fix conflicts
ncik-roberts Aug 14, 2024
d86dcf0
Remove file that we deleted internally (related to immediacy)
ncik-roberts Aug 15, 2024
0b0a90e
Fix tests
ncik-roberts Aug 15, 2024
43f86d0
Merge branch 'merge-with-flambda-backend-5.2-merge' into merge-with-u…
ncik-roberts Aug 15, 2024
bc24e85
Promote tests
ncik-roberts Aug 15, 2024
150f787
Disable test that happens to fail for us (both before and after merge)
ncik-roberts Aug 15, 2024
72e140d
Add comments about -H
ncik-roberts Aug 16, 2024
65b4861
Require commit for `import-ocaml-source.sh` (#84)
ncik-roberts Aug 16, 2024
66a7302
Merge 5.1.1minus 21 (#85)
liam923 Aug 16, 2024
da20446
Revert menhir to 20210419 (#86)
liam923 Aug 19, 2024
fa2103a
Fix conflicts
ncik-roberts Aug 21, 2024
7928450
Merge with origin/main; commit conflicts
ncik-roberts Aug 21, 2024
bd5848e
Fix conflicts
ncik-roberts Aug 21, 2024
a7c5952
Revert upstream directory to actual contents of 5.2 branch
ncik-roberts Aug 21, 2024
2172c9e
Feedback from review
ncik-roberts Aug 22, 2024
9069366
More feedback from review
ncik-roberts Aug 22, 2024
0f3f54e
Feedback from review
ncik-roberts Aug 22, 2024
6796198
Revert changes to .github directory
ncik-roberts Aug 23, 2024
b4dfe7b
Merge branch 'merge-with-upstream-merlin-5.2' into merge-with-upstrea…
ncik-roberts Aug 23, 2024
dd9298b
Revert magic numbers to 1999
liam923 Aug 28, 2024
adde7b4
Add ocaml-index tests using cms files and add `-H` flag (#88)
liam923 Aug 29, 2024
1c69b31
Make shape reduction use shapes from read files (#90)
liam923 Aug 30, 2024
ea80313
Add `UNIT_NAME_FOR` directive (#89)
liam923 Aug 30, 2024
d6f7dff
Update for minus-23 (#92)
goldfirere Sep 11, 2024
f2d76e5
Undo changes in construct (#93)
liam923 Sep 17, 2024
2dfe831
Merge 5.1.1minus 24 (#97)
liam923 Sep 20, 2024
5ec7e73
Import ocaml sources for ocaml-flambda/flambda-backend@cbc35f98fe
ncik-roberts Sep 20, 2024
3a3514f
Commit conflicts
ncik-roberts Sep 20, 2024
ddbcbe6
Fixes to conflicts + fixes to build errors
ncik-roberts Sep 20, 2024
c770a76
Merge with main and commit conflicts
ncik-roberts Sep 20, 2024
c97efa3
Fix conflicts
ncik-roberts Sep 20, 2024
d5ec8fb
Fix base rev
ncik-roberts Sep 20, 2024
4b0da50
Import ocaml sources for ocaml-flambda/flambda-backend@cbc35f98fe
ncik-roberts Sep 20, 2024
5ad6e89
Reduce divergence in jkind_axis.ml and jkind_types.ml
liam923 Sep 20, 2024
3fc45a9
Undo reversion from merge
ncik-roberts Sep 23, 2024
5f24d8c
Merge branch 'merge-with-upstream-merlin-round-2-of-conflict-fixing' …
ncik-roberts Sep 23, 2024
905745c
Merge pull request #87 from janestreet/merge-with-upstream-merlin-rou…
ncik-roberts Sep 23, 2024
a2607a0
Fix conflicts in autogenerated file
ncik-roberts Sep 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
<<<<<<< HEAD
||||||| 7b73c6aa3f
merlin NEXT_VERSION
===================

+ merlin binary
- Fix a follow-up issue to the preference of non-ghost nodes introduced in #1660 (#1690, fixes #1689)
+ editor modes
- vim: load merlin when Vim is compiled with +python3/dyn (e.g. MacVim)

=======
unreleased
==========

Expand Down Expand Up @@ -109,7 +98,6 @@ Fri Dec 1 15:00:42 CET 2023
- vim: load merlin when Vim is compiled with +python3/dyn (e.g. MacVim)
- emacs: highlight only first error line by default (#1693, fixes #1663)

>>>>>>> upstream/main
merlin 4.12
===========
Tue Sep 26 17:45:42 CEST 2023
Expand Down Expand Up @@ -234,7 +222,6 @@ Fri Feb 24 16:55:42 CEST 2023
xref recognises operators and binding operators at the cursor position;
bad locations are filtered out (#1385, fixes #1410, @mattiase)
+ test suite
- Add a test for incorrect alert defaults (#1559)
- Add multiple tests for locate over ill-typed expressions (#1546)
- Add non-regression tests for other fixes in this release
- Add a test for incorrect alert defaults (#1559)
Expand All @@ -249,16 +236,6 @@ Thu Dec 13 11:49:42 CEST 2022
fixes #1518)
- Mark some C variables as unused to remove warnings (#1541, @antalsz)

merlin 4.7.1
==========
Thu Dec 13 11:49:42 CEST 2022

+ merlin binary
- Restore compatibility with the compiler's command line by accepting
the `-safe-string` flag as a no-op instead of rejecting it. (#1544,
fixes #1518)
- Mark some C variables as unused to remove warnings (#1541, @antalsz)

merlin 4.7
==========
Thu Nov 24 17:49:42 CEST 2022
Expand Down
10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,19 +192,9 @@ If you're a Merlin user and depend on our public API, we recommend that you cont
Next Steps
==========

<<<<<<< HEAD
To use Merlin with a multi-file project, it is necessary to have a [.merlin](https://github.com/ocaml/merlin/wiki/project-configuration) file
unless your project is built using dune.
Note that, in a project using Dune, user-created `.merlin` files will take precedence over the configuration provided by Dune to Merlin.
||||||| 7b73c6aa3f
To use Merlin with a multi-file project, it is necessary to have a [.merlin](https://github.com/ocaml/merlin/wiki/project-configuration) file,
unless your project is built using Dune.
Note that, in a project using Dune, user-created `.merlin` files will take precedence over the configuration provided by Dune to Merlin.
=======
To use Merlin with a multi-file project, it is necessary to have a [.merlin](https://github.com/ocaml/merlin/wiki/project-configuration) file,
unless your project is built using Dune.
Note that, in a project using Dune, user-created `.merlin` files will take precedence over the configuration provided by Dune to Merlin.
>>>>>>> upstream/main

Read more in the [wiki](https://github.com/ocaml/merlin/wiki) to learn how to make full use of Merlin in your projects.

Expand Down
72 changes: 0 additions & 72 deletions bench.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,73 +1 @@
<<<<<<< HEAD
FROM ocaml/opam:debian-11-ocaml-5.0

WORKDIR /app

RUN sudo apt-get update
RUN sudo apt-get -y install jq
COPY . .
RUN sudo chown -R opam /app
RUN eval $(opam env)

# install merlin
RUN opam install .

# install merl-an
## cache workaround: https://github.com/ocurrent/current-bench/issues/468#issuecomment-1621030354
ADD https://api.github.com/repos/pitag-ha/merl-an/git/refs/heads/main .merl-an-info
RUN opam pin -y merl-an https://github.com/pitag-ha/merl-an.git

RUN eval $(opam env)

# create directory for projects to run benchmarks on
RUN sudo mkdir /projects
RUN sudo chown opam /projects
WORKDIR /projects

# build irmin
RUN git clone https://github.com/mirage/irmin.git
WORKDIR /projects/irmin
RUN git checkout 8da4d16e7cc8beddfc8a824feca325426bae08a9
RUN sudo apt install -y gnuplot-x11 libgmp-dev pkg-config libffi-dev
RUN opam switch import /app/bench/irmin.opam.export --no-checksums
RUN opam exec -- dune build

WORKDIR /app
||||||| 7b73c6aa3f
FROM ocaml/opam:ubuntu-20.04-ocaml-4.14

WORKDIR /app

RUN sudo apt-get update
RUN sudo apt-get -y install jq
COPY . .
RUN sudo chown -R opam /app
RUN eval $(opam env)

# install merlin
RUN opam install .

# install merl-an
## cache workaround: https://github.com/ocurrent/current-bench/issues/468#issuecomment-1621030354
ADD https://api.github.com/repos/pitag-ha/merl-an/git/refs/heads/main .merl-an-info
RUN opam pin -y merl-an https://github.com/pitag-ha/merl-an.git

RUN eval $(opam env)

# create directory for projects to run benchmarks on
RUN sudo mkdir /projects
RUN sudo chown opam /projects
WORKDIR /projects

# build irmin
RUN git clone https://github.com/mirage/irmin.git
WORKDIR /projects/irmin
RUN git checkout 8da4d16e7cc8beddfc8a824feca325426bae08a9
RUN sudo apt install -y gnuplot-x11 libgmp-dev pkg-config libffi-dev
RUN opam switch import /app/bench/irmin.opam.export --no-checksums
RUN opam exec -- dune build

WORKDIR /app
=======
FROM ocaml/opam:ubuntu-20.04-ocaml-5.2
>>>>>>> upstream/main
6 changes: 0 additions & 6 deletions dot-merlin-reader.opam
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,7 @@ build: [
["dune" "build" "-p" name "-j" jobs]
]
depends: [
<<<<<<< HEAD
"ocaml" {>= "5.1" & < "5.2" }
||||||| 7b73c6aa3f
"ocaml" {>= "4.08" & < "5.0"}
=======
"ocaml" {>= "5.2" }
>>>>>>> upstream/main
"dune" {>= "2.9.0"}
"merlin-lib" {>= "5.0"}
"ocamlfind" {>= "1.6.0"}
Expand Down
30 changes: 0 additions & 30 deletions emacs/merlin.el
Original file line number Diff line number Diff line change
Expand Up @@ -1791,17 +1791,10 @@ Empty string defaults to jumping to all these."
(dolist (pos positions)
(let* ((start (assoc 'start pos))
(end (assoc 'end pos))
<<<<<<< HEAD
(occ-buff (find-file-noselect (cdr (assoc 'file pos))))
(marker (with-current-buffer occ-buff
(copy-marker (merlin--point-of-pos start))))
||||||| 7b73c6aa3f
=======
(file (cdr (assoc 'file pos)))
(occ-buff (if file (find-file-noselect file) src-buff))
(marker (with-current-buffer occ-buff
(copy-marker (merlin--point-of-pos start))))
>>>>>>> upstream/main
(line (cdr (assoc 'line start)))
(start-buf-pos (with-current-buffer occ-buff
(merlin--point-of-pos start)))
Expand All @@ -1817,15 +1810,7 @@ Empty string defaults to jumping to all these."
marker
start-buf-pos
end-buf-pos
<<<<<<< HEAD
occ-buff))))

||||||| 7b73c6aa3f
src-buff))))

=======
occ-buff))))
>>>>>>> upstream/main
;; Insert the critical text properties that occur-mode
;; makes use of
(add-text-properties start-offset
Expand All @@ -1842,20 +1827,6 @@ Empty string defaults to jumping to all these."
(or (not (equal line pending-line))
(not (equal previous-buf occ-buff))))
(insert pending-lines-text))
<<<<<<< HEAD

(when (not (equal previous-buf occ-buff))
(insert (propertize (format "Occurrences in buffer %s:"
;(length lst)
occ-buff)
'font-lock-face
list-matching-lines-buffer-name-face
'read-only t
'occur-title occ-buff))
(insert "\n"))

||||||| 7b73c6aa3f
=======

(when (not (equal previous-buf occ-buff))
(insert (propertize (format "Occurrences in buffer %s:"
Expand All @@ -1867,7 +1838,6 @@ Empty string defaults to jumping to all these."
'occur-title occ-buff))
(insert "\n"))

>>>>>>> upstream/main
(setq pending-line line)
(setq previous-buf occ-buff)
(setq pending-lines-text lines-text)))
Expand Down
8 changes: 0 additions & 8 deletions merlin-lib.opam
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,8 @@ build: [
["dune" "build" "-p" name "-j" jobs]
]
depends: [
<<<<<<< HEAD
"ocaml" {>= "5.1" & < "5.2"}
"dune" {>= "2.9.0"}
||||||| 7b73c6aa3f
"ocaml" {>= "4.14" & < "4.15"}
"dune" {>= "2.9.0"}
=======
"ocaml" {>= "5.2" & < "5.3"}
"dune" {>= "3.0.0"}
>>>>>>> upstream/main
"csexp" {>= "1.5.1"}
"menhir" {dev & = "20210419"}
"menhirLib" {dev & = "20210419"}
Expand Down
8 changes: 0 additions & 8 deletions merlin.opam
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,8 @@ build: [
["dune" "runtest" "-p" name "-j" jobs] {with-test}
]
depends: [
<<<<<<< HEAD
"ocaml" {>= "5.1" & < "5.2"}
"dune" {>= "2.9.0"}
||||||| 7b73c6aa3f
"ocaml" {>= "4.14" & < "4.15"}
"dune" {>= "2.9.0"}
=======
"ocaml" {>= "5.2" & < "5.3"}
"dune" {>= "3.0.0"}
>>>>>>> upstream/main
"merlin-lib" {= version}
"dot-merlin-reader" {>= "5.0"}
"ocaml-index" {>= "1.0" & post}
Expand Down
57 changes: 1 addition & 56 deletions src/analysis/ast_iterators.ml
Original file line number Diff line number Diff line change
@@ -1,57 +1,3 @@
<<<<<<< HEAD
open Std
open Typedtree

let {Logger. log} = Logger.for_section "iterators"

(* The compiler contains an iterator that aims to gather definitions but
ignores local values like let-in expressions and local type definition. To
provide occurrences in the active buffer we extend the compiler's iterator with
these cases. *)
let iter_on_defs ~uid_to_locs_tbl =
let log = log ~title:"iter_on_defs" in
let register_uid uid fragment =
let loc = Misc_utils.loc_of_decl ~uid fragment in
Option.iter loc ~f:(fun loc ->
Types.Uid.Tbl.add uid_to_locs_tbl uid loc)
in
let iter_decl = Cmt_format.iter_on_declarations ~f:register_uid in
let register_uid uid loc =
Types.Uid.Tbl.add uid_to_locs_tbl uid loc
in
{ iter_decl with
expr = (fun sub ({ exp_extra; _ } as expr) ->
List.iter exp_extra ~f:(fun (exp_extra, _loc, _attr) ->
match exp_extra with
| Texp_newtype' (typ_id, typ_name, _, uid) ->
log "Found newtype %s wit id %a (%a)\n%!" typ_name.txt
Logger.fmt (Fun.flip Ident.print_with_scope typ_id)
Logger.fmt (fun fmt -> Location.print_loc fmt typ_name.loc);
register_uid uid typ_name;
()
| _ -> ());
iter_decl.expr sub expr);
}

let build_uid_to_locs_tbl ~(local_defs : Mtyper.typedtree) () =
let uid_to_locs_tbl : string Location.loc Types.Uid.Tbl.t =
Types.Uid.Tbl.create 64
in
let iter = iter_on_defs ~uid_to_locs_tbl in
begin match local_defs with
| `Interface sign ->
iter.signature iter sign
| `Implementation str ->
iter.structure iter str end;
uid_to_locs_tbl

let iter_on_usages ~f (local_defs : Mtyper.typedtree) =
let iter = Cmt_format.iter_on_occurrences ~f in
begin match local_defs with
| `Interface signature -> iter.signature iter signature
| `Implementation structure -> iter.structure iter structure end
||||||| 7b73c6aa3f
=======
open Std
open Typedtree

Expand Down Expand Up @@ -165,7 +111,7 @@ let iter_on_defs ~uid_to_locs_tbl =
expr = (fun sub ({ exp_extra; _ } as expr) ->
List.iter exp_extra ~f:(fun (exp_extra, _loc, _attr) ->
match exp_extra with
| Texp_newtype' (typ_id, typ_name, uid) ->
| Texp_newtype' (typ_id, typ_name, _, uid) ->
log "Found newtype %s wit id %a (%a)\n%!" typ_name.txt
Logger.fmt (Fun.flip Ident.print_with_scope typ_id)
Logger.fmt (fun fmt -> Location.print_loc fmt typ_name.loc);
Expand Down Expand Up @@ -197,4 +143,3 @@ let iter_on_usages ~f (local_defs : Mtyper.typedtree) =
let iterator_on_usages ~f =
let occ_iter = Cmt_format.iter_on_occurrences ~f in
iter_only_visible occ_iter
>>>>>>> upstream/main
6 changes: 0 additions & 6 deletions src/analysis/completion.ml
Original file line number Diff line number Diff line change
Expand Up @@ -660,15 +660,9 @@ let branch_complete buffer ?get_doc ?target_type ?kinds ~keywords prefix =
let lbls = Datarepr.labels_of_type p decl in
let labels = List.map lbls ~f:(fun (_,lbl) ->
try
<<<<<<< HEAD
let _, lbl_arg, lbl_res = Ctype.instance_label ~fixed:false lbl in
||||||| 7b73c6aa3f
let _, lbl_arg, lbl_res = Ctype.instance_label false lbl in
=======
let _, lbl_arg, lbl_res =
Ctype.instance_label ~fixed:false lbl
in
>>>>>>> upstream/main
begin try
Ctype.unify_var env ty lbl_res;
with _ -> ()
Expand Down
Loading
Loading