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

Error during autocmd not catched when running command from client #9824

Open
chemzqm opened this issue Apr 1, 2019 · 0 comments
Open

Error during autocmd not catched when running command from client #9824

chemzqm opened this issue Apr 1, 2019 · 0 comments
Labels
api libnvim, Nvim RPC API bug issues reporting wrong behavior
Milestone

Comments

@chemzqm
Copy link
Contributor

chemzqm commented Apr 1, 2019

  • nvim --version: NVIM v0.4.0-442-g0920c6ca8
  • Vim (version: ) behaves differently? Yes
  • Operating system/version: MacOS
  • Terminal name/version: iTerm2
  • $TERM: xterm-256color

Steps to reproduce using nvim -u NORC

Create a node remote plugin like:

module.exports = (plugin) => {
  let { nvim } = plugin
  plugin.registerCommand('OpenList', async () => {
    await nvim.command('botright 5sp list://abc')
    this.window = await nvim.window
    await this.window.request(`nvim_win_set_height`, [this.window, 5])
  })
}

in ~/.config/nvim/rplugin/node/ and run :UpdateRemotePlugins

nvim -u NORC
:autocmd BufEnter * lcd %:p:h
:OpenList

Actual behaviour

Screen Shot 2019-04-01 at 2 50 28 PM

Expected behaviour

Neovim send error to client or ignore the error like vim.

@justinmk justinmk added bug issues reporting wrong behavior api libnvim, Nvim RPC API help wanted labels Apr 1, 2019
@justinmk justinmk added this to the todo milestone Apr 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api libnvim, Nvim RPC API bug issues reporting wrong behavior
Projects
None yet
Development

No branches or pull requests

3 participants