We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
lsp-mode
M-x lsp-start-plain
As you can see in the following video, this piece of code in lsp-eldoc-function is messing with the lsp-ocaml client
lsp-eldoc-function
(if (and lsp--hover-saved-bounds (lsp--point-in-bounds-p lsp--hover-saved-bounds)) lsp--eldoc-saved-message
When the point is on struct, the saved bounds includes the function in the module and the hover is not computed resulting in a faulty returned type.
struct
(lsp-register-client (make-lsp-client :new-connection (lsp-stdio-connection '("opam" "exec" "--" "ocamllsp")) :major-modes '(caml-mode tuareg-mode) :server-id 'ocaml-lsp-server))
opam install ocaml-lsp-server
let a = 3 module A = struct let f a b c d e f = a + b + c + d + e + f end
f
int -> int -> int -> int -> int -> int -> int
sig
a
int
When hover over a value inside a module the type of the value should be displayed, not the type of the enclosing module.
lsp-ocaml
Linux
No response
The text was updated successfully, but these errors were encountered:
One simple solution could be to add a custom value that allows to not cache the hover bounds.
Sorry, something went wrong.
No branches or pull requests
Thank you for the bug report
lsp-mode
related packages.M-x lsp-start-plain
Bug description
As you can see in the following video, this piece of code in
lsp-eldoc-function
is messing with the lsp-ocaml clientEnregistrement.d.ecran_20250402_153634.webm
When the point is on
struct
, the saved bounds includes the function in the module and the hover is not computed resulting in a faulty returned type.Steps to reproduce
opam install ocaml-lsp-server
f
(int -> int -> int -> int -> int -> int -> int
)struct
(sig
)f
(previous typesig
is displayed)a
(int
)f
(int -> int -> int -> int -> int -> int -> int
)Expected behavior
When hover over a value inside a module the type of the value should be displayed, not the type of the enclosing module.
Which Language Server did you use?
lsp-ocaml
OS
Linux
Error callstack
Anything else?
No response
The text was updated successfully, but these errors were encountered: