Quantcast
Channel: Node.js Tools for Visual Studio
Viewing all articles
Browse latest Browse all 4630

Commented Unassigned: Not getting completion most of the time [1771]

$
0
0
So I am new to nodejs and and installed NTVS on a fresh install of VS2013 community on Win7 64. The intellisense is maddening. Sometimes I get something while other times I get nothing at all. Frankly in its current state is it way beyond useless.

Let's take something simple like the body-parser npm. I do a require and then do an app.use(bodyParser.urlencoded({ extended: true })). I do not see urlencoded in intellisense. I do not see json methods. But I do see some 20 setters, getters, methods, etc.

That was on the 12-12- build so I upgraded to the 12-19 build with same issues.

I watch the video and it shows intellisense even into modules just created. I am never able to get intellisense into any modeule I create.

Thoughts?

Regards,
Ron
Comments: I'm sorry to hear of your troubles. Unfortunately some of the code body-parser uses leaves our analysis engine underreporting actual methods. We err on the side of correctness which can in some circumstances result in underreporting all methods on an object. ``` fs.readdirSync(parsersDir).forEach(function onfilename(filename) { if (!/\.js$/.test(filename)) return var loc = path.resolve(parsersDir, filename) var mod var name = path.basename(filename, '.js') function load() { if (mod) { return mod } return mod = require(loc) } Object.defineProperty(exports, name, { configurable: true, enumerable: true, get: load }) }) ```

Viewing all articles
Browse latest Browse all 4630

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>