tern
tern copied to clipboard
Fail to work for my ES6 project with the latest release
Peace and safe to all! I currently need some help to get tern work for my ES6 project.
Issue
I use vim for text editing and use YouCompleteMe for autocompletion and Tagbar for code navigation. When working with JS project, both plugins have hard dependency on Tern. ES5 projects(like node based) work fine for me but ES6 not.
Background info
I am using Vim7.4 on Mac EI Captain.
The installed tern by tern/tern_for_vim is version 0.20 which is the latest.
I have a basic .tern-config in my $HOME repo, and for the project scope, here is my .tern-project:
The project's folder structure:

Problem detail
When i want to edit some JS source file, for example, some live under $root/src/js/views, no ctags will be generated,
No tags found
The libs works fine, when i type document. YCM works correctly, but ES6 imported modules have no completion at all. More fun thing is that when i use glob pattern above, the libs fails either, it only works when i use something like src/*/*/*.js or when i deleted the whole loadEagerly attribute.
Note
I've been blocked by this problem for a while due to the dependency issue, and i used to work fine with tern but on another Mac, so i'm not quite sure whether it's an individual or tern-relevant issue. Any help will be highly appreciated!
Tern does not, and has never, generated ctags. If you're using a module loader, you don't need loadEagerly. — But it also shouldn't break things. I'll look into this when I have time.