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

Unable to run "grunt jasmine_chromeapp" #102

Open
dborkan opened this issue Feb 18, 2015 · 4 comments
Open

Unable to run "grunt jasmine_chromeapp" #102

dborkan opened this issue Feb 18, 2015 · 4 comments

Comments

@dborkan
Copy link
Contributor

dborkan commented Feb 18, 2015

Seeing this issue on my Mac with a fresh clone of freedom-social-xmpp:

grunt jasmine_chromeapp
Running "jasmine_chromeapp:all" (jasmine_chromeapp) task
Building...Done.
Starting Reporter...Done.
Starting Chrome...Fatal error: spawn ENOENT
@dborkan
Copy link
Contributor Author

dborkan commented Mar 3, 2015

Any ideas on this? This is still happening with the latest grunt-jasmine-chromeapp version 1.7.0

@willscott
Copy link
Member

@iislucas you mentioned something as well about doing a better search for chrome on the machine.
@dborkan where is your chrome binary?

This seems like a grunt-jasmine-chromeapp bug, rather than a social-xmpp bug.

@dborkan
Copy link
Contributor Author

dborkan commented Mar 3, 2015

Ah I think that's part of the problem. I had several versions of Chrome, but they were all at locations like "/Applications/Google Chrome Beta.app/". I just renamed "/Applications/Google Chrome Stable.app/" to "/Applications/Google Chrome.app/" and now Chrome is starting, however I'm getting some different errors now that are causing all tests to fail:

  • In chrome://extensions I see the error 'content_security_policy' is only allowed for extensions and legacy packaged apps, but this is a packaged app.
  • In the main.html console for the app, I see a lot of errors like Failed to load resource: net::ERR_FILE_NOT_FOUND chrome-extension://khhlpmfebmkkibipnllkeanfadmigbnj/scripts/dist/social.google.json

@willscott
Copy link
Member

for point 1, we do set a CSP: https://github.com/willscott/grunt-jasmine-chromeapp/blob/master/tasks/jasmine-chromeapp/manifest.json#L18
willscott/grunt-jasmine-chromeapp#12

for point 2, it sounds like files aren't getting copied into the right places in this repo.

It looks like that's because when you added the jasmine-chromeapp
d3fd87e
we were still figuring out the syntax

We're now on v1.7, which uses src and paths rather than helper, because we wanted more expressivity in where scripts are placed.

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

2 participants