Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Company: backend merlin-company-backend error "merlin: error (end-of-file) trying to parse answer: " with args (candidates Js.) #75

Open

Description

@kuwze

This is an error I am having with reason-cli's merlin (I am unsure of whether I should post here, or on merlin's github page). I also tried using the which ocamlmerlin-reason binary, but got the same error.

To recreate this error, I just tried to enter at the top of the ReasonML file let a = Js. and inspected the Emacs messages.

Here is my configuration:

(defun shell-cmd (cmd)
     "Returns the stdout output of a shell command or nil if the command returned
      an error"
     (car (ignore-errors (apply 'process-lines (split-string cmd)))))

   (quelpa '(reason-mode :repo "reasonml-editor/reason-mode" :fetcher github :stable t))
   (use-package reason-mode
     :config
     (let* ((refmt-bin (shell-cmd "which refmt")))
       (when refmt-bin
	 (setq refmt-command refmt-bin)))
     (add-hook
      'reason-mode-hook
      (lambda ()
	(add-hook 'before-save-hook 'refmt-before-save nil t)
	(setq-local merlin-command "~/.nvm/versions/node/v9.9.0/bin/ocamlmerlin")
	(merlin-mode))))

I am happy to share any other details that might be relevant.

Activity

  1. dysinger commented on Sep 15, 2018

    @dysinger

    I have also encountered this error recently. Emacs Company Merlin used to work on ReasonML (Bucklescript) projects just fine.

  2. dysinger commented on Sep 26, 2018

    @dysinger

    I figured this out. You need odoc installed. You may close this issue.

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