Skip to content

On opening/scrolling some binary files: "vim-illuminate: An internal error has occured: false"Vim:E976: using Blob as a String" #186

@andis-sprinkis

Description

@andis-sprinkis

Describe the bug
A clear and concise description of what the bug is.

An error message occurs on opening and scrolling through some binary files.

To Reproduce
Steps to reproduce the behavior (include minimal init.vim or .vimrc):

  1. nvim test.txt
    test.txt (this is a chunk of a WAV file from Wikipedia)
  2. See error
    vim-illuminate: An internal error has occured: false"Vim:E976: using Blob as a String"
    

Config. - just vim-illuminate installed with lazy.nvim.

Note Omitting a minimal init.vim/init.lua/.vimrc will likely result in the issue being closed without explanation.

Output from :IlluminateDebug

buf_should_illuminate 1 true
config {
  case_insensitive_regex = false,
  delay = 100,
  filetype_overrides = {},
  filetypes_allowlist = {},
  filetypes_denylist = { "dirbuf", "dirvish", "fugitive" },
  min_count_to_highlight = 1,
  modes_allowlist = {},
  modes_denylist = {},
  providers = { "lsp", "treesitter", "regex" },
  providers_regex_syntax_allowlist = {},
  providers_regex_syntax_denylist = {},
  under_cursor = true
}
started false
provider table: 0x7ff0e85b7590 regex
`termguicolors` false

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
1700416619

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions