-
Notifications
You must be signed in to change notification settings - Fork 75
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
Hover doesn't include odoc content for definitions in the same file #519
Comments
It is more like only the last type/value definition's documentation is available when we hover over type/value in the same file. But that's an issue with merlin: For constructor
For function
Aside from that: it seems we render the documentation incorrectly for doc string |
@ulugbekna the documentation content you're seeing in hovers is exactly what I would expect (modulo the relatively minor lack of separation between the type and ctor documentation). Likewise with your claim re: #520. Now it seems I have either a misconfiguration or something similar. Anyone have any ideas as to what to look for? |
I meant that the current "doc on hover" implementation seems buggy: only
the documentation for the last defined type/value is shown on hover.
On the screenshots where both `mid` and `f` defined and have doc comments
with `f` being the last definition with doc comment, `f` has documentation
on hover but not `mid`.
If I understand correctly, that's a merlin bug and ideally should be
reported in the merlin repo.
…On Thu, 4 Feb 2021 at 22:24, Chas Emerick ***@***.***> wrote:
@ulugbekna <https://github.com/ulugbekna> the documentation content
you're seeing in hovers is exactly what I would expect (modulo the
relatively minor lack of separation between the type and ctor
documentation). Likewise with your claim re: #520
<#520>.
Now it seems I have either a misconfiguration or something similar.
Anyone have any ideas as to what to look for?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#519 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD4YR63C5R2DYL6JFG32MALS5LJ6NANCNFSM4XCU345Q>
.
|
Thank you very much @ulugbekna, I didn't grok what you were showing in your screenshots at first! As you can see, I've filed an issue in the merlin project. I'll leave it up to the team here as to whether this issue should be left open to track the effect of the merlin issue's eventual resolution or not. |
Fixed in ocaml/merlin#1265 |
More explicitly, if a documented function is defined in
foo.ml
, hovers on references to it inbar.ml
will show that documentation, but hovers on references to it later infoo.ml
will not.The text was updated successfully, but these errors were encountered: