Skip to content

Issue when switching projects with term open #5

Description

@theherk

First of all, great project. The following error occurs when switching projects while :term is open.

   Error  13:32:47 msg_show.emsg E5108: Error executing lua: vim/_editor.lua:0: nvim_exec2(): Vim(bwipeout):E89: term://~/projects/gitlab.foo.no/bar/infra//20847:/opt/homebrew/bin/fish will be killed (add ! to override)
stack traceback:
	[C]: in function 'nvim_exec2'
	vim/_editor.lua: in function 'cmd'
	...zy/project-explorer.nvim/lua/project_explorer/config.lua:13: in function 'post_open_hook'
	.../project-explorer.nvim/lua/project_explorer/explorer.lua:171: in function 'change_working_directory'
	.../project-explorer.nvim/lua/project_explorer/explorer.lua:275: in function 'run_replace_or_original'
	...re/nvim/lazy/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'key_func'
	...hare/nvim/lazy/telescope.nvim/lua/telescope/mappings.lua:293: in function <...hare/nvim/lazy/telescope.nvim/lua/telescope/mappings.lua:292>

I'm not sure what the best solution is, but it may be sufficient to just force kill the term buffers. I'm not sure.

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