Quantcast

Grails bug with cygwin terminal

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Grails bug with cygwin terminal

bond_
The error that I'm seeing is:

$ grails
cygpath: can't convert empty path

| Loading Grails 2.1.2
| Configuring classpath

Is this a bug with grails scripts??

--
Ravi Teja Lokineni | Software Engineer
SemanticBits India Pvt. Ltd.



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Grails bug with cygwin terminal

bond_
After a little debugging it's happening at line 266 of startGrails (v2.1.2)

CP=`cygpath --path --mixed "$CP"`


On Wed, Dec 19, 2012 at 11:36 AM, Ravi Teja Lokineni <[hidden email]> wrote:
The error that I'm seeing is:

$ grails
cygpath: can't convert empty path

| Loading Grails 2.1.2
| Configuring classpath

Is this a bug with grails scripts??

--
Ravi Teja Lokineni | Software Engineer
SemanticBits India Pvt. Ltd.






--
Ravi Teja Lokineni | Software Engineer
SemanticBits India Pvt. Ltd.



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Grails bug with cygwin terminal

bond_
Answering my own question :P

The startGrails script expects that we set either CP or CLASSPATH environment variable. Once we set that everything is back to normal


On Wed, Dec 19, 2012 at 12:06 PM, Ravi Teja Lokineni <[hidden email]> wrote:
After a little debugging it's happening at line 266 of startGrails (v2.1.2)

CP=`cygpath --path --mixed "$CP"`


On Wed, Dec 19, 2012 at 11:36 AM, Ravi Teja Lokineni <[hidden email]> wrote:
The error that I'm seeing is:

$ grails
cygpath: can't convert empty path

| Loading Grails 2.1.2
| Configuring classpath

Is this a bug with grails scripts??

--
Ravi Teja Lokineni | Software Engineer
SemanticBits India Pvt. Ltd.






--
Ravi Teja Lokineni | Software Engineer
SemanticBits India Pvt. Ltd.






--
Ravi Teja Lokineni | Software Engineer
SemanticBits India Pvt. Ltd.



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Grails bug with cygwin terminal

Marco Vermeulen
This was reported as a bug on GVM, but it looks more like a Grails/Cygwin compatibility issue if anything.

With that said, Grails still seems to work without setting CLASSPATH or CP despite dumping the message to the console.

Shall we raise a Jira for this?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Grails bug with cygwin terminal

Chanwit Kaewkasi
Hi all,

This bug also bites me. Thank you, Ravi, for pointing that out.
I've filed an issue and pull a request.

http://jira.grails.org/browse/GRAILS-9778
https://github.com/grails/grails-core/pull/316

Best regards,

-chanwit

--
Chanwit Kaewkasi
twitter.com/chanwit


On Mon, Jan 7, 2013 at 5:35 PM, Marco Vermeulen
<[hidden email]> wrote:

> This was reported as a  bug on GVM <https://github.com/gvmtool/gvm/issues/22>
> , but it looks more like a Grails/Cygwin compatibility issue if anything.
>
> With that said, Grails still seems to work without setting CLASSPATH or CP
> despite dumping the message to the console.
>
> Shall we raise a Jira for this?
>
>
>
> --
> View this message in context: http://grails.1312388.n4.nabble.com/Grails-bug-with-cygwin-terminal-tp4639236p4639850.html
> Sent from the Grails - user mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Grails bug with cygwin terminal

bond_
Just a small note to the fix:

You should have used:

if [ ! -z $CP ] ; then 

(or)

if [ -n $CP ]; then

(or)



On Mon, Jan 21, 2013 at 11:25 PM, Chanwit Kaewkasi <[hidden email]> wrote:
Hi all,

This bug also bites me. Thank you, Ravi, for pointing that out.
I've filed an issue and pull a request.

http://jira.grails.org/browse/GRAILS-9778
https://github.com/grails/grails-core/pull/316

Best regards,

-chanwit

--
Chanwit Kaewkasi
twitter.com/chanwit


On Mon, Jan 7, 2013 at 5:35 PM, Marco Vermeulen
<[hidden email]> wrote:
> This was reported as a  bug on GVM <https://github.com/gvmtool/gvm/issues/22>
> , but it looks more like a Grails/Cygwin compatibility issue if anything.
>
> With that said, Grails still seems to work without setting CLASSPATH or CP
> despite dumping the message to the console.
>
> Shall we raise a Jira for this?
>
>
>
> --
> View this message in context: http://grails.1312388.n4.nabble.com/Grails-bug-with-cygwin-terminal-tp4639236p4639850.html
> Sent from the Grails - user mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email





--
Ravi Teja Lokineni | Software Engineer
SemanticBits India Pvt. Ltd.


Loading...