ocaml / ocaml-lsp

OCaml Language Server Protocol implementation
Other
749 stars 117 forks source link

Weird behaviour of lenses in type definition #1313

Open giltho opened 2 months ago

giltho commented 2 months ago

Hello hello,

I have some code that triggers a weird behaviour with the lenses in 1.18.0~5.2preview

image

It might be be because of the unusual type t = ... = ..., I'm not quite sure. It seems to have the same behaviour to all my other type definitions with the same pattern, as long as the variant has at least one argument

image

This is not preventing any work so I'd say this is fairly low priority

voodoos commented 2 months ago

Thanks for your report @giltho.

Does the weird behavior persists if you remove the deriver ?

giltho commented 2 months ago

No, it looks like removing the deriver stops this behaviour