Skip to content
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

:Nopen for built-ins doesn't work for io.js #23

Open
rstacruz opened this issue Aug 5, 2015 · 8 comments
Open

:Nopen for built-ins doesn't work for io.js #23

rstacruz opened this issue Aug 5, 2015 · 8 comments

Comments

@rstacruz
Copy link

rstacruz commented Aug 5, 2015

Just thought you'd know that using Nopen for bulitns (eg :Nopen fs) doesn't work for io.js. It'll try to look for the file for node v2.5.0 (or whatever version you're on).

@moll
Copy link
Owner

moll commented Aug 6, 2015

Hey!

Thanks. I'll look into that. I haven't yet gotten on the Io.js wagon myself, but given that it's often symlinked as node, might make sense to open the right URLs.

@moll
Copy link
Owner

moll commented Aug 7, 2015

Ugh, both Io.js and Node.js don't return their name on --version. I guess that means having to check if node is a symlink...

@rstacruz
Copy link
Author

rstacruz commented Aug 7, 2015

node --help | grep iojs maybe?

@rstacruz
Copy link
Author

rstacruz commented Aug 7, 2015

I'd suggest against checking if node is a symlink—it can be the case for, say, homebrew installs.

@moll
Copy link
Owner

moll commented Aug 7, 2015

I meant checking if it symlinks to a binary named iojs, not that it's merely a symlink. Running help before --version would work, too.

@rstacruz
Copy link
Author

rstacruz commented Aug 7, 2015

That would actually be a bad idea too ;)

→  ls -la /usr/local/bin/iojs
lrwxr-xr-x  1 rsc  brew  29 Jun 28 18:09 /usr/local/bin/iojs -> ../Cellar/iojs/2.3.1/bin/iojs

@moll
Copy link
Owner

moll commented Aug 7, 2015

It still points to a binary named iojs. :)

@rstacruz
Copy link
Author

rstacruz commented Aug 7, 2015

ah!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants