-
Notifications
You must be signed in to change notification settings - Fork 945
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
Actions not being parsed properly #165
Comments
also getting this on |
I am also getting this right after upgrading to 0.6.2 |
This seems to be an optimist/node issue. forever removes the action argument ('start' in this case) and then invokes optimist for option parsing, but optimist still gets the original argv array with action present. hence a lot of indexes are off by 1. |
also getting this on node |
Is there any workaround meanwhile? |
Running node |
Found a temporary fix. edit
should be
|
If no action is specified, you can still run forever (i.e., don't use On Mon, Nov 21, 2011 at 10:53 PM, Cam Pedersen
|
as far as I could debug it seems like optimist is being loaded before forever remove the action from process.argv, so optimist parse process.argv when the action is still there. now this is very strange as I can't see any require('optimist') before action removal in forever. |
It seems like the problem is a bit more complex. After fixing the argv parsing issue, it won't load the script in daemon mode. It seems like daemon module doesn't work properly with node 0.6.x |
If you |
Err misclick. Someone is looking into this. |
This may be a regression in a downstream dependency |
yes, you are right. so it seems like forever and the "daemonized" process are not able to communicate. |
This is fixed in #166. @indexzero, are we able to get it merged soon? |
@mmalecki. Reviewing it now. |
I accidentally got snared by this as well. |
Thanks for the fix fellas. Once |
Uh oh. Using Node 0.6.0, forever 0.7.3, manually updated nconf to 0.4.6 |
Sorry, but I can't see how |
any news on this issue? |
Waiting for |
Ok, this fixes the parsing issue. There are more errors regard daemonized processes are not being seen by forever. But it is not part of this issue. So I will check it there is one about that, and if not I will create one. Thanks a lot! |
|
@mmalecki updated via npm instead of via git and no regression. That's good, if not a little strange. Thanks. I think this issue can be closed. |
As you wish! Thanks for help :). |
I think this has happened before, perhaps some kind of regression, but here's an example
The same thing happens with any 'action' (logs, lists, etc)- so it seems like a command line options parsing issue.
Thanks!
(this is on an ec2 machine with whatever their flavor of fedora-ish linux is using node
0.6.1
)The text was updated successfully, but these errors were encountered: