-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autocomplete for external libs doesn't work #126
Comments
I am seeing this too. With cheerio. But other modules seem fine. I guess this may have something to do with how cheerio defines methods or something. |
@artemave Well, I've tried express = require('express');
app = express();
app. The above only shows my |
just checked with I guess you're right, probably the way the module defines methods. @marijnh any chance you can confirm this? |
Tern's type inference isn't infallible, it will fail to infer some types, especially when they are created with strange patterns. |
same issue with me |
Am also facing the same issue with "cheerio" package. |
I landed here due to the exact same scenario as @mikeys with express and app. |
Same, is it fixable somehow ? The issue has been opened for two years I'm curious is there is a workaround. |
I think this issue should belong to tern itself. https://github.com/ternjs/tern/ |
Using Vim with YCM installed:
mkdir cheerio & cd cheerio
cheerio
package:npm install cheerio
(this creates anode_modules
directory).tern-project
file and add the node plugin inside:index.js
for example) and start typing:Only the basic Object functions appear in the autocomplete menu.
Am I missing something? Is there anything else that I should do in order for enabling external libraries autocomplete ?
The text was updated successfully, but these errors were encountered: