Conversation
| if not exact then raise Exit; | ||
| let verbosity = !Type_utils.verbosity in | ||
| let verbosity = | ||
| Mconfig.Verbosity.to_int !Type_utils.verbosity ~for_smart:1 |
There was a problem hiding this comment.
In most cases, I tried to keep in mind ocaml-lsp's use case for verbosity=smart, but I'm not sure what to put here.
550dd21 to
8a0f7e6
Compare
8a0f7e6 to
13273d5
Compare
13273d5 to
74ad49d
Compare
|
Can I jump on the current reviews train? :D |
Sorry, it will have to be after the imminent release. I am curious: is that already in-use in OCaml-lsp ? |
Unfortunately not, but it should be cc @rgrinberg |
|
We can experiment with this patch in lsp first if you'd like, but it needs to be a lot smaller. For starters, get rid of all nonessential changes to ease the maintenance. |
|
Our priority right now is the release but I can have a look shortly after if the goal is to have it upstreamed to not rely on another ocaml-lsp side's patch. |
|
Indeed that’s the goal.
…On Mon, 22 Nov 2021 at 16:01, Ulysse ***@***.***> wrote:
Our priority right now is the release but I can have a look shortly after
if the goal is to have it upstreamed to not rely on another ocaml-lsp side.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1374 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD4YR67EBXTVWZFEV2AQ6BTUNJLM7ANCNFSM5BCN65QA>
.
|
|
@ulugbekna could you move the clean-ups/refactoring parts of the PR to another one as you suggested ? |
|
I hope to do so this week :-)
…On Tue, 30 Nov 2021 at 18:38, Ulysse ***@***.***> wrote:
@ulugbekna <https://github.com/ulugbekna> could you move the
clean-ups/refactoring parts of the PR to another one as you suggested ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1374 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD4YR65C5JWZECTOXMPLRULUOUD2NANCNFSM5BCN65QA>
.
|
74ad49d to
a5ed76e
Compare
voodoos
left a comment
There was a problem hiding this comment.
Thanks a lot @ulugbekna the changes mostly look good to me :-)
e5bef4a to
1a1f0eb
Compare
|
Thanks for a prompt review! Addressed all comments |
|
We also need to update the protocol documentation: |
|
but that document doesn't mention |
🧐 looks like a great opportunity to do it 😅 |
|
In another PR perhaps? |
1a1f0eb to
87847ce
Compare
…which more clearly states what the function does
Co-authored-by: Ulysse <5031221+voodoos@users.noreply.github.com>
Co-authored-by: Ulysse <5031221+voodoos@users.noreply.github.com>
Co-authored-by: Ulysse <5031221+voodoos@users.noreply.github.com>
87847ce to
fb6048e
Compare
CHANGES:
Thu Nov 24 13:31:42 CEST 2022
+ merlin binary
- Replace custom "holes" AST nodes by extensions. This restores binary
compatibility and fixes issues with PPXs when using typed-holes.
(ocaml/merlin#1503)
- Do not change temporarily Merlin's cwd when starting a PPX (ocaml/merlin#1521,
fixes ocaml/merlin#1420)
- Fix a parsing issue when declaring the `(??)` custom prefix operator.
(ocaml/merlin#1507, fixes ocaml/merlin#1506)
- Fix variant constructors' comments grouping (ocaml/merlin#1516, @mheiber, fixes ocaml/merlin#1513)
- Filter-out duplicates from the `enclosing` command result (ocaml/merlin#1512)
- Add a new `verbosity=smart` mode for type enclosing that only expand
modules' types (ocaml/merlin#1374, @ulugbekna)
- Improve locate for labels' declarations in the current buffer.
(ocaml/merlin#1505, fixes ocaml/merlin#1524)
- Fix locate on module without implementation (ocaml/merlin#1522, fixes ocaml/merlin#1519)
- Allow program name customization when merlin is used as a library. (ocaml/merlin#1532)
+ editor modes
- vim: load the plugin when necessary if it wasn't loaded before (ocaml/merlin#1511)
- emacs: update CI for newer releases and fix some warnings (ocaml/merlin#1454,
@mattiase)
+ test suite
- Add tests for constructors' documentation (ocaml/merlin#1511)
- Add test cases for label comment documentation (ocaml/merlin#1526, @mheiber)
- Add a test for the `enclosing` command (ocaml/merlin#1512)
- Add tests for interactions between locate and record labels (ocaml/merlin#1505)
- Add test showing an issue with locate and implicit transitive deps
CHANGES:
+ merlin binary
- Replace custom "holes" AST nodes by extensions. This restores binary
compatibility and fixes issues with PPXs when using typed-holes.
(ocaml/merlin#1503)
- Do not change temporarily Merlin's cwd when starting a PPX (ocaml/merlin#1521,
fixes ocaml/merlin#1420)
- Fix a parsing issue when declaring the `(??)` custom prefix operator.
(ocaml/merlin#1507, fixes ocaml/merlin#1506)
- Fix variant constructors' comments grouping (ocaml/merlin#1516, @mheiber, fixes ocaml/merlin#1513)
- Filter-out duplicates from the `enclosing` command result (ocaml/merlin#1512)
- Add a new `verbosity=smart` mode for type enclosing that only expand
modules' types (ocaml/merlin#1374, @ulugbekna)
- Improve locate for labels' declarations in the current buffer.
(ocaml/merlin#1505, fixes ocaml/merlin#1524)
- Fix locate on module without implementation (ocaml/merlin#1522, fixes ocaml/merlin#1519)
- Allow program name customization when merlin is used as a library. (ocaml/merlin#1532)
+ editor modes
- vim: load the plugin when necessary if it wasn't loaded before (ocaml/merlin#1511)
- emacs: update CI for newer releases and fix some warnings (ocaml/merlin#1454,
@mattiase)
+ test suite
- Add tests for constructors' documentation (ocaml/merlin#1511)
- Add test cases for label comment documentation (ocaml/merlin#1526, @mheiber)
- Add a test for the `enclosing` command (ocaml/merlin#1512)
- Add tests for interactions between locate and record labels (ocaml/merlin#1505)
- Add test showing an issue with locate and implicit transitive deps
[new release] merlin (4.7-413)
CHANGES:
+ merlin binary
- Replace custom "holes" AST nodes by extensions. This restores binary
compatibility and fixes issues with PPXs when using typed-holes.
(ocaml/merlin#1503)
- Fix a parsing issue when declaring the `(??)` custom prefix operator.
(ocaml/merlin#1507, fixes ocaml/merlin#1506)
- Fix variant constructors' comments grouping (ocaml/merlin#1516, @mheiber, fixes ocaml/merlin#1513)
- Filter-out duplicates from the `enclosing` command result (ocaml/merlin#1512)
+ editor modes
- vim: load the plugin when necessary if it wasn't loaded before (ocaml/merlin#1511)
+ test suite
- Add tests for constructors' documentation (ocaml/merlin#1511)
- Add test cases for label comments documentation (ocaml/merlin#1526, @mheiber)
- Add a test for the `enclosing` command (ocaml/merlin#1512)
[new release] merlin (4.7-412)
CHANGES:
+ merlin binary
- Replace custom "holes" AST nodes by extensions. This restores binary
compatibility and fixes issues with PPXs when using typed-holes.
(ocaml/merlin#1503)
- Fix a parsing issue when declaring the `(??)` custom prefix operator.
(ocaml/merlin#1507, fixes ocaml/merlin#1506)
- Fix variant constructors' comments grouping (ocaml/merlin#1516, @mheiber, fixes ocaml/merlin#1513)
- Filter-out duplicates from the `enclosing` command result (ocaml/merlin#1512)
+ editor modes
- vim: load the plugin when necessary if it wasn't loaded before (ocaml/merlin#1511)
+ test suite
- Add tests for constructors' documentation (ocaml/merlin#1511)
- Add test cases for label comment documentation (ocaml/merlin#1526, @mheiber)
- Add a test for the `enclosing` command (ocaml/merlin#1512)
CHANGES:
Thu Nov 24 17:49:42 CEST 2022
+ merlin binary
- Replace custom "holes" AST nodes by extensions. This restores binary
compatibility and fixes issues with PPXs when using typed-holes.
(ocaml/merlin#1503)
- Do not change temporarily Merlin's cwd when starting a PPX (ocaml/merlin#1521,
fixes ocaml/merlin#1420)
- Fix a parsing issue when declaring the `(??)` custom prefix operator.
(ocaml/merlin#1507, fixes ocaml/merlin#1506)
- Fix variant constructors' comments grouping (ocaml/merlin#1516, @mheiber, fixes ocaml/merlin#1513)
- Filter-out duplicates from the `enclosing` command result (ocaml/merlin#1512)
- Add a new `verbosity=smart` mode for type enclosing that only expand
modules' types (ocaml/merlin#1374, @ulugbekna)
- Improve locate for labels' declarations in the current buffer.
(ocaml/merlin#1505, fixes ocaml/merlin#1524)
- Fix locate on module without implementation (ocaml/merlin#1522, fixes ocaml/merlin#1519)
- Allow program name customization when merlin is used as a library. (ocaml/merlin#1532)
+ editor modes
- vim: load the plugin when necessary if it wasn't loaded before (ocaml/merlin#1511)
- emacs: update CI for newer releases and fix some warnings (ocaml/merlin#1454,
@mattiase)
+ test suite
- Add tests for constructors' documentation (ocaml/merlin#1511)
- Add test cases for label comment documentation (ocaml/merlin#1526, @mheiber)
- Add a test for the `enclosing` command (ocaml/merlin#1512)
- Add tests for interactions between locate and record labels (ocaml/merlin#1505)
- Add test showing an issue with locate and implicit transitive deps
CHANGES:
+ merlin binary
- Replace custom "holes" AST nodes by extensions. This restores binary
compatibility and fixes issues with PPXs when using typed-holes.
(ocaml/merlin#1503)
- Do not change temporarily Merlin's cwd when starting a PPX (ocaml/merlin#1521,
fixes ocaml/merlin#1420)
- Fix a parsing issue when declaring the `(??)` custom prefix operator.
(ocaml/merlin#1507, fixes ocaml/merlin#1506)
- Fix variant constructors' comments grouping (ocaml/merlin#1516, @mheiber, fixes ocaml/merlin#1513)
- Filter-out duplicates from the `enclosing` command result (ocaml/merlin#1512)
- Add a new `verbosity=smart` mode for type enclosing that only expand
modules' types (ocaml/merlin#1374, @ulugbekna)
- Improve locate for labels' declarations in the current buffer.
(ocaml/merlin#1505, fixes ocaml/merlin#1524)
- Fix locate on module without implementation (ocaml/merlin#1522, fixes ocaml/merlin#1519)
- Allow program name customization when merlin is used as a library. (ocaml/merlin#1532)
+ editor modes
- vim: load the plugin when necessary if it wasn't loaded before (ocaml/merlin#1511)
- emacs: update CI for newer releases and fix some warnings (ocaml/merlin#1454,
@mattiase)
+ test suite
- Add tests for constructors' documentation (ocaml/merlin#1511)
- Add test cases for label comment documentation (ocaml/merlin#1526, @mheiber)
- Add a test for the `enclosing` command (ocaml/merlin#1512)
- Add tests for interactions between locate and record labels (ocaml/merlin#1505)
- Add test showing an issue with locate and implicit transitive deps
What the PR does
Implements support for
verbosity=smart.Note: I tried to keep changes for adding
verbosity=smartminimal.Includes a couple of clean ups, I can remove them from this PR if necessary.
Also includes a fix for: The format for MERLIN_LOG env var is different in two places in merlin
new_merlin.mlandocamlmerlin_server.ml--MERLIN_LOG=filename{,section}*orfilenameNote: I noticed that a part of functions in
Type_utilsuse the global mutableverbosityas a way to avoid passingverbosityas an argument along the call hierarchy, another half - passed verbosity around. I could perhaps fix this if there is clear preference. It also seems slightly more involved change than this one.Reviewing
It is best to go commit-by-commit.
In the end, it looks quite good on the ocaml-lsp's side: