Skip to content

[BUG] Vim 9.1 intermittently freezes while saving, "Failed to intercept" error #44

@stevejmp

Description

@stevejmp

Describe the bug
Vim 9.1 intermittently freezes while saving/writing Clojure buffers in a small project (using Leiningen), sometimes displaying the following error on the cmdline at the bottom:

Failed to intercept for :elin.constant.interceptor/autocmd: error occured on entering elin.interceptor.autocmd/ns-load because of 'No implementation of method: :as-file of protocol: #'clojure.java.io/Coercions found for class: clojure.lang.PersistentVector'

To Reproduce
The behavior is intermittent, but it seems to be related to using fzf.vim to open a file.

  1. Change directory to the affected project
  2. Launch vim, opening any Clojure file: `vim src/<PATH_TO_CLJ_FILE>
  3. Connect to a REPL
  4. Use the :Files command from fzf.vim to open another Clojure file
  5. Make a small change to the buffer
  6. Write/save the change to file: :w
  7. Repeat steps 5 and 6 until the behavior is triggered
  8. When the behavior is triggered, vim freezes before actually writing the file, and the error message is sometimes displayed.

Expected behavior
Vim does not freeze, but instead writes the file and continues to function properly.

Environment (please complete the following information):

  • Editor: Vim
  • Editor version: 2:9.1.0016-1ubuntu7.8
  • Babashka version: babashka v1.12.197

Configuration file (if you have):
User configuration ($XDG_CONFIG_HOME/elin/config.edn or$HOME/.config/elin/config.edn)
(none)

Project local configuration (YOUR_PROJECT/.elin/config.edn)
(none)

Additional context
Seems related to #30.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions