Quramy / tsuquyomi

A Vim plugin for TypeScript
http://www.vim.org/scripts/script.php?script_id=5151
1.39k stars 72 forks source link

Latest version seems to have broken auto-import and jump to definition #223

Open cazgp opened 6 years ago

cazgp commented 6 years ago

Put cursor on element, TsuDefinition and nothing happens. Put cursor on unimported element, TsuImport and it hangs until pressing ctrl+c when this happens.

Error detected while processing function tsuquyomi#es6import#complete[4]..tsuquyomi#flush[1]..<SNR>119_flush[4]..tsuquyomi#tsClient#tsReload[9]..tsuquyomi#tsClient#sendCommandSyncEvents[2]..tsuquyomi#tsClient#send
Request:
line    6:
E631: ch_sendraw(): write failed

vim --version VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Jul 27 2017 12:21:18) latest hash in tsuquyomi 94f10d312134fc59b53b2e821d3315320f694cf0

cazgp commented 6 years ago

git bisect reveals this is the commit that broke it: ae1b96f6f0af9d462a2b2988cd83d49741c4c82d

ben-wall commented 6 years ago

I am also having the exact same issue

antoniobusrod commented 6 years ago

Checkout commit 0846b4ba1222f35a12de84610bb5cb16ff0b77d7 to get it working again, it works for me :)

ben-wall commented 6 years ago

thanks @antoniobusrod I was about to try this I don't know why I didn't bother in the end

varsis commented 6 years ago

Similar issue for me. It seems to work sometimes but other times it will jump me to the file instead of importing. Will try the previous commit.

cazgp commented 6 years ago

This is still happening. With every update I have to manually alter the file to remove the line. Please can you revert the offending commit?

EDIT: Sorry, that wasn't very helpful. I'm not sure I understand what the change fixes to make it necessary and am therefore nervous to revert the offending commit without a full understanding of what it does. More than happy to make a PR if you can walk me through what needs checking.

joshuavial commented 6 years ago

I had the same issue and was able to work around it with let g:tsuquyomi_use_local_typescript = 0 thanks to #231

lmiller1990 commented 5 years ago

let g:tsuquyomi_use_local_typescript = 0 works for me, too.

richsoni commented 5 years ago

let g:tsuquyomi_use_local_typescript = 0 works for me, too.

also works for me