I created a simple dune project where I have a library preprocessed with camlp5 (more precisely, as a standalone executable built using camlp5 and which outputs serialized OCaml AST) and another library preprocessed with PPX.
Library 1 is being preprocessed into file
_build/default/lib1.pp.ml and another into
_build/default/libppx/lib2.pp.ml. Mimetype of both files is
OCaml abstract syntax tree implementation file (Version 027)
The problem is that it’s OK to use PPX-preprocessed library in IDE but for camlp5 one I get and error. It seems it treats OCaml abstract syntax tre file as a plain text file.
It seems the same problem appears both in just merlin and ocaml-lsp.
Any thoughts where should I diagnose this issue?
P.S. I create a test for merlin testsuite to reproduce this behaviour.