ternjs/tern_for_vim

No expression at the given position on vanilla meteor project.

shmup opened this issue · 3 comments

Just created a new meteor project to test out tern_for_vim.

I'm seeing a ? when cursor is on line 22.

I'm seeing No expression at the given... if I'm on a blank line.

tern

What were you expecting to happen? (And which command are you running?)

Well I think what threw me off is that this is being called a TernError, but there is nothing more going on than a: meteor create foo and opening the initial foo.js file.

I guess if you can just say that what I'm experiencing is what I should be, then I'll close this (and probably remain a bit confused heh).

What do you mean which command am I using though?

Well, which kind of query you are making -- TernType, TernDef, etc. But yes, this is probably expected behavior -- when your cursor is in the middle of whitespace, there is no type that can be given for the current expression. When you query the type of something that doesn't return anything, you'll get a ?.