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

📝 Add WARNING for using input() in debug mode #94

Merged
merged 2 commits into from
Aug 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions autoload/denops/util.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ let s:sep = has('win32') ? '\' : '/'
let s:root = expand('<sfile>:h:h:h')

function! denops#util#meta() abort
let mode = g:denops#_test ? 'test' : g:denops#debug ? 'debug' : 'release'
if exists('s:meta')
return s:meta
return extend({'mode': mode}, s:meta, 'keep')
endif
let l:host = has('nvim') ? 'nvim' : 'vim'
let l:version = s:get_host_version()
let l:platform = has('win32') ? 'windows' : has('mac') ? 'mac' : 'linux'
let s:meta = {
\ 'mode': g:denops#_test ? 'test' : g:denops#debug ? 'debug' : 'release',
\ 'mode': mode,
\ 'host': l:host,
\ 'version': l:version,
\ 'platform': l:platform,
Expand Down
5 changes: 5 additions & 0 deletions doc/denops.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ VARIABLE *denops-variable*
Note that the debug mode would affect the performance so disable it
unless you are debugging deno plugins.

WARNING In debug mode, any interactive functions (such as |input()|)
does not work properly in Vim prior to 8.2.3081 due to internal
workaround implementations. See an issue #93 for details.
https://github.com/vim-denops/denops.vim/issues/93

Default: 0

*g:denops#server#channel#deno*
Expand Down