tsuquyomi icon indicating copy to clipboard operation
tsuquyomi copied to clipboard

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

Open cazgp opened this issue 6 years ago • 9 comments

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 avatar Apr 13 '18 16:04 cazgp

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

cazgp avatar Apr 13 '18 16:04 cazgp

I am also having the exact same issue

ben-wall avatar Apr 15 '18 12:04 ben-wall

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

antoniobusrod avatar Apr 20 '18 08:04 antoniobusrod

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

ben-wall avatar Apr 20 '18 16:04 ben-wall

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.

varsis avatar Apr 24 '18 21:04 varsis

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.

cazgp avatar Aug 28 '18 09:08 cazgp

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

joshuavial avatar Sep 15 '18 02:09 joshuavial

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

lmiller1990 avatar Oct 19 '18 09:10 lmiller1990

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

also works for me

richsoni avatar Jan 03 '19 21:01 richsoni