Quramy / tsuquyomi

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

Vim 7.4 listReferences broken v:t_dict undefined. #225

Open coballast opened 6 years ago

coballast commented 6 years ago

If I try to use the list references command, my vim console:

E121: Undefined variable: v:t_dict
E15: Invalid expression: type(l:res) == v:t_dict && has_key(l:res, 'refs')

If I edit tququyomi.vim and remove those type checks, things work fine, but I'm guessing those are there for a reason?

Also I installed with Pathogen/vimproc. Typescript is locally installed in the project, version 2.8.3

pgrunde commented 6 years ago

Pathogen / vimproc install here as well, same issue. Working with typescript 3.0.1

prabirshrestha commented 6 years ago

For old vim you need to use type({}) instead of v:t_dict.

In the mean time I would also recommend you to update vim if possible.