Closed huyHA9597 closed 2 years ago
Hi, thanks for the detailed report.
This looks to me like a neovim bug. What happens is that the configuration is built as a vim dict which is sent to vimspector, which converts it to a python object with :py3 vim.eval()
. This command succeeds in vim and fails in neovim, because when neovim converts this dict it converts boolean values to strings:
" vim:
:py3 print(vim.eval('{"a":1,"b":v:true,"c":"a string"}'))
" {'a': '1', 'b': True, 'c': 'a string'}
" neovim:
:py3 print(vim.eval('{"a":1,"b":v:true,"c":"a string"}'))
" {'a': '1', 'b': 'True', 'c': 'a string'}
I've started talking to puremourning about it, not sure if the best way forward right now is to try to work around it, or to get it fixed upstream.
@puremourning gave me a tip to use vimspector type coersion to work around this, and now launching the debugger for a project works as expected in neovim.
Details
I created a new console app and create
vimspector.json
file using:OmnisharpCreateDebugConfig
. Then try to debug project using command:OmniSharpDebugProject
and the error happened. But when I using Vimspector command:VimspectorLaunch
, it's ok.Configuration
Neovim version
OS Version
.NET Version and SDK