Skip to content

[BUG] Running ocamlmerlin-server.exe does not allow moving directory under Windows #1474

@nojb

Description

@nojb

After one starts using merlin to edit a file on Emacs under Windows it is not possible to move the containing directory around, which is quite inconvenient. Closing emacs does not solve the problem because the merlin process continues to run in the background. The only solution is to kill the merlin process running in the background.

image

  • Why not shut down the merlin background process when closing Emacs?
  • Typically this problems happens because a program (Merlin in this case) keeps open handles to the directory or some file within it; if this is indeed the case, perhaps this situation can be avoided? For example even if one is editing a file in a directory with Emacs, that does not keep the containing directory from being renamed.

To reproduce

  1. mkdir foo
  2. emacs foo/foo.ml
  3. Perform some operation that invokes merlin on the foo.ml buffer
  4. mv foo foo2 in the terminal (fails)

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