tsuquyomi icon indicating copy to clipboard operation
tsuquyomi copied to clipboard

Install Failed - TSServer Crashing and some commands dont exist.

Open Jonjoe opened this issue 8 years ago • 5 comments

Hey! Im playing with VIM to see if it can replace VS Code for my Typescript/Angular2 stuff. I use vim for everything else for VS Code has so many Typescript specific features that its hard to break away from.

I decided to start again with my Vim configs to see what could be achieved.

Environnment:

  • MacOS Sierra
  • Iterm 2
  • Vim 8.0

VimRC:

set nocompatible
set number
filetype off
set rtp+=~/.vim/bundle/Vundle.vim

call vundle#begin()
	Plugin 'VundleVim/Vundle.vim'
	Plugin 'scrooloose/syntastic'
	Plugin 'shougo/vimproc.vim'
	Plugin 'kien/ctrlp.vim'
	Plugin 'valloric/youcompleteme'	
	
	" ==== Typescript Plugins
	Plugin 'quramy/tsuquyomi'
	Plugin 'leafgarland/typescript-vim'
	Plugin 'Quramy/vim-js-pretty-template'
call vundle#end() 

set backspace=indent,eol,start
set tabstop=2
colorscheme monokai
let g:molokai_original = 1
let g:rehash256 = 1
syntax enable


" | =======================
" | Plugin Configs
" | =======================

" | Typescript
" |------------------------
let g:typescript_compiler_binary = 'tsc'
let g:typescript_compiler_options = ''
autocmd QuickFixCmdPost [^l]* nested cwindow
autocmd QuickFixCmdPost    l* nested lwindow

" | JS Pretty Templates
" |------------------------
autocmd FileType typescript JsPreTmpl html
autocmd FileType typescript syn clear foldBraces

" | Tsuquyomi
" |------------------------
let g:tsuquyomi_disable_quickfix = 1
let g:syntastic_typescript_checkers = ['tsuquyomi']

Error: screen shot 2017-02-12 at 18 17 05

I have installed the vimproc plugin and run the build tools post install.

As you can see whenever I save a typescript file I get this error. Also commands such as :TsuImport dont exist. Any ideas?

Jonjoe avatar Feb 12 '17 18:02 Jonjoe

I'm facing the same issue. Is it because we use Vundle instead of Pathogen or NeoBundle? I wonder.

silviogutierrez avatar Feb 15 '17 23:02 silviogutierrez

Me too... getting [Tsuquyomi] Shougo/vimproc.vim is not installed. Please install it on opening a ts file.

Neats29 avatar Feb 17 '17 12:02 Neats29

Figured it out:

  1. Make sure you add vimproc as a plugin too.
  2. Make sure you run the build command as specified (make).

Profit!

It's all in the instructions, just not for Vundle. Other managers seem to have post-install hooks for running make.

silviogutierrez avatar Feb 17 '17 16:02 silviogutierrez

@silviogutierrez Appreciate the suggestion:

  1. Plugin is installed
  2. Build command ran.

I have edited my issue to account for this.

Jonjoe avatar Feb 18 '17 17:02 Jonjoe

I had to run :VimProcInstall after installing and building vimproc, then it all worked fine.

ahstro avatar May 22 '17 11:05 ahstro