flycheck / flycheck-ocaml

OCaml support for Flycheck using Merlin
GNU General Public License v3.0
22 stars 6 forks source link

Configuring in Spacemacs #18

Open mohanr opened 4 months ago

mohanr commented 4 months ago

I believe this is a newer error.

⛔ Error (use-package): Cannot load clean-aindent-mode ⛔ Error (use-package): Cannot load column-enforce-mode ⛔ Warning (evil-collection): `evil-want-keybinding' was set to nil but not before loading evil.

Make sure to set `evil-want-keybinding' to nil before loading evil or evil-collection.

See https://github.com/emacs-evil/evil-collection/issues/60 for more details. ⛔ Error (use-package): evil-easymotion/:init: Symbol’s function definition is void: evilem-default-keybindings ⛔ Error (use-package): eyebrowse/:init: Symbol’s function definition is void: eyebrowse-mode ⛔ Error (use-package): Cannot load eyebrowse ⛔ Error (use-package): vi-tilde-fringe/:init: Symbol’s function definition is void: global-vi-tilde-fringe-mode ⛔ Error (use-package): Cannot load vi-tilde-fringe ⛔ Error (use-package): volatile-highlights/:init: Symbol’s function definition is void: volatile-highlights-mode ⛔ Error (use-package): Failed to install flycheck-ocaml: Cannot open load file: No such file or directory, flycheck-elsa

  require 'package)

  (add-to-list 'package-archives
           '("MELPA Stable" . "https://stable.melpa.org/packages/") t)
  (package-initialize)
  (with-eval-after-load 'merlin
  ;; Disable Merlin's own error checking
   (setq merlin-error-after-save nil)

;; Enable Flycheck checker
(flycheck-ocaml-setup))

  (add-hook 'tuareg-mode-hook #'merlin-mode)

  ;; or this if you're into use-package
  (use-package flycheck-ocaml
    :ensure t
    :config
    (add-hook 'tuareg-mode-hook
          (lambda ()
            ;; disable Merlin's own error checking
            (setq-local merlin-error-after-save nil)
            ;; enable Flycheck checker
            (flycheck-ocaml-setup))))`
mohanr commented 4 months ago

I see change a now. But my spaceman's IDE used to show this in the UI.

     (setq flycheck-emacs-lisp-load-path 'inherit)

apply: Wrong number of arguments: #[nil "� � � �� �" [merlin-mode merlin-error-after-save merlin-error-check] 1], 1