ocaml / ocaml-lsp

OCaml Language Server Protocol implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Weird behaviour of lenses in type definition

giltho opened this issue · comments

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

Thanks for your report @giltho.

Does the weird behavior persists if you remove the deriver ?

No, it looks like removing the deriver stops this behaviour