ternjs / tern_for_vim

Tern plugin for Vim
MIT License
1.83k stars 100 forks source link

No expression at the given position on vanilla meteor project. #81

Closed shmup closed 9 years ago

shmup commented 9 years ago

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

marijnh commented 9 years ago

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

shmup commented 9 years ago

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?

marijnh commented 9 years ago

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 ?.