Skip to content

Errors in special buffers #10

@tokebe

Description

@tokebe

Hey, thanks for this great plugin! Very useful in my day-to-day, I'm surprised it hasn't gathered more attention :D

Using nvim-dap-view, whenever I enter the repl or console buffers I get errors which repeat on each keystroke.

Expand for error message
Error detected while processing FileType Autocommands for "*":
Error executing lua callback: Vim:E944: Reverse range in character class
stack traceback:
	[C]: in function 'expand'
	...r/.local/share/nvim/lazy/ftmemo.nvim/lua/ftmemo/init.lua:80: in function 'get_file_path'
	...r/.local/share/nvim/lazy/ftmemo.nvim/lua/ftmemo/init.lua:142: in function <...r/.local/share/nvim/lazy/ftmemo.nvim/lua/ftmemo/init.lua:136>
	[C]: in function '__newindex'
	...e/alter/.local/share/nvim/lazy/nvim-dap/lua/dap/repl.lua:100: in function 'new_buf'
	/home/alter/.local/share/nvim/lazy/nvim-dap/lua/dap/ui.lua:335: in function '_init_buf'
	/home/alter/.local/share/nvim/lazy/nvim-dap/lua/dap/ui.lua:348: in function 'open'
	...share/nvim/lazy/nvim-dap-view/lua/dap-view/repl/init.lua:10: in function 'show'
	.../lazy/nvim-dap-view/lua/dap-view/options/winbar/init.lua:57: in function 'wrapped_action'
	.../lazy/nvim-dap-view/lua/dap-view/options/winbar/init.lua:91: in function <.../lazy/nvim-dap-view/lua/dap-view/options/winbar/init.lua:87>
Error executing lua callback: Vim:E944: Reverse range in character class
stack traceback:
	[C]: in function 'expand'
	...r/.local/share/nvim/lazy/ftmemo.nvim/lua/ftmemo/init.lua:80: in function 'get_file_path'
	...r/.local/share/nvim/lazy/ftmemo.nvim/lua/ftmemo/init.lua:142: in function <...r/.local/share/nvim/lazy/ftmemo.nvim/lua/ftmemo/init.lua:136>
	[C]: in function '__newindex'
	/home/alter/.local/share/nvim/lazy/nvim-dap/lua/dap/ui.lua:356: in function 'open'
	...share/nvim/lazy/nvim-dap-view/lua/dap-view/repl/init.lua:10: in function 'show'
	.../lazy/nvim-dap-view/lua/dap-view/options/winbar/init.lua:57: in function 'wrapped_action'
	.../lazy/nvim-dap-view/lua/dap-view/options/winbar/init.lua:91: in function <.../lazy/nvim-dap-view/lua/dap-view/options/winbar/init.lua:87>

I'm not well-versed enough in nvim logic/ftmemo's design to diagnose further, but perhaps a configuration option to ignore certain filetypes when running the autocommand may prevent this? There are plenty of special, plugin-specific filetypes that no reasonable user would need to change / expect ftmemo to remember.

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