vim-denops / denops.vim

🐜 An ecosystem of Vim/Neovim which allows developers to write cross-platform plugins in Deno
https://vim-denops.github.io/denops-documentation/
MIT License
665 stars 33 forks source link

`input()` returns `null` on MacVim 8.2.2681 when `g:denops#debug = 1` is specified in vimrc #93

Closed lambdalisue closed 3 years ago

lambdalisue commented 3 years ago
  1. Add let g:denops#debug = 1 in .vimrc
  2. Start Vim
  3. Execute HelloWorld on denops-helloworld.vim
Messages maintainer: Bram Moolenaar <Bram@vim.org>
[denops] channel server start: ['deno', 'run', '-q', '--no-check', '--allow-net', '/Users/alisue/ghq/github.com/vim-denops/denops.vim/denops/@denops-private/channel/cli.ts']
[denops] service server start: ['deno', 'run', '-q', '--unstable', '-A', '/Users/alisue/ghq/github.com/vim-denops/denops.vim/denops/@denops-private/service/cli.ts', '--mode=vim', '--address={"transport":"tcp","hostname":"127.0.0.1","port":57856}']
[denops] register plugin: ['ghosttext', '/Users/alisue/.vim/pack/minpac/start/dps-ghosttext.vim/denops/ghosttext/main.ts', {'platform': 'mac', 'host': 'vim', 'mode': 'debug', 'version': '8.2.2681'}, {'reload': v:false}]
[denops] register plugin: ['gin', '/Users/alisue/.vim/pack/minpac/start/gin.vim/denops/gin/main.ts', {'platform': 'mac', 'host': 'vim', 'mode': 'debug', 'version': '8.2.2681'}, {'reload': v:false}]
[denops] register plugin: ['helloworld', '/Users/alisue/.vim/pack/minpac/start/denops-helloworld.vim/denops/helloworld/main.ts', {'platform': 'mac', 'host': 'vim', 'mode': 'debug', 'version': '8.2.2681'}, {'reload': v:false}]
[denops] register plugin: ['benchmark', '/Users/alisue/.vim/pack/minpac/start/denops-benchmark/denops/benchmark/main.ts', {'platform': 'mac', 'host': 'vim', 'mode': 'debug', 'version': '8.2.2681'}, {'reload': v:false}]
[denops] channel server resolve: {"transport":"tcp","hostname":"127.0.0.1","port":57856}

Hello World. Your name is null. This is Vim

Somehow, it doesn't happen when let g:denops#debug = 1 is specified with call denops#server#restart() after Vim startup.

lambdalisue commented 3 years ago

Somehow, it doesn't happen when let g:denops#debug = 1 is specified with call denops#server#restart() after Vim startup.

The value of running mode has cached. Fixed by https://github.com/vim-denops/denops.vim/pull/94/commits/fdc6d0b41ed472f6a1c19ee1200a5d58232d45a5