-
Notifications
You must be signed in to change notification settings - Fork 109
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
Environment variable is undefined #24
Comments
ooh interesting, we need to pass environment vars through to the sub process I think |
you might be able to work around temporarily with
|
@jeromecovington I'm not reproducing your problem here test.js: console.log(process.env.FOO) $ env FOO='ok' 0x -d 0 test.js
ok
file:///Users/davidclements/z/0x/profile-8161/flamegraph.html (using -d 0 set remove delay, has no effect on env recog.) could you try the same isolated case? |
I am getting |
no it's working for me - what version of 0x and what version of node are you running? 0x doesn't have a -v flag, but to get the version:
Going to add a -v flag |
node 4.2.3 |
what OS? |
ah okay - you must be on linux - just tried on an ubuntu VM and able to reproduce |
Yep. I'm Ubuntu 15.10 at the moment.
|
yah okay - I know what it is - we have to run perf with sudo, which means the process runs with sudo which is a different environment and hence different env vars, fixing now |
should be fixed: 88eae6f caveat is if sudoers sec. policy disallows use of -E flag (I think this is (hopefully) a rare enough case to ignore) 2.2.5 released |
Yep that sorted it. Thanks! |
I can run this command with
node
, but when I run it with0x
it seems thatprocess.env.BENCHMARK
isundefined
? Do environment variables not get picked up by0x
?The text was updated successfully, but these errors were encountered: