-
Notifications
You must be signed in to change notification settings - Fork 1
doesn't work in neovim 2.0 on windows when shellslash is enabled #10
Comments
After further digging seems like the actual bug in in stdout parsing in tscompletejob. I had to add func! s:onOut(self, job, msg) dict
....
if s:current_content_length > len
return
elseif s:current_content_length + 1 < len
" something is wrong, so response is dropped
call s:clearResponseCache()
return
endif
.... In async.vim I use |
Thank you your report. I fix parsing response in |
Thanks. Verified works in neovim on windows with shellslash enabled. |
@runoshun Can you give a sample of the result of |
@justinmk Sorry, my idea was wrong. It is not problem of Only on nvim windows, trailing
Certainly, trailing You can get the raw output of tscompletejob backend as follows, if you need it. node C:\<Path to tscompletejob>\autoload\tscompletejob\tsswrapper\tsswrapper.js < command.json > output
{"type": "request", "command": "reload", "seq": 1, "arguments": {"file": "C:\<Path to tscompletejob>/test/sample1.ts", "tmpfile": "/tmp/nvimT2Pm4q/1"} } |
Why would CR exist on linux? |
It is my mistake. On linux, EOL of output is only |
Is it that typescript is using auto EOL based on OS or is it neovim bug for sure? There is also a flag in typescript compiler. microsoft/TypeScript#2921 |
Enabled logging by
let g:tscompletejob__debug__ = 1
This works in vim8.
In neovim 0.2 on windows.
@justinmk here is another case where the outputs are different when
set shellslash
is enabled. Not sure if this is the problem or something else that is actually causing tscompletejob to not work in neovim on windows. I don't think it is a bug in https://github.com/prabirshrestha/asyncomplete-tscompletejob.vim since even things like goto definition doesn't work.The text was updated successfully, but these errors were encountered: