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

Runtime error encountered: Cannot change settings between gathering and auditing #4958

Closed
wants to merge 2 commits into from

Conversation

wardpeet
Copy link
Collaborator

I couldn't run lighthouse-cli with -A anymore. I would always get the following error:

Runtime error encountered: Cannot change settings between gathering and auditing
Error: Cannot change settings between gathering and auditing

It seems that lodash isEqual checks the length of our objects which are not the same. The saved artifact removes all undefined values as it uses JSON.stringify. I convert all undefined values to null so it keeps the keys intact.

Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch @wardpeet thanks for raising! this is a major pain.

I propose fixing this in config. Instead of assigning all the flags we see, we essentially pluck only the valid settings keys to stick into settings. I can pick that up. It does mean that older artifacts will still fail but moving forward they should be OK.

@brendankenny
Copy link
Member

I propose fixing this in config. Instead of assigning all the flags we see, we essentially pluck only the valid settings keys to stick into settings.

This sounds good 👍

@wardpeet
Copy link
Collaborator Author

Sounds good. Feel free to close :)

@patrickhulce
Copy link
Collaborator

cool beans, it's over in #4960

@paulirish paulirish deleted the bug/cli-args branch April 12, 2018 23:14
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

Successfully merging this pull request may close these issues.

5 participants