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

Somthing between verion 0.9.0 and 0.9.1 has broken -I feature #138

Open
aomega opened this issue Oct 14, 2011 · 5 comments
Open

Somthing between verion 0.9.0 and 0.9.1 has broken -I feature #138

aomega opened this issue Oct 14, 2011 · 5 comments

Comments

@aomega
Copy link

aomega commented Oct 14, 2011

Hi,

I noticed today that our unit tests have started failing, even though we have not changed our code in the interim. I tracked it down to a version change between 0.9.0 and 0.9.1 of expresso. We use the -I option to name the lib directory for the tests. This works in 0.9.0. In 0.9.1 we get the error:

expresso -I lib

uncaught undefined: Error: Cannot find module 'purger'
at Function._resolveFilename (module.js:317:11)
at Function._load (module.js:262:25)
at require (module.js:346:19)
at Object. (/home/jroberts/workspace/logger/test/test-purger.js:11:14)
at Module._compile (module.js:402:26)
at Object..js (module.js:408:10)
at Module.load (module.js:334:31)
at Function._load (module.js:293:12)
at require (module.js:346:19)
at runFile (/home/jroberts/workspace/logger/node_modules/expresso/bin/expresso:810:15)

@tj
Copy link
Member

tj commented Oct 14, 2011

wont work with node 0.5.x because require.paths is deprecated

@aomega
Copy link
Author

aomega commented Oct 14, 2011

I don't have node 0.5.x. This is on 0.4.11. Are you saying the -I feature has been removed?

@barncow
Copy link

barncow commented Oct 14, 2011

I can confirm this issue. I'm running Node 0.4.12 on Ubuntu 10.04. On version 0.9.0 the -I switch works but not in 0.9.1 or 0.9.2.

@alno
Copy link

alno commented Oct 17, 2011

This option was removed to provide 0.5.x compability - 6961879

But this option is used in many projects. Are there any replacements for it?

@zxcabs
Copy link

zxcabs commented Nov 15, 2011

u can use NODE_PATH

for example:

expresso -I lib test/*

equal

NODE_PATH=lib expresso test/*

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

5 participants