Skip to content

ocaml-lsp has dropped support for .merlin files #339

Closed

Description

@b0o

This issue is related to the development of the rescript-vscode /analysis sub-project, not the end use of this plugin.

Vendored modules are not being picked up by the latest version of ocamllsp, leading the LSP to display "Unbound module" errors e.g. where the Json module is used in FindFiles.ml.

From this changelog entry for ocamllsp:

Breaking Change: ocamllsp drops support for .merlin files, and as a consequence no longer depends on dot-merlin-reader. (#523)

Downgrading to ocamllsp version 1.8.3 works around this issue, but it would be nice to have support for the latest version of ocamllsp.

Activity

  1. cristianoc commented on Jan 18, 2022

    @cristianoc
    Collaborator

    Thanks @b0o.
    This should take care of it: #340

  2. added a commit that references this issue on Jan 18, 2022
  3. jboillot commented on Nov 30, 2022

    @jboillot

    Hello,
    It may be interesting for future readers to add that ocamllsp has added an option --fallback-read-dot-merlin if you're not using dune. Note that you still need to create an empty dune-project file at the root (cf ocaml/ocaml-lsp#859 ).
    This way you don't have to downgrade.

  4. cristianoc commented on Nov 30, 2022

    @cristianoc
    Collaborator

    The project has been using dune for a while now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions