Skip to content

VSCode instrumentation #7465

@epatrizio

Description

@epatrizio

Hello, In vscode, it seems that ocaml-lsp automatically launches the instrumentation and does it incorrectly.
I made a minimal example using mutaml. Here are the steps to reproduce:

$ git clone https://github.com/jmid/mutaml.git
$ cd mutaml
$ opam install .
$ cd ..
$ git clone https://github.com/epatrizio/mutaml_exp.git
$ cd mutaml_exp
$ git checkout vscode

Then, open VSCode on mutaml_exp. If you open any .ml file (e.g. lib/lib.ml) and put your mouse focus on it, you'll see some files appearing in the sources.

There are two issues there:

  • first, the instrumentation should not run automatically
  • second, the files end up in the wrong place (you can compare to what happen when you run dune runtest --instrument-with mutaml not from vscode), they end-up in lib/ when they should be somewhere in _build/.

Thanks a lot!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions