Error when running grunt - odk survey

Dear Mitch,

I have followed the instructions in the odksurvey configuration and
further installed vagrant but still when I try running grunt from my
project window i gen this error:

*cxdoyo@-16648:~/Documents/ODK/appDesigner_rev126_full$ gruntdetected
non-Windows environmentRunning "server" taskRunning "connect:livereload"
(connect) taskStarted connect web server on http://localhost:8000Running
"open:server" (open) taskWarning: Command failed: /bin/sh: 1: Google: not
found Use --force to continue.Aborted due to warnings.Execution Time
(2015-05-13 13:13:26 UTC)loading tasks 446ms
▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 91%connect:livereload 30ms ▇▇▇
6%open:server 11ms ▇ 2%Total
488mscxdoyo@16648:~/Documents/ODK/appDesigner_rev126_full$ *

Please what could be the problem.

Collins

Do you have Chrome installed on your machine?

··· On Wed, May 13, 2015 at 6:24 AM, Collins McAdoyo wrote:

Dear Mitch,

I have followed the instructions in the odksurvey configuration and
further installed vagrant but still when I try running grunt from my
project window i gen this error:

*cxdoyo@-16648:~/Documents/ODK/appDesigner_rev126_full$ gruntdetected
non-Windows environmentRunning "server" taskRunning "connect:livereload"
(connect) taskStarted connect web server on http://localhost:8000
http://localhost:8000Running "open:server" (open) taskWarning: Command
failed: /bin/sh: 1: Google: not found Use --force to continue.Aborted due
to warnings.Execution Time (2015-05-13 13:13:26 UTC)loading tasks
446ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 91%connect:livereload
30ms ▇▇▇ 6%open:server 11ms ▇ 2%Total
488mscxdoyo@16648:~/Documents/ODK/appDesigner_rev126_full$ *

Please what could be the problem.

Collins

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi Collin,

could you be using Chromium? Then that could be program name you'd have to supply to Grunt (instead of Chrome or Google Chrome)

Dear Sam,

Yes; I have chrome, NodeJS all running well. My OS is Linux 12.04

C

··· -----Original Message----- From: "Sam Sudar" Sent: ‎5/‎13/‎2015 5:39 PM To: "ODK Community" Subject: Re: [ODK Community] Error when running grunt - odk survey

Do you have Chrome installed on your machine?

On Wed, May 13, 2015 at 6:24 AM, Collins McAdoyo collins.adoyo@gmail.com wrote:

Dear Mitch,

I have followed the instructions in the odksurvey configuration and further installed vagrant but still when I try running grunt from my project window i gen this error:

cxdoyo@-16648:~/Documents/ODK/appDesigner_rev126_full$ grunt
detected non-Windows environment

Running "server" task

Running "connect:livereload" (connect) task
Started connect web server on http://localhost:8000

Running "open:server" (open) task
Warning: Command failed: /bin/sh: 1: Google: not found
Use --force to continue.

Aborted due to warnings.

Execution Time (2015-05-13 13:13:26 UTC)
loading tasks 446ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 91%
connect:livereload 30ms ▇▇▇ 6%
open:server 11ms ▇ 2%
Total 488ms
cxdoyo@16648:~/Documents/ODK/appDesigner_rev126_full$

Please what could be the problem.

Collins

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

I think the problem is likely this section in Gruntfile.js:

// Mac (and maybe others--add as discovered), expects
// Google Chrome
grunt.log.writeln('detected non-Windows environment');
return 'Google Chrome';

It basically is determining that you're not on a windows machine and trying
to launch Chrome. The command to launch Chrome differs platform to
platform, and I couldn't find a list of what they all were when writing the
Gruntfile. At this point in the script it looks like everything has worked
fine, it just fails when it tries to open Chrome for you.

This is the module we're using to try and open things for you:

I'm not sure how it is using the magic Chrome string there, so I can't
provide any sure answers. Chrome, chrome, Google Chrome, etc, are all
reasonable things to try. You can also just comment out the app parameter
entirely, and the default system browser should open instead. You can then
navigate to localhost:8000 on your own.

If you do find what the magic string should be for linux, I'll add it to
the Gruntfile.

Let me know if you're still stuck.

··· On Wed, May 13, 2015 at 7:49 AM, Collins Adoyo wrote:

Dear Sam,

Yes; I have chrome, NodeJS all running well. My OS is Linux 12.04

C

From: Sam Sudar sudar.sam@gmail.com
Sent: ‎5/‎13/‎2015 5:39 PM
To: ODK Community opendatakit@googlegroups.com
Subject: Re: [ODK Community] Error when running grunt - odk survey

Do you have Chrome installed on your machine?

On Wed, May 13, 2015 at 6:24 AM, Collins McAdoyo collins.adoyo@gmail.com wrote:

Dear Mitch,

I have followed the instructions in the odksurvey configuration and
further installed vagrant but still when I try running grunt from my
project window i gen this error:

*cxdoyo@-16648:~/Documents/ODK/appDesigner_rev126_full$ gruntdetected
non-Windows environmentRunning "server" taskRunning "connect:livereload"
(connect) taskStarted connect web server on http://localhost:8000
http://localhost:8000Running "open:server" (open) taskWarning: Command
failed: /bin/sh: 1: Google: not found Use --force to continue.Aborted due
to warnings.Execution Time (2015-05-13 13:13:26 UTC)loading tasks
446ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 91%connect:livereload
30ms ▇▇▇ 6%open:server 11ms ▇ 2%Total
488mscxdoyo@16648:~/Documents/ODK/appDesigner_rev126_full$ *

Please what could be the problem.

Collins

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dear Sam,

So grunt can run through a different browser other than Chrome?

C

··· -----Original Message----- From: "Sam Sudar" Sent: ‎5/‎13/‎2015 6:17 PM To: "ODK Community" Subject: Re: [ODK Community] Error when running grunt - odk survey

I think the problem is likely this section in Gruntfile.js:

// Mac (and maybe others--add as discovered), expects
// Google Chrome
grunt.log.writeln('detected non-Windows environment');
return 'Google Chrome';

It basically is determining that you're not on a windows machine and trying to launch Chrome. The command to launch Chrome differs platform to platform, and I couldn't find a list of what they all were when writing the Gruntfile. At this point in the script it looks like everything has worked fine, it just fails when it tries to open Chrome for you.

This is the module we're using to try and open things for you:

I'm not sure how it is using the magic Chrome string there, so I can't provide any sure answers. Chrome, chrome, Google Chrome, etc, are all reasonable things to try. You can also just comment out the app parameter entirely, and the default system browser should open instead. You can then navigate to localhost:8000 on your own.

If you do find what the magic string should be for linux, I'll add it to the Gruntfile.

Let me know if you're still stuck.

On Wed, May 13, 2015 at 7:49 AM, Collins Adoyo collins.adoyo@gmail.com wrote:

Dear Sam,

Yes; I have chrome, NodeJS all running well. My OS is Linux 12.04

C

From: Sam Sudar
Sent: ‎5/‎13/‎2015 5:39 PM
To: ODK Community
Subject: Re: [ODK Community] Error when running grunt - odk survey

Do you have Chrome installed on your machine?

On Wed, May 13, 2015 at 6:24 AM, Collins McAdoyo collins.adoyo@gmail.com wrote:

Dear Mitch,

I have followed the instructions in the odksurvey configuration and further installed vagrant but still when I try running grunt from my project window i gen this error:

cxdoyo@-16648:~/Documents/ODK/appDesigner_rev126_full$ grunt
detected non-Windows environment

Running "server" task

Running "connect:livereload" (connect) task
Started connect web server on http://localhost:8000

Running "open:server" (open) task
Warning: Command failed: /bin/sh: 1: Google: not found
Use --force to continue.

Aborted due to warnings.

Execution Time (2015-05-13 13:13:26 UTC)
loading tasks 446ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 91%
connect:livereload 30ms ▇▇▇ 6%
open:server 11ms ▇ 2%
Total 488ms
cxdoyo@16648:~/Documents/ODK/appDesigner_rev126_full$

Please what could be the problem.

Collins

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Grunt is just a way to automate tasks. In our case, this includes pushing
things to the phone, creating directories, pulling data off of phones, etc.
It also includes running a web server for use in development.

When you type "grunt", it is running a task to start a local web server and
navigate to that server in your browser. You can navigate to that server in
any browser you like. HOWEVER, the ODK code is written and tested against
Chrome, and we don't strive for compatibility with other browsers. So
although you can view the development server in any browser, you should do
it in Chrome, as Chrome is the one we write for.

··· On Wed, May 13, 2015 at 9:04 AM, Collins Adoyo wrote:

Dear Sam,

So grunt can run through a different browser other than Chrome?

C

From: Sam Sudar sudar.sam@gmail.com
Sent: ‎5/‎13/‎2015 6:17 PM

To: ODK Community opendatakit@googlegroups.com
Subject: Re: [ODK Community] Error when running grunt - odk survey

I think the problem is likely this section in Gruntfile.js:

// Mac (and maybe others--add as discovered), expects
// Google Chrome
grunt.log.writeln('detected non-Windows environment');
return 'Google Chrome';

It basically is determining that you're not on a windows machine and
trying to launch Chrome. The command to launch Chrome differs platform to
platform, and I couldn't find a list of what they all were when writing the
Gruntfile. At this point in the script it looks like everything has worked
fine, it just fails when it tries to open Chrome for you.

This is the module we're using to try and open things for you:

https://github.com/jsoverson/grunt-open

I'm not sure how it is using the magic Chrome string there, so I can't
provide any sure answers. Chrome, chrome, Google Chrome, etc, are all
reasonable things to try. You can also just comment out the app parameter
entirely, and the default system browser should open instead. You can then
navigate to localhost:8000 on your own.

If you do find what the magic string should be for linux, I'll add it to
the Gruntfile.

Let me know if you're still stuck.

On Wed, May 13, 2015 at 7:49 AM, Collins Adoyo collins.adoyo@gmail.com wrote:

Dear Sam,

Yes; I have chrome, NodeJS all running well. My OS is Linux 12.04

C

From: Sam Sudar sudar.sam@gmail.com
Sent: ‎5/‎13/‎2015 5:39 PM
To: ODK Community opendatakit@googlegroups.com
Subject: Re: [ODK Community] Error when running grunt - odk survey

Do you have Chrome installed on your machine?

On Wed, May 13, 2015 at 6:24 AM, Collins McAdoyo <collins.adoyo@gmail.com wrote:

Dear Mitch,

I have followed the instructions in the odksurvey configuration and
further installed vagrant but still when I try running grunt from my
project window i gen this error:

*cxdoyo@-16648:~/Documents/ODK/appDesigner_rev126_full$ gruntdetected
non-Windows environmentRunning "server" taskRunning "connect:livereload"
(connect) taskStarted connect web server on http://localhost:8000
http://localhost:8000Running "open:server" (open) taskWarning: Command
failed: /bin/sh: 1: Google: not found Use --force to continue.Aborted due
to warnings.Execution Time (2015-05-13 13:13:26 UTC)loading tasks
446ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 91%connect:livereload
30ms ▇▇▇ 6%open:server 11ms ▇ 2%Total
488mscxdoyo@16648:~/Documents/ODK/appDesigner_rev126_full$ *

Please what could be the problem.

Collins

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google
Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dear Sam,
I commented out the entire app function as shown below and still am having
errors.

//app: (function() {
// var platform = require('os').platform();
// windows: win
// mac: darwin
// if (platform.search('win') >= 0 &&
// platform.search('darwin') < 0) {
// Windows expects chrome.
// grunt.log.writeln('detected Windows environment');
// return 'chrome';
// } else {
// Mac (and maybe others--add as discovered),
expects
// Google Chrome
// grunt.log.writeln('detected non-Windows
environment');
// return 'Google Chrome';
// }
// })()

··· On Wed, May 13, 2015 at 7:17 PM, Sam Sudar wrote:

Grunt is just a way to automate tasks. In our case, this includes pushing
things to the phone, creating directories, pulling data off of phones, etc.
It also includes running a web server for use in development.

When you type "grunt", it is running a task to start a local web server
and navigate to that server in your browser. You can navigate to that
server in any browser you like. HOWEVER, the ODK code is written and tested
against Chrome, and we don't strive for compatibility with other browsers.
So although you can view the development server in any browser, you should
do it in Chrome, as Chrome is the one we write for.

On Wed, May 13, 2015 at 9:04 AM, Collins Adoyo collins.adoyo@gmail.com wrote:

Dear Sam,

So grunt can run through a different browser other than Chrome?

C

From: Sam Sudar sudar.sam@gmail.com
Sent: ‎5/‎13/‎2015 6:17 PM

To: ODK Community opendatakit@googlegroups.com
Subject: Re: [ODK Community] Error when running grunt - odk survey

I think the problem is likely this section in Gruntfile.js:

// Mac (and maybe others--add as discovered), expects
// Google Chrome
grunt.log.writeln('detected non-Windows environment');
return 'Google Chrome';

It basically is determining that you're not on a windows machine and
trying to launch Chrome. The command to launch Chrome differs platform to
platform, and I couldn't find a list of what they all were when writing the
Gruntfile. At this point in the script it looks like everything has worked
fine, it just fails when it tries to open Chrome for you.

This is the module we're using to try and open things for you:

https://github.com/jsoverson/grunt-open

I'm not sure how it is using the magic Chrome string there, so I can't
provide any sure answers. Chrome, chrome, Google Chrome, etc, are all
reasonable things to try. You can also just comment out the app parameter
entirely, and the default system browser should open instead. You can then
navigate to localhost:8000 on your own.

If you do find what the magic string should be for linux, I'll add it to
the Gruntfile.

Let me know if you're still stuck.

On Wed, May 13, 2015 at 7:49 AM, Collins Adoyo collins.adoyo@gmail.com wrote:

Dear Sam,

Yes; I have chrome, NodeJS all running well. My OS is Linux 12.04

C

From: Sam Sudar sudar.sam@gmail.com
Sent: ‎5/‎13/‎2015 5:39 PM
To: ODK Community opendatakit@googlegroups.com
Subject: Re: [ODK Community] Error when running grunt - odk survey

Do you have Chrome installed on your machine?

On Wed, May 13, 2015 at 6:24 AM, Collins McAdoyo < collins.adoyo@gmail.com> wrote:

Dear Mitch,

I have followed the instructions in the odksurvey configuration and
further installed vagrant but still when I try running grunt from my
project window i gen this error:

*cxdoyo@-16648:~/Documents/ODK/appDesigner_rev126_full$ gruntdetected
non-Windows environmentRunning "server" taskRunning "connect:livereload"
(connect) taskStarted connect web server on http://localhost:8000
http://localhost:8000Running "open:server" (open) taskWarning: Command
failed: /bin/sh: 1: Google: not found Use --force to continue.Aborted due
to warnings.Execution Time (2015-05-13 13:13:26 UTC)loading tasks
446ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 91%connect:livereload
30ms ▇▇▇ 6%open:server 11ms ▇ 2%Total
488mscxdoyo@16648:~/Documents/ODK/appDesigner_rev126_full$ *

Please what could be the problem.

Collins

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google
Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google
Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google
Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

What's the error you're getting with it commented out?

Are you using the rev126 version of the code available for download on the
website? If so I'll make some changes that I think will work and send you
the Gruntfile to try.

··· On Wed, May 13, 2015 at 10:36 PM, Collins O. Adoyo wrote:

Dear Sam,
I commented out the entire app function as shown below and still am having
errors.

//app: (function() {
// var platform = require('os').platform();
// windows: win
// mac: darwin
// if (platform.search('win') >= 0 &&
// platform.search('darwin') < 0) {
// Windows expects chrome.
// grunt.log.writeln('detected Windows
environment');
// return 'chrome';
// } else {
// Mac (and maybe others--add as discovered),
expects
// Google Chrome
// grunt.log.writeln('detected non-Windows
environment');
// return 'Google Chrome';
// }
// })()

On Wed, May 13, 2015 at 7:17 PM, Sam Sudar sudar.sam@gmail.com wrote:

Grunt is just a way to automate tasks. In our case, this includes pushing
things to the phone, creating directories, pulling data off of phones, etc.
It also includes running a web server for use in development.

When you type "grunt", it is running a task to start a local web server
and navigate to that server in your browser. You can navigate to that
server in any browser you like. HOWEVER, the ODK code is written and tested
against Chrome, and we don't strive for compatibility with other browsers.
So although you can view the development server in any browser, you should
do it in Chrome, as Chrome is the one we write for.

On Wed, May 13, 2015 at 9:04 AM, Collins Adoyo collins.adoyo@gmail.com wrote:

Dear Sam,

So grunt can run through a different browser other than Chrome?

C

From: Sam Sudar sudar.sam@gmail.com
Sent: ‎5/‎13/‎2015 6:17 PM

To: ODK Community opendatakit@googlegroups.com
Subject: Re: [ODK Community] Error when running grunt - odk survey

I think the problem is likely this section in Gruntfile.js:

// Mac (and maybe others--add as discovered), expects
// Google Chrome
grunt.log.writeln('detected non-Windows environment');
return 'Google Chrome';

It basically is determining that you're not on a windows machine and
trying to launch Chrome. The command to launch Chrome differs platform to
platform, and I couldn't find a list of what they all were when writing the
Gruntfile. At this point in the script it looks like everything has worked
fine, it just fails when it tries to open Chrome for you.

This is the module we're using to try and open things for you:

https://github.com/jsoverson/grunt-open

I'm not sure how it is using the magic Chrome string there, so I can't
provide any sure answers. Chrome, chrome, Google Chrome, etc, are all
reasonable things to try. You can also just comment out the app parameter
entirely, and the default system browser should open instead. You can then
navigate to localhost:8000 on your own.

If you do find what the magic string should be for linux, I'll add it to
the Gruntfile.

Let me know if you're still stuck.

On Wed, May 13, 2015 at 7:49 AM, Collins Adoyo collins.adoyo@gmail.com wrote:

Dear Sam,

Yes; I have chrome, NodeJS all running well. My OS is Linux 12.04

C

From: Sam Sudar sudar.sam@gmail.com
Sent: ‎5/‎13/‎2015 5:39 PM
To: ODK Community opendatakit@googlegroups.com
Subject: Re: [ODK Community] Error when running grunt - odk survey

Do you have Chrome installed on your machine?

On Wed, May 13, 2015 at 6:24 AM, Collins McAdoyo < collins.adoyo@gmail.com> wrote:

Dear Mitch,

I have followed the instructions in the odksurvey configuration and
further installed vagrant but still when I try running grunt from my
project window i gen this error:

*cxdoyo@-16648:~/Documents/ODK/appDesigner_rev126_full$ gruntdetected
non-Windows environmentRunning "server" taskRunning "connect:livereload"
(connect) taskStarted connect web server on http://localhost:8000
http://localhost:8000Running "open:server" (open) taskWarning: Command
failed: /bin/sh: 1: Google: not found Use --force to continue.Aborted due
to warnings.Execution Time (2015-05-13 13:13:26 UTC)loading tasks
446ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 91%connect:livereload
30ms ▇▇▇ 6%open:server 11ms ▇ 2%Total
488mscxdoyo@16648:~/Documents/ODK/appDesigner_rev126_full$ *

Please what could be the problem.

Collins

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google
Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google
Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google
Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google
Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google
Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.