8000 Empty maktaba#buffer#Overwrite() sometimes hangs vroom · Issue #84 · google/vroom · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Aug 15, 2026. It is now read-only.
This repository was archived by the owner on Aug 15, 2026. It is now read-only.

Empty maktaba#buffer#Overwrite() sometimes hangs vroom #84

Open

Description

@dbarnett

For some reason, I notice a hang of ~2 seconds when I execute a vroom file that contains the following:

  :source /home/dbarnett/.vim/vim-addons/maktaba/bootstrap.vim
  :call maktaba#buffer#Overwrite(1, 1, [])

It only triggers with an empty list. Interestingly, it also seems to be sensitive to the state of :messages as well, and just adding :set nocompatible at the beginning of the file above to get rid of the Maktaba does not support vi compatibility error makes the hang disappear. I isolated the delay to the python code vim.current.buffer[i1+offset:i2+offset] = lines[j1:j2] from maktaba, and in the process determines it only affects the python implementation and not the vimscript fallback implementation. When I Ctrl-C during the hang, I see a vroom traceback in self.env.vim.GetMessages.

This condition also seems to manifest on Travis CI builds as failures like Error formatting file: Vim(let):E677: Error writing temp file. Example: https://travis-ci.org/google/vim-codefmt/jobs/48454624

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0