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

respect the film-strip option #87

Merged
merged 1 commit into from
May 20, 2014
Merged

respect the film-strip option #87

merged 1 commit into from
May 20, 2014

Conversation

joetuson
Copy link

No description provided.

@joetuson
Copy link
Author

Phantomjs is crashing on certain urls when the --film-strip option is present. grunt phantomas exits with a random Fatal error: Unexpected token P

@stefanjudis
Copy link
Owner

Hey. Okay thank you. Didn't notice that behavior.
Looks good. :)

Could you please fix tests? After that we can release patch. :)
And did you check phantomas itself? Is @macbre aware of that?

@joetuson
Copy link
Author

Okay, I've changed it so that it's on by default unless you set film-strip to false.

Yup, PhantomJS crashes on certain urls even just using phantomas itself with film-strip=true. Looking into why...

@stefanjudis
Copy link
Owner

Great. Thanks a lot... will release patch today and make a note to readme.

Is the error clear, when it happens in grunt-phantomas? Would like to update readme with something like:

"If you see this error - error - please set 'film-strip' to false."

Maybe you can share it? :)

@joetuson
Copy link
Author

Sure thing, happy to, but the error is extremely non-descriptive. grunt phantomas crashes with Fatal error: Unexpected token P and PhantomJS just says "Please report this error" - Will paste the output and try and update the README in a clear way.

@stefanjudis
Copy link
Owner

Hmm... that's kind of disappointing. ;)

Thanks for investigating.

But if it's such a undescribtive and regular bug, why not switching film strip off as default. I mean, in my opinion stableness is more important than the images?
What do you think?

@stefanjudis stefanjudis added this to the v0.7.2 milestone May 17, 2014
@joetuson
Copy link
Author

The filmstrip feature is cool, so I like it by default. I'm trying to get it to error out more gracefully, rather than just die, but I haven't had much luck so far.

I haven't tested enough URL's to be sure, but it might just be a problem in the page I am testing. @macbre has flagged the film-strip option as experimental, so I've added a Troubleshooting section in the README

PS - great job with this plugin, it's awesome. Thanks so much.

@stefanjudis
Copy link
Owner

Great. I'm on a conference the next two days, so I won't be able to merge today. But looks good.

Thanks a lot. Plan to merge and release new version during the week. :)

@macbre
Copy link

macbre commented May 19, 2014

👍

@@ -308,7 +308,7 @@ Phantomas.prototype.executePhantomas = function() {
options = _.clone( this.options.options );

// run it only for the first run
if ( i === 0 ) {
if ( i === 0 && options['film-strip'] !== false) {
options[ 'film-strip' ] = true;
Copy link
Owner

Choose a reason for hiding this comment

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

One tiny little thing.
Can I have three more spaces here?

Will merge after that. :)
And sorry for being picky on coding style...

Copy link
Author

Choose a reason for hiding this comment

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

Haha, of course. NP, picky is good :)

@joetuson
Copy link
Author

By the way, our use case requires passing in parameters via the command line i.e. grunt phantomas --film-strip=true - would you be interested in a PR that allowed that?

@stefanjudis
Copy link
Owner

Thanks a lot for contribution. :bowtie:

Let's discuss last question in #89. :)

stefanjudis added a commit that referenced this pull request May 20, 2014
respect the film-strip option
@stefanjudis stefanjudis merged commit 2ad24f6 into stefanjudis:master May 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants