Skip to content

clever hack idea for core modules #1

isaacs opened this Issue Dec 21, 2011 · 0 comments

2 participants

isaacs commented Dec 21, 2011

Re: this in the readme:

Node core modules are listed in the quickfix window, but can't be opened because node.js does not install those files on your local system. I am looking for ideas on a clever hack, otherwise I'll make an option for hiding those files from the error list.

Check this out:

node -e 'console.log(process.binding("natives").fs)' | vim -

Or even:

node -e 'console.log(process.binding("natives").fs)' > /tmp/node-core/fs.js
vim /tmp/node-core/fs.js

I bet you could use that in some way, yeah?

@felixge felixge added a commit that closed this issue Dec 22, 2011
@felixge Hook core files into quickfix window
Thanks to Isaac Schlueter for pointing out a way to load the core files
into memory.

Fixes #1
@felixge felixge closed this in ee880a8 Dec 22, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.