Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toggleterm error #85

Open
lluar opened this issue Mar 30, 2022 · 1 comment
Open

toggleterm error #85

lluar opened this issue Mar 30, 2022 · 1 comment

Comments

@lluar
Copy link

lluar commented Mar 30, 2022

If I use toggleterm as pos I can run the task only once. The second time I get the following error:

E5108: Error executing lua ...asynctasks.nvim/lua/telescope/_extensions/asynctasks.lua:42: Vim(lua):E5108: Error executing lua ...pack/paqs/start/asyncrun.vim/lua/asyncrun/toggleterm.lua:9: Terminal existed
stack traceback:
        [C]: in function 'error'
        ...pack/paqs/start/asyncrun.vim/lua/asyncrun/toggleterm.lua:9: in function 'reset'
        ...pack/paqs/start/asyncrun.vim/lua/asyncrun/toggleterm.lua:23: in function 'runner'
        [string ":lua"]:1: in main chunk
        [C]: in function 'cmd'
        ...asynctasks.nvim/lua/telescope/_extensions/asynctasks.lua:42: in function 'key_func'
        ...ack/paqs/start/telescope.nvim/lua/telescope/mappings.lua:242: in function 'execute_keymap'
        [string ":lua"]:1: in main chunk
stack traceback:
        [C]: in function 'cmd'
        ...asynctasks.nvim/lua/telescope/_extensions/asynctasks.lua:42: in function 'key_func'
        ...ack/paqs/start/telescope.nvim/lua/telescope/mappings.lua:242: in function 'execute_keymap'
        [string ":lua"]:1: in main chunk

If iI set vim.g.asynctasks_term_reuse = 1, I get this error

Delete existing terminal
E5108: Error executing lua ...asynctasks.nvim/lua/telescope/_extensions/asynctasks.lua:42: Vim(lua):E5108: Error executing lua ...pack/paqs/start/asyncrun.vim/lua/asyncrun/toggleterm.lua:14: Expected lua string

stack traceback:
        [C]: in function 'nvim_del_keymap'
        ...pack/paqs/start/asyncrun.vim/lua/asyncrun/toggleterm.lua:14: in function 'reset'
        ...pack/paqs/start/asyncrun.vim/lua/asyncrun/toggleterm.lua:23: in function 'runner'
        [string ":lua"]:1: in main chunk
        [C]: in function 'cmd'
        ...asynctasks.nvim/lua/telescope/_extensions/asynctasks.lua:42: in function 'key_func'
        ...ack/paqs/start/telescope.nvim/lua/telescope/mappings.lua:242: in function 'execute_keymap'
        [string ":lua"]:1: in main chunk
stack traceback:
        [C]: in function 'cmd'
        ...asynctasks.nvim/lua/telescope/_extensions/asynctasks.lua:42: in function 'key_func'
        ...ack/paqs/start/telescope.nvim/lua/telescope/mappings.lua:242: in function 'execute_keymap'
        [string ":lua"]:1: in main chunk
@skywind3000
Copy link
Owner

wrong repository here. this is the origin asynctasks.vim project, I don't have any lua code here.

And there may be an asynctasks extension for telescope

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants