| Author |
Message |
|
| Guest |
Posted: Wed Sep 05, 2007 7:17 am |
|
|
|
Guest
|
Last time i tried on windows box few months ago it did not work
properly... if anyone had success on windows pls. let us know.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Thu Sep 06, 2007 7:10 am |
|
|
|
Guest
|
Yes, that's bad. It looks like erlyweb:compile() didn't pick up your
controllers. I'm guessing this is a Windows-related problem, but I
can't verify it without a Windows box. Would you mind zipping your
whole app dir and emailing it to me? Also, if someone can verify that
erlyweb:compile() works on windows, it would be great...
Yariv
On 9/5/07, Ghalib Suleiman <cowmoo@gmail.com> wrote:
>
> I get {0, nil}. That's probably bad, right?
>
> On Sep 5, 10:45 am, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > Hmm... maybe it's a Windows issue I'm not seeing on the Mac. Is anyone
> > using ErlyWeb on Windows sucessfully?
> >
> > There's one more thing you can try... In the yaws shell, type
> > 'testapp_erlyweb_data:components().', and let me know what result
> > this function returns.
> >
> > On 9/3/07, Ghalib Suleiman <cow...@gmail.com> wrote:
> >
> >
> >
> > > Still nothing...same effect as erlyweb:compile/1 :-/
> >
> > > On Sep 3, 8:55 pm, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > > > Oops, I gave you the wrong instruction. It's
> > > > 'erlyweb:compile("C:/test/testapp", [{auto_compile, true}]).' (the
> > > > second parameter is a list).
> >
> > > > On 9/3/07, Ghalib Suleiman <cow...@gmail.com> wrote:
> >
> > > > > Setting appmods to <"/", erlyweb> didn't work, same thing. My
> > > > > controller and view files are in the directory you indicated.
> >
> > > > > I tried erlyweb:com pile("c:/test/testapp", {auto_compile, true})
> > > > > and I got:
> >
> > > > > 1> erlyweb:compile("C:/test/testapp", {auto_compile, true}).
> > > > > ** exited: {function_clause,[{lists,foldl,
> > > > > [#Fun<erlyweb_compile.
> > > > > 0.117977794>,
> > > > > ["C:/test/testapp/src"],
> > > > > {auto_compile,true}]},
> > > > > {erlyweb_compile,compile,2},
> > > > > {erl_eval,do_apply,5},
> > > > > {shell,exprs,6},
> > > > > {shell,eval_loop,3}]} **
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Thu Sep 06, 2007 9:34 pm |
|
|
|
Guest
|
Hi Yariv, tried Erlyweb on my Mac at home and everything worked
beautifully...I will email you my app dir when I'm on Windows at the
office on Saturday morning (Friday evening California time).
On Sep 6, 11:10 am, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> Yes, that's bad. It looks like erlyweb:compile() didn't pick up your
> controllers. I'm guessing this is a Windows-related problem, but I
> can't verify it without a Windows box. Would you mind zipping your
> whole app dir and emailing it to me? Also, if someone can verify that
> erlyweb:compile() works on windows, it would be great...
>
> Yariv
>
> On 9/5/07, Ghalib Suleiman <cow...@gmail.com> wrote:
>
>
>
> > I get {0, nil}. That's probably bad, right?
>
> > On Sep 5, 10:45 am, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > > Hmm... maybe it's a Windows issue I'm not seeing on the Mac. Is anyone
> > > using ErlyWeb on Windows sucessfully?
>
> > > There's one more thing you can try... In the yaws shell, type
> > > 'testapp_erlyweb_data:components().', and let me know what result
> > > this function returns.
>
> > > On 9/3/07, Ghalib Suleiman <cow...@gmail.com> wrote:
>
> > > > Still nothing...same effect as erlyweb:compile/1 :-/
>
> > > > On Sep 3, 8:55 pm, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > > > > Oops, I gave you the wrong instruction. It's
> > > > > 'erlyweb:compile("C:/test/testapp", [{auto_compile, true}]).' (the
> > > > > second parameter is a list).
>
> > > > > On 9/3/07, Ghalib Suleiman <cow...@gmail.com> wrote:
>
> > > > > > Setting appmods to <"/", erlyweb> didn't work, same thing. My
> > > > > > controller and view files are in the directory you indicated.
>
> > > > > > I tried erlyweb:com pile("c:/test/testapp", {auto_compile, true})
> > > > > > and I got:
>
> > > > > > 1> erlyweb:compile("C:/test/testapp", {auto_compile, true}).
> > > > > > ** exited: {function_clause,[{lists,foldl,
> > > > > > [#Fun<erlyweb_compile.
> > > > > > 0.117977794>,
> > > > > > ["C:/test/testapp/src"],
> > > > > > {auto_compile,true}]},
> > > > > > {erlyweb_compile,compile,2},
> > > > > > {erl_eval,do_apply,5},
> > > > > > {shell,exprs,6},
> > > > > > {shell,eval_loop,3}]} **
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Sun Sep 09, 2007 11:10 pm |
|
|
|
Guest
|
I just tried to run an erlyweb on windows and I got exactly the same
problems, i.e. it compiles all right but ..._erlyweb_data:components
returns {0,nil}.
The application works well on Linux and both the runtime and the
app_root are installed on paths that doesn't contain any spaces, if that
is of any help.
/Fredrik
-----Original Message-----
From: erlyweb@googlegroups.com [mailto:erlyweb@googlegroups.com] On
Behalf Of Yariv Sadan
Sent: den 6 september 2007 09:10
To: erlyweb@googlegroups.com
Subject: [erlyweb-list] Re: Newbie to erlyweb
Yes, that's bad. It looks like erlyweb:compile() didn't pick up your
controllers. I'm guessing this is a Windows-related problem, but I
can't verify it without a Windows box. Would you mind zipping your
whole app dir and emailing it to me? Also, if someone can verify that
erlyweb:compile() works on windows, it would be great...
Yariv
On 9/5/07, Ghalib Suleiman <cowmoo@gmail.com> wrote:
>
> I get {0, nil}. That's probably bad, right?
>
> On Sep 5, 10:45 am, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > Hmm... maybe it's a Windows issue I'm not seeing on the Mac. Is
anyone
> > using ErlyWeb on Windows sucessfully?
> >
> > There's one more thing you can try... In the yaws shell, type
> > 'testapp_erlyweb_data:components().', and let me know what result
> > this function returns.
> >
> > On 9/3/07, Ghalib Suleiman <cow...@gmail.com> wrote:
> >
> >
> >
> > > Still nothing...same effect as erlyweb:compile/1 :-/
> >
> > > On Sep 3, 8:55 pm, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > > > Oops, I gave you the wrong instruction. It's
> > > > 'erlyweb:compile("C:/test/testapp", [{auto_compile, true}]).'
(the
> > > > second parameter is a list).
> >
> > > > On 9/3/07, Ghalib Suleiman <cow...@gmail.com> wrote:
> >
> > > > > Setting appmods to <"/", erlyweb> didn't work, same thing. My
> > > > > controller and view files are in the directory you indicated.
> >
> > > > > I tried erlyweb:com pile("c:/test/testapp", {auto_compile,
true})
> > > > > and I got:
> >
> > > > > 1> erlyweb:compile("C:/test/testapp", {auto_compile, true}).
> > > > > ** exited: {function_clause,[{lists,foldl,
> > > > > [#Fun<erlyweb_compile.
> > > > > 0.117977794>,
> > > > > ["C:/test/testapp/src"],
> > > > > {auto_compile,true}]},
> > > > > {erlyweb_compile,compile,2},
> > > > > {erl_eval,do_apply,5},
> > > > > {shell,exprs,6},
> > > > > {shell,eval_loop,3}]} **
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Mon Sep 10, 2007 3:15 am |
|
|
|
Guest
|
I'm pretty helpless on fixing this issue right now. It would be great
if someone with a Windows machine could debug it and submit a fix.
Yariv
On 9/9/07, Fredrik Sjunnesson <Fredrik.Sjunnesson@acobiaflux.se> wrote:
>
> I just tried to run an erlyweb on windows and I got exactly the same
> problems, i.e. it compiles all right but ..._erlyweb_data:components
> returns {0,nil}.
>
> The application works well on Linux and both the runtime and the
> app_root are installed on paths that doesn't contain any spaces, if that
> is of any help.
>
> /Fredrik
>
>
> -----Original Message-----
> From: erlyweb@googlegroups.com [mailto:erlyweb@googlegroups.com] On
> Behalf Of Yariv Sadan
> Sent: den 6 september 2007 09:10
> To: erlyweb@googlegroups.com
> Subject: [erlyweb-list] Re: Newbie to erlyweb
>
>
> Yes, that's bad. It looks like erlyweb:compile() didn't pick up your
> controllers. I'm guessing this is a Windows-related problem, but I
> can't verify it without a Windows box. Would you mind zipping your
> whole app dir and emailing it to me? Also, if someone can verify that
> erlyweb:compile() works on windows, it would be great...
>
> Yariv
>
> On 9/5/07, Ghalib Suleiman <cowmoo@gmail.com> wrote:
> >
> > I get {0, nil}. That's probably bad, right?
> >
> > On Sep 5, 10:45 am, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > > Hmm... maybe it's a Windows issue I'm not seeing on the Mac. Is
> anyone
> > > using ErlyWeb on Windows sucessfully?
> > >
> > > There's one more thing you can try... In the yaws shell, type
> > > 'testapp_erlyweb_data:components().', and let me know what result
> > > this function returns.
> > >
> > > On 9/3/07, Ghalib Suleiman <cow...@gmail.com> wrote:
> > >
> > >
> > >
> > > > Still nothing...same effect as erlyweb:compile/1 :-/
> > >
> > > > On Sep 3, 8:55 pm, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > > > > Oops, I gave you the wrong instruction. It's
> > > > > 'erlyweb:compile("C:/test/testapp", [{auto_compile, true}]).'
> (the
> > > > > second parameter is a list).
> > >
> > > > > On 9/3/07, Ghalib Suleiman <cow...@gmail.com> wrote:
> > >
> > > > > > Setting appmods to <"/", erlyweb> didn't work, same thing. My
> > > > > > controller and view files are in the directory you indicated.
> > >
> > > > > > I tried erlyweb:com pile("c:/test/testapp", {auto_compile,
> true})
> > > > > > and I got:
> > >
> > > > > > 1> erlyweb:compile("C:/test/testapp", {auto_compile, true}).
> > > > > > ** exited: {function_clause,[{lists,foldl,
> > > > > > [#Fun<erlyweb_compile.
> > > > > > 0.117977794>,
> > > > > > ["C:/test/testapp/src"],
> > > > > > {auto_compile,true}]},
> > > > > > {erlyweb_compile,compile,2},
> > > > > > {erl_eval,do_apply,5},
> > > > > > {shell,exprs,6},
> > > > > > {shell,eval_loop,3}]} **
> >
> >
> > >
> >
>
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Mon Sep 10, 2007 8:56 am |
|
|
|
Guest
|
Ok. I'll have a look and see what I can do.
-----Original Message-----
From: erlyweb@googlegroups.com on behalf of Yariv Sadan
Sent: Mon 9/10/2007 5:14 AM
To: erlyweb@googlegroups.com
Subject: [erlyweb-list] Re: Newbie to erlyweb
I'm pretty helpless on fixing this issue right now. It would be great
if someone with a Windows machine could debug it and submit a fix.
Yariv
On 9/9/07, Fredrik Sjunnesson <Fredrik.Sjunnesson@acobiaflux.se> wrote:
>
> I just tried to run an erlyweb on windows and I got exactly the same
> problems, i.e. it compiles all right but ..._erlyweb_data:components
> returns {0,nil}.
>
> The application works well on Linux and both the runtime and the
> app_root are installed on paths that doesn't contain any spaces, if that
> is of any help.
>
> /Fredrik
>
>
> -----Original Message-----
> From: erlyweb@googlegroups.com [mailto:erlyweb@googlegroups.com] On
> Behalf Of Yariv Sadan
> Sent: den 6 september 2007 09:10
> To: erlyweb@googlegroups.com
> Subject: [erlyweb-list] Re: Newbie to erlyweb
>
>
> Yes, that's bad. It looks like erlyweb:compile() didn't pick up your
> controllers. I'm guessing this is a Windows-related problem, but I
> can't verify it without a Windows box. Would you mind zipping your
> whole app dir and emailing it to me? Also, if someone can verify that
> erlyweb:compile() works on windows, it would be great...
>
> Yariv
>
> On 9/5/07, Ghalib Suleiman <cowmoo@gmail.com> wrote:
> >
> > I get {0, nil}. That's probably bad, right?
> >
> > On Sep 5, 10:45 am, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > > Hmm... maybe it's a Windows issue I'm not seeing on the Mac. Is
> anyone
> > > using ErlyWeb on Windows sucessfully?
> > >
> > > There's one more thing you can try... In the yaws shell, type
> > > 'testapp_erlyweb_data:components().', and let me know what result
> > > this function returns.
> > >
> > > On 9/3/07, Ghalib Suleiman <cow...@gmail.com> wrote:
> > >
> > >
> > >
> > > > Still nothing...same effect as erlyweb:compile/1 :-/
> > >
> > > > On Sep 3, 8:55 pm, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > > > > Oops, I gave you the wrong instruction. It's
> > > > > 'erlyweb:compile("C:/test/testapp", [{auto_compile, true}]).'
> (the
> > > > > second parameter is a list).
> > >
> > > > > On 9/3/07, Ghalib Suleiman <cow...@gmail.com> wrote:
> > >
> > > > > > Setting appmods to <"/", erlyweb> didn't work, same thing. My
> > > > > > controller and view files are in the directory you indicated.
> > >
> > > > > > I tried erlyweb:com pile("c:/test/testapp", {auto_compile,
> true})
> > > > > > and I got:
> > >
> > > > > > 1> erlyweb:compile("C:/test/testapp", {auto_compile, true}).
> > > > > > ** exited: {function_clause,[{lists,foldl,
> > > > > > [#Fun<erlyweb_compile.
> > > > > > 0.117977794>,
> > > > > > ["C:/test/testapp/src"],
> > > > > > {auto_compile,true}]},
> > > > > > {erlyweb_compile,compile,2},
> > > > > > {erl_eval,do_apply,5},
> > > > > > {shell,exprs,6},
> > > > > > {shell,eval_loop,3}]} **
> >
> >
> > >
> >
>
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Tue Sep 11, 2007 5:53 am |
|
|
|
Guest
|
Hi Yariv - would you mind letting me know vaguely where in
erlyweb_compile.erl components are registered? I want to try and debug
this (as mentioned above, the compile step in isolation works ok
- .beam files are produced).
Thanks.
-Ghalib
On Sep 10, 7:14 am, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> I'm pretty helpless on fixing this issue right now. It would be great
> if someone with a Windows machine could debug it and submit a fix.
>
> Yariv
>
> On 9/9/07, Fredrik Sjunnesson <Fredrik.Sjunnes...@acobiaflux.se> wrote:
>
>
>
> > I just tried to run an erlyweb on windows and I got exactly the same
> > problems, i.e. it compiles all right but ..._erlyweb_data:components
> > returns {0,nil}.
>
> > The application works well on Linux and both the runtime and the
> > app_root are installed on paths that doesn't contain any spaces, if that
> > is of any help.
>
> > /Fredrik
>
> > -----Original Message-----
> > From: erlyweb@googlegroups.com [mailto:erlyweb@googlegroups.com] On
> > Behalf Of Yariv Sadan
> > Sent: den 6 september 2007 09:10
> > To: erlyweb@googlegroups.com
> > Subject: [erlyweb-list] Re: Newbie to erlyweb
>
> > Yes, that's bad. It looks like erlyweb:compile() didn't pick up your
> > controllers. I'm guessing this is a Windows-related problem, but I
> > can't verify it without a Windows box. Would you mind zipping your
> > whole app dir and emailing it to me? Also, if someone can verify that
> > erlyweb:compile() works on windows, it would be great...
>
> > Yariv
>
> > On 9/5/07, Ghalib Suleiman <cow...@gmail.com> wrote:
>
> > > I get {0, nil}. That's probably bad, right?
>
> > > On Sep 5, 10:45 am, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > > > Hmm... maybe it's a Windows issue I'm not seeing on the Mac. Is
> > anyone
> > > > using ErlyWeb on Windows sucessfully?
>
> > > > There's one more thing you can try... In the yaws shell, type
> > > > 'testapp_erlyweb_data:components().', and let me know what result
> > > > this function returns.
>
> > > > On 9/3/07, Ghalib Suleiman <cow...@gmail.com> wrote:
>
> > > > > Still nothing...same effect as erlyweb:compile/1 :-/
>
> > > > > On Sep 3, 8:55 pm, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > > > > > Oops, I gave you the wrong instruction. It's
> > > > > > 'erlyweb:compile("C:/test/testapp", [{auto_compile, true}]).'
> > (the
> > > > > > second parameter is a list).
>
> > > > > > On 9/3/07, Ghalib Suleiman <cow...@gmail.com> wrote:
>
> > > > > > > Setting appmods to <"/", erlyweb> didn't work, same thing. My
> > > > > > > controller and view files are in the directory you indicated.
>
> > > > > > > I tried erlyweb:com pile("c:/test/testapp", {auto_compile,
> > true})
> > > > > > > and I got:
>
> > > > > > > 1> erlyweb:compile("C:/test/testapp", {auto_compile, true}).
> > > > > > > ** exited: {function_clause,[{lists,foldl,
> > > > > > > [#Fun<erlyweb_compile.
> > > > > > > 0.117977794>,
> > > > > > > ["C:/test/testapp/src"],
> > > > > > > {auto_compile,true}]},
> > > > > > > {erlyweb_compile,compile,2},
> > > > > > > {erl_eval,do_apply,5},
> > > > > > > {shell,exprs,6},
> > > > > > > {shell,eval_loop,3}]} **
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Tue Sep 11, 2007 6:48 am |
|
|
|
Guest
|
make_app_data_module() (line 147) is the function that creates the
components() function in the 'yourapp_erlyweb_data' module. However,
compile_component_file() (line 305) is where controllers are
recognized and entered into the tree of components that is then
embedded in 'yourapp_erlyweb_data'. I bet the bug is somewhere in the
beginning of compile_component_file().
Yariv
On 9/10/07, Ghalib Suleiman <cowmoo@gmail.com> wrote:
>
> Hi Yariv - would you mind letting me know vaguely where in
> erlyweb_compile.erl components are registered? I want to try and debug
> this (as mentioned above, the compile step in isolation works ok
> - .beam files are produced).
>
> Thanks.
>
> -Ghalib
>
> On Sep 10, 7:14 am, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > I'm pretty helpless on fixing this issue right now. It would be great
> > if someone with a Windows machine could debug it and submit a fix.
> >
> > Yariv
> >
> > On 9/9/07, Fredrik Sjunnesson <Fredrik.Sjunnes...@acobiaflux.se> wrote:
> >
> >
> >
> > > I just tried to run an erlyweb on windows and I got exactly the same
> > > problems, i.e. it compiles all right but ..._erlyweb_data:components
> > > returns {0,nil}.
> >
> > > The application works well on Linux and both the runtime and the
> > > app_root are installed on paths that doesn't contain any spaces, if that
> > > is of any help.
> >
> > > /Fredrik
> >
> > > -----Original Message-----
> > > From: erlyweb@googlegroups.com [mailto:erlyweb@googlegroups.com] On
> > > Behalf Of Yariv Sadan
> > > Sent: den 6 september 2007 09:10
> > > To: erlyweb@googlegroups.com
> > > Subject: [erlyweb-list] Re: Newbie to erlyweb
> >
> > > Yes, that's bad. It looks like erlyweb:compile() didn't pick up your
> > > controllers. I'm guessing this is a Windows-related problem, but I
> > > can't verify it without a Windows box. Would you mind zipping your
> > > whole app dir and emailing it to me? Also, if someone can verify that
> > > erlyweb:compile() works on windows, it would be great...
> >
> > > Yariv
> >
> > > On 9/5/07, Ghalib Suleiman <cow...@gmail.com> wrote:
> >
> > > > I get {0, nil}. That's probably bad, right?
> >
> > > > On Sep 5, 10:45 am, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > > > > Hmm... maybe it's a Windows issue I'm not seeing on the Mac. Is
> > > anyone
> > > > > using ErlyWeb on Windows sucessfully?
> >
> > > > > There's one more thing you can try... In the yaws shell, type
> > > > > 'testapp_erlyweb_data:components().', and let me know what result
> > > > > this function returns.
> >
> > > > > On 9/3/07, Ghalib Suleiman <cow...@gmail.com> wrote:
> >
> > > > > > Still nothing...same effect as erlyweb:compile/1 :-/
> >
> > > > > > On Sep 3, 8:55 pm, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > > > > > > Oops, I gave you the wrong instruction. It's
> > > > > > > 'erlyweb:compile("C:/test/testapp", [{auto_compile, true}]).'
> > > (the
> > > > > > > second parameter is a list).
> >
> > > > > > > On 9/3/07, Ghalib Suleiman <cow...@gmail.com> wrote:
> >
> > > > > > > > Setting appmods to <"/", erlyweb> didn't work, same thing. My
> > > > > > > > controller and view files are in the directory you indicated.
> >
> > > > > > > > I tried erlyweb:com pile("c:/test/testapp", {auto_compile,
> > > true})
> > > > > > > > and I got:
> >
> > > > > > > > 1> erlyweb:compile("C:/test/testapp", {auto_compile, true}).
> > > > > > > > ** exited: {function_clause,[{lists,foldl,
> > > > > > > > [#Fun<erlyweb_compile.
> > > > > > > > 0.117977794>,
> > > > > > > > ["C:/test/testapp/src"],
> > > > > > > > {auto_compile,true}]},
> > > > > > > > {erlyweb_compile,compile,2},
> > > > > > > > {erl_eval,do_apply,5},
> > > > > > > > {shell,exprs,6},
> > > > > > > > {shell,eval_loop,3}]} **
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Sun Sep 16, 2007 11:53 am |
|
|
|
Guest
|
Hi Yariv, I found the bug (you were right as to its location, thanks
for the pointers).
The problem occurs if the argument to erlyweb:compile() contains an
uppercase drive letter, e.g. erlyweb:compile("C:/blah/hello"). The
filenames processed by the call to filelib:fold_files() on line 87 all
have a lowercase drive letter, and so the call to lists:prefix() on
line 311 will produce false, as you're comparing the ascii value for
'C' vs. 'c'. So, I suppose a case-insensitive compare is called for.
Here's a tiny patch that was tested on both Windows and OS X (not sure
if this is the best solution - are there any filesystems that allow
e.g. Foo and foo as distinct directory names?):
--- /usr/local/lib/erlang/lib/erlyweb-0.6.2/src/erlyweb/
erlyweb_compile.erl 2007-09-06 14:40:45.000000000 +0400
+++ erlyweb-0.6.2/src/erlyweb/erlyweb_compile.erl 2007-09-16
15:29:32.000000000 +0400
@@ -308,7 +308,7 @@
Extension = filename:extension(FileName),
BaseNameTokens = string:tokens(BaseName, "_"),
- Type = case lists:prefix(ComponentsDir, FileName) of
+ Type = case lists:prefix(string:to_lower(ComponentsDir),
string:to_lower(FileName)) of
true ->
case lists:last(BaseNameTokens) of
"controller" -> controller;
>Yariv Sadan wrote:
> make_app_data_module() (line 147) is the function that creates the
> components() function in the 'yourapp_erlyweb_data' module. However,
> compile_component_file() (line 305) is where controllers are
> recognized and entered into the tree of components that is then
> embedded in 'yourapp_erlyweb_data'. I bet the bug is somewhere in the
> beginning of compile_component_file().
>
> Yariv
>
> On 9/10/07, Ghalib Suleiman <cowmoo@gmail.com> wrote:
> >
> > Hi Yariv - would you mind letting me know vaguely where in
> > erlyweb_compile.erl components are registered? I want to try and debug
> > this (as mentioned above, the compile step in isolation works ok
> > - .beam files are produced).
> >
> > Thanks.
> >
> > -Ghalib
> >
> > On Sep 10, 7:14 am, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > > I'm pretty helpless on fixing this issue right now. It would be great
> > > if someone with a Windows machine could debug it and submit a fix.
> > >
> > > Yariv
> > >
> > > On 9/9/07, Fredrik Sjunnesson <Fredrik.Sjunnes...@acobiaflux.se> wrote:
> > >
> > >
> > >
> > > > I just tried to run an erlyweb on windows and I got exactly the same
> > > > problems, i.e. it compiles all right but ..._erlyweb_data:components
> > > > returns {0,nil}.
> > >
> > > > The application works well on Linux and both the runtime and the
> > > > app_root are installed on paths that doesn't contain any spaces, if that
> > > > is of any help.
> > >
> > > > /Fredrik
> > >
> > > > -----Original Message-----
> > > > From: erlyweb@googlegroups.com [mailto:erlyweb@googlegroups.com] On
> > > > Behalf Of Yariv Sadan
> > > > Sent: den 6 september 2007 09:10
> > > > To: erlyweb@googlegroups.com
> > > > Subject: [erlyweb-list] Re: Newbie to erlyweb
> > >
> > > > Yes, that's bad. It looks like erlyweb:compile() didn't pick up your
> > > > controllers. I'm guessing this is a Windows-related problem, but I
> > > > can't verify it without a Windows box. Would you mind zipping your
> > > > whole app dir and emailing it to me? Also, if someone can verify that
> > > > erlyweb:compile() works on windows, it would be great...
> > >
> > > > Yariv
> > >
> > > > On 9/5/07, Ghalib Suleiman <cow...@gmail.com> wrote:
> > >
> > > > > I get {0, nil}. That's probably bad, right?
> > >
> > > > > On Sep 5, 10:45 am, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > > > > > Hmm... maybe it's a Windows issue I'm not seeing on the Mac. Is
> > > > anyone
> > > > > > using ErlyWeb on Windows sucessfully?
> > >
> > > > > > There's one more thing you can try... In the yaws shell, type
> > > > > > 'testapp_erlyweb_data:components().', and let me know what result
> > > > > > this function returns.
> > >
> > > > > > On 9/3/07, Ghalib Suleiman <cow...@gmail.com> wrote:
> > >
> > > > > > > Still nothing...same effect as erlyweb:compile/1 :-/
> > >
> > > > > > > On Sep 3, 8:55 pm, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > > > > > > > Oops, I gave you the wrong instruction. It's
> > > > > > > > 'erlyweb:compile("C:/test/testapp", [{auto_compile, true}]).'
> > > > (the
> > > > > > > > second parameter is a list).
> > >
> > > > > > > > On 9/3/07, Ghalib Suleiman <cow...@gmail.com> wrote:
> > >
> > > > > > > > > Setting appmods to <"/", erlyweb> didn't work, same thing. My
> > > > > > > > > controller and view files are in the directory you indicated.
> > >
> > > > > > > > > I tried erlyweb:com pile("c:/test/testapp", {auto_compile,
> > > > true})
> > > > > > > > > and I got:
> > >
> > > > > > > > > 1> erlyweb:compile("C:/test/testapp", {auto_compile, true}).
> > > > > > > > > ** exited: {function_clause,[{lists,foldl,
> > > > > > > > > [#Fun<erlyweb_compile.
> > > > > > > > > 0.117977794>,
> > > > > > > > > ["C:/test/testapp/src"],
> > > > > > > > > {auto_compile,true}]},
> > > > > > > > > {erlyweb_compile,compile,2},
> > > > > > > > > {erl_eval,do_apply,5},
> > > > > > > > > {shell,exprs,6},
> > > > > > > > > {shell,eval_loop,3}]} **
> >
> >
> > >
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Sun Sep 16, 2007 5:24 pm |
|
|
|
Guest
|
Great, thanks a lot!
Yariv
On 9/16/07, Ghalib Suleiman <cowmoo@gmail.com> wrote:
>
> Hi Yariv, I found the bug (you were right as to its location, thanks
> for the pointers).
>
> The problem occurs if the argument to erlyweb:compile() contains an
> uppercase drive letter, e.g. erlyweb:compile("C:/blah/hello"). The
> filenames processed by the call to filelib:fold_files() on line 87 all
> have a lowercase drive letter, and so the call to lists:prefix() on
> line 311 will produce false, as you're comparing the ascii value for
> 'C' vs. 'c'. So, I suppose a case-insensitive compare is called for.
> Here's a tiny patch that was tested on both Windows and OS X (not sure
> if this is the best solution - are there any filesystems that allow
> e.g. Foo and foo as distinct directory names?):
>
> --- /usr/local/lib/erlang/lib/erlyweb-0.6.2/src/erlyweb/
> erlyweb_compile.erl 2007-09-06 14:40:45.000000000 +0400
> +++ erlyweb-0.6.2/src/erlyweb/erlyweb_compile.erl 2007-09-16
> 15:29:32.000000000 +0400
> @@ -308,7 +308,7 @@
> Extension = filename:extension(FileName),
> BaseNameTokens = string:tokens(BaseName, "_"),
>
> - Type = case lists:prefix(ComponentsDir, FileName) of
> + Type = case lists:prefix(string:to_lower(ComponentsDir),
> string:to_lower(FileName)) of
> true ->
> case lists:last(BaseNameTokens) of
> "controller" -> controller;
>
>
>
> >Yariv Sadan wrote:
> > make_app_data_module() (line 147) is the function that creates the
> > components() function in the 'yourapp_erlyweb_data' module. However,
> > compile_component_file() (line 305) is where controllers are
> > recognized and entered into the tree of components that is then
> > embedded in 'yourapp_erlyweb_data'. I bet the bug is somewhere in the
> > beginning of compile_component_file().
> >
> > Yariv
> >
> > On 9/10/07, Ghalib Suleiman <cowmoo@gmail.com> wrote:
> > >
> > > Hi Yariv - would you mind letting me know vaguely where in
> > > erlyweb_compile.erl components are registered? I want to try and debug
> > > this (as mentioned above, the compile step in isolation works ok
> > > - .beam files are produced).
> > >
> > > Thanks.
> > >
> > > -Ghalib
> > >
> > > On Sep 10, 7:14 am, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > > > I'm pretty helpless on fixing this issue right now. It would be great
> > > > if someone with a Windows machine could debug it and submit a fix.
> > > >
> > > > Yariv
> > > >
> > > > On 9/9/07, Fredrik Sjunnesson <Fredrik.Sjunnes...@acobiaflux.se> wrote:
> > > >
> > > >
> > > >
> > > > > I just tried to run an erlyweb on windows and I got exactly the same
> > > > > problems, i.e. it compiles all right but ..._erlyweb_data:components
> > > > > returns {0,nil}.
> > > >
> > > > > The application works well on Linux and both the runtime and the
> > > > > app_root are installed on paths that doesn't contain any spaces, if that
> > > > > is of any help.
> > > >
> > > > > /Fredrik
> > > >
> > > > > -----Original Message-----
> > > > > From: erlyweb@googlegroups.com [mailto:erlyweb@googlegroups.com] On
> > > > > Behalf Of Yariv Sadan
> > > > > Sent: den 6 september 2007 09:10
> > > > > To: erlyweb@googlegroups.com
> > > > > Subject: [erlyweb-list] Re: Newbie to erlyweb
> > > >
> > > > > Yes, that's bad. It looks like erlyweb:compile() didn't pick up your
> > > > > controllers. I'm guessing this is a Windows-related problem, but I
> > > > > can't verify it without a Windows box. Would you mind zipping your
> > > > > whole app dir and emailing it to me? Also, if someone can verify that
> > > > > erlyweb:compile() works on windows, it would be great...
> > > >
> > > > > Yariv
> > > >
> > > > > On 9/5/07, Ghalib Suleiman <cow...@gmail.com> wrote:
> > > >
> > > > > > I get {0, nil}. That's probably bad, right?
> > > >
> > > > > > On Sep 5, 10:45 am, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > > > > > > Hmm... maybe it's a Windows issue I'm not seeing on the Mac. Is
> > > > > anyone
> > > > > > > using ErlyWeb on Windows sucessfully?
> > > >
> > > > > > > There's one more thing you can try... In the yaws shell, type
> > > > > > > 'testapp_erlyweb_data:components().', and let me know what result
> > > > > > > this function returns.
> > > >
> > > > > > > On 9/3/07, Ghalib Suleiman <cow...@gmail.com> wrote:
> > > >
> > > > > > > > Still nothing...same effect as erlyweb:compile/1 :-/
> > > >
> > > > > > > > On Sep 3, 8:55 pm, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > > > > > > > > Oops, I gave you the wrong instruction. It's
> > > > > > > > > 'erlyweb:compile("C:/test/testapp", [{auto_compile, true}]).'
> > > > > (the
> > > > > > > > > second parameter is a list).
> > > >
> > > > > > > > > On 9/3/07, Ghalib Suleiman <cow...@gmail.com> wrote:
> > > >
> > > > > > > > > > Setting appmods to <"/", erlyweb> didn't work, same thing. My
> > > > > > > > > > controller and view files are in the directory you indicated.
> > > >
> > > > > > > > > > I tried erlyweb:com pile("c:/test/testapp", {auto_compile,
> > > > > true})
> > > > > > > > > > and I got:
> > > >
> > > > > > > > > > 1> erlyweb:compile("C:/test/testapp", {auto_compile, true}).
> > > > > > > > > > ** exited: {function_clause,[{lists,foldl,
> > > > > > > > > > [#Fun<erlyweb_compile.
> > > > > > > > > > 0.117977794>,
> > > > > > > > > > ["C:/test/testapp/src"],
> > > > > > > > > > {auto_compile,true}]},
> > > > > > > > > > {erlyweb_compile,compile,2},
> > > > > > > > > > {erl_eval,do_apply,5},
> > > > > > > > > > {shell,exprs,6},
> > > > > > > > > > {shell,eval_loop,3}]} **
> > >
> > >
> > > >
> > >
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---
Post recived from mailinglist |
|
|
| Back to top |
|
| ketralnis |
Posted: Sun Sep 16, 2007 5:47 pm |
|
|
|
User
Joined: 20 Jul 2007
Posts: 151
Location: San Francisco, CA
|
> 'C' vs. 'c'. So, I suppose a case-insensitive compare is called for.
> Here's a tiny patch that was tested on both Windows and OS X (not sure
> if this is the best solution - are there any filesystems that allow
> e.g. Foo and foo as distinct directory names?):
Yes. In fact, OS X and Windows are bad examples here, as they have
"case-preserving" file-systems. Linux, FreeBSD, Solaris, etc, all
have case-sensitive file-systems. In fact, OS X supports HFS, which
is case-preserving, and UFS, which is case-sensitive (generally
speaking). I once downloaded source code where the tarball contained
README, Readme, and ReadMe, in the same directory. Dumb as that may
be, I'd like if Erlyweb didn't refuse to work on my filesystem.
>
> --- /usr/local/lib/erlang/lib/erlyweb-0.6.2/src/erlyweb/
> erlyweb_compile.erl 2007-09-06 14:40:45.000000000 +0400
> +++ erlyweb-0.6.2/src/erlyweb/erlyweb_compile.erl 2007-09-16
> 15:29:32.000000000 +0400
> @@ -308,7 +308,7 @@
> Extension = filename:extension(FileName),
> BaseNameTokens = string:tokens(BaseName, "_"),
>
> - Type = case lists:prefix(ComponentsDir, FileName) of
> + Type = case lists:prefix(string:to_lower(ComponentsDir),
> string:to_lower(FileName)) of
> true ->
> case lists:last(BaseNameTokens) of
> "controller" -> controller;
>
>
>
>> Yariv Sadan wrote:
>> make_app_data_module() (line 147) is the function that creates the
>> components() function in the 'yourapp_erlyweb_data' module. However,
>> compile_component_file() (line 305) is where controllers are
>> recognized and entered into the tree of components that is then
>> embedded in 'yourapp_erlyweb_data'. I bet the bug is somewhere in the
>> beginning of compile_component_file().
>>
>> Yariv
>>
>> On 9/10/07, Ghalib Suleiman <cowmoo@gmail.com> wrote:
>>>
>>> Hi Yariv - would you mind letting me know vaguely where in
>>> erlyweb_compile.erl components are registered? I want to try and
>>> debug
>>> this (as mentioned above, the compile step in isolation works ok
>>> - .beam files are produced).
>>>
>>> Thanks.
>>>
>>> -Ghalib
>>>
>>> On Sep 10, 7:14 am, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
>>>> I'm pretty helpless on fixing this issue right now. It would be
>>>> great
>>>> if someone with a Windows machine could debug it and submit a fix.
>>>>
>>>> Yariv
>>>>
>>>> On 9/9/07, Fredrik Sjunnesson <Fredrik.Sjunnes...@acobiaflux.se>
>>>> wrote:
>>>>
>>>>
>>>>
>>>>> I just tried to run an erlyweb on windows and I got exactly the
>>>>> same
>>>>> problems, i.e. it compiles all right
>>>>> but ..._erlyweb_data:components
>>>>> returns {0,nil}.
>>>>
>>>>> The application works well on Linux and both the runtime and the
>>>>> app_root are installed on paths that doesn't contain any
>>>>> spaces, if that
>>>>> is of any help.
>>>>
>>>>> /Fredrik
>>>>
>>>>> -----Original Message-----
>>>>> From: erlyweb@googlegroups.com
>>>>> [mailto:erlyweb@googlegroups.com] On
>>>>> Behalf Of Yariv Sadan
>>>>> Sent: den 6 september 2007 09:10
>>>>> To: erlyweb@googlegroups.com
>>>>> Subject: [erlyweb-list] Re: Newbie to erlyweb
>>>>
>>>>> Yes, that's bad. It looks like erlyweb:compile() didn't pick up
>>>>> your
>>>>> controllers. I'm guessing this is a Windows-related problem, but I
>>>>> can't verify it without a Windows box. Would you mind zipping your
>>>>> whole app dir and emailing it to me? Also, if someone can
>>>>> verify that
>>>>> erlyweb:compile() works on windows, it would be great...
>>>>
>>>>> Yariv
>>>>
>>>>> On 9/5/07, Ghalib Suleiman <cow...@gmail.com> wrote:
>>>>
>>>>>> I get {0, nil}. That's probably bad, right?
>>>>
>>>>>> On Sep 5, 10:45 am, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
>>>>>>> Hmm... maybe it's a Windows issue I'm not seeing on the Mac. Is
>>>>> anyone
>>>>>>> using ErlyWeb on Windows sucessfully?
>>>>
>>>>>>> There's one more thing you can try... In the yaws shell, type
>>>>>>> 'testapp_erlyweb_data:components().', and let me know what
>>>>>>> result
>>>>>>> this function returns.
>>>>
>>>>>>> On 9/3/07, Ghalib Suleiman <cow...@gmail.com> wrote:
>>>>
>>>>>>>> Still nothing...same effect as erlyweb:compile/1 :-/
>>>>
>>>>>>>> On Sep 3, 8:55 pm, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
>>>>>>>>> Oops, I gave you the wrong instruction. It's
>>>>>>>>> 'erlyweb:compile("C:/test/testapp", [{auto_compile, true}]).'
>>>>> (the
>>>>>>>>> second parameter is a list).
>>>>
>>>>>>>>> On 9/3/07, Ghalib Suleiman <cow...@gmail.com> wrote:
>>>>
>>>>>>>>>> Setting appmods to <"/", erlyweb> didn't work, same
>>>>>>>>>> thing. My
>>>>>>>>>> controller and view files are in the directory you indicated.
>>>>
>>>>>>>>>> I tried erlyweb:com pile("c:/test/testapp", {auto_compile,
>>>>> true})
>>>>>>>>>> and I got:
>>>>
>>>>>>>>>> 1> erlyweb:compile("C:/test/testapp", {auto_compile, true}).
>>>>>>>>>> ** exited: {function_clause,[{lists,foldl,
>>>>>>>>>> [#Fun<erlyweb_compile.
>>>>>>>>>> 0.117977794>,
>>>>>>>>>> ["C:/test/testapp/src"],
>>>>>>>>>> {auto_compile,true}]},
>>>>>>>>>> {erlyweb_compile,compile,2},
>>>>>>>>>> {erl_eval,do_apply,5},
>>>>>>>>>> {shell,exprs,6},
>>>>>>>>>> {shell,eval_loop,3}]} **
>>>
>>>
>>>>
>>>
>
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Sun Sep 16, 2007 6:46 pm |
|
|
|
Guest
|
I committed the fix. Let me know if there are any other problems.
Thanks,
Yariv
On 9/16/07, Ghalib Suleiman <cowmoo@gmail.com> wrote:
>
> Hi Yariv, I found the bug (you were right as to its location, thanks
> for the pointers).
>
> The problem occurs if the argument to erlyweb:compile() contains an
> uppercase drive letter, e.g. erlyweb:compile("C:/blah/hello"). The
> filenames processed by the call to filelib:fold_files() on line 87 all
> have a lowercase drive letter, and so the call to lists:prefix() on
> line 311 will produce false, as you're comparing the ascii value for
> 'C' vs. 'c'. So, I suppose a case-insensitive compare is called for.
> Here's a tiny patch that was tested on both Windows and OS X (not sure
> if this is the best solution - are there any filesystems that allow
> e.g. Foo and foo as distinct directory names?):
>
> --- /usr/local/lib/erlang/lib/erlyweb-0.6.2/src/erlyweb/
> erlyweb_compile.erl 2007-09-06 14:40:45.000000000 +0400
> +++ erlyweb-0.6.2/src/erlyweb/erlyweb_compile.erl 2007-09-16
> 15:29:32.000000000 +0400
> @@ -308,7 +308,7 @@
> Extension = filename:extension(FileName),
> BaseNameTokens = string:tokens(BaseName, "_"),
>
> - Type = case lists:prefix(ComponentsDir, FileName) of
> + Type = case lists:prefix(string:to_lower(ComponentsDir),
> string:to_lower(FileName)) of
> true ->
> case lists:last(BaseNameTokens) of
> "controller" -> controller;
>
>
>
> >Yariv Sadan wrote:
> > make_app_data_module() (line 147) is the function that creates the
> > components() function in the 'yourapp_erlyweb_data' module. However,
> > compile_component_file() (line 305) is where controllers are
> > recognized and entered into the tree of components that is then
> > embedded in 'yourapp_erlyweb_data'. I bet the bug is somewhere in the
> > beginning of compile_component_file().
> >
> > Yariv
> >
> > On 9/10/07, Ghalib Suleiman <cowmoo@gmail.com> wrote:
> > >
> > > Hi Yariv - would you mind letting me know vaguely where in
> > > erlyweb_compile.erl components are registered? I want to try and debug
> > > this (as mentioned above, the compile step in isolation works ok
> > > - .beam files are produced).
> > >
> > > Thanks.
> > >
> > > -Ghalib
> > >
> > > On Sep 10, 7:14 am, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > > > I'm pretty helpless on fixing this issue right now. It would be great
> > > > if someone with a Windows machine could debug it and submit a fix.
> > > >
> > > > Yariv
> > > >
> > > > On 9/9/07, Fredrik Sjunnesson <Fredrik.Sjunnes...@acobiaflux.se> wrote:
> > > >
> > > >
> > > >
> > > > > I just tried to run an erlyweb on windows and I got exactly the same
> > > > > problems, i.e. it compiles all right but ..._erlyweb_data:components
> > > > > returns {0,nil}.
> > > >
> > > > > The application works well on Linux and both the runtime and the
> > > > > app_root are installed on paths that doesn't contain any spaces, if that
> > > > > is of any help.
> > > >
> > > > > /Fredrik
> > > >
> > > > > -----Original Message-----
> > > > > From: erlyweb@googlegroups.com [mailto:erlyweb@googlegroups.com] On
> > > > > Behalf Of Yariv Sadan
> > > > > Sent: den 6 september 2007 09:10
> > > > > To: erlyweb@googlegroups.com
> > > > > Subject: [erlyweb-list] Re: Newbie to erlyweb
> > > >
> > > > > Yes, that's bad. It looks like erlyweb:compile() didn't pick up your
> > > > > controllers. I'm guessing this is a Windows-related problem, but I
> > > > > can't verify it without a Windows box. Would you mind zipping your
> > > > > whole app dir and emailing it to me? Also, if someone can verify that
> > > > > erlyweb:compile() works on windows, it would be great...
> > > >
> > > > > Yariv
> > > >
> > > > > On 9/5/07, Ghalib Suleiman <cow...@gmail.com> wrote:
> > > >
> > > > > > I get {0, nil}. That's probably bad, right?
> > > >
> > > > > > On Sep 5, 10:45 am, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > > > > > > Hmm... maybe it's a Windows issue I'm not seeing on the Mac. Is
> > > > > anyone
> > > > > > > using ErlyWeb on Windows sucessfully?
> > > >
> > > > > > > There's one more thing you can try... In the yaws shell, type
> > > > > > > 'testapp_erlyweb_data:components().', and let me know what result
> > > > > > > this function returns.
> > > >
> > > > > > > On 9/3/07, Ghalib Suleiman <cow...@gmail.com> wrote:
> > > >
> > > > > > > > Still nothing...same effect as erlyweb:compile/1 :-/
> > > >
> > > > > > > > On Sep 3, 8:55 pm, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > > > > > > > > Oops, I gave you the wrong instruction. It's
> > > > > > > > > 'erlyweb:compile("C:/test/testapp", [{auto_compile, true}]).'
> > > > > (the
> > > > > > > > > second parameter is a list).
> > > >
> > > > > > > > > On 9/3/07, Ghalib Suleiman <cow...@gmail.com> wrote:
> > > >
> > > > > > > > > > Setting appmods to <"/", erlyweb> didn't work, same thing. My
> > > > > > > > > > controller and view files are in the directory you indicated.
> > > >
> > > > > > > > > > I tried erlyweb:com pile("c:/test/testapp", {auto_compile,
> > > > > true})
> > > > > > > > > > and I got:
> > > >
> > > > > > > > > > 1> erlyweb:compile("C:/test/testapp", {auto_compile, true}).
> > > > > > > > > > ** exited: {function_clause,[{lists,foldl,
> > > > > > > > > > [#Fun<erlyweb_compile.
> > > > > > > > > > 0.117977794>,
> > > > > > > > > > ["C:/test/testapp/src"],
> > > > > > > > > > {auto_compile,true}]},
> > > > > > > > > > {erlyweb_compile,compile,2},
> > > > > > > > > > {erl_eval,do_apply,5},
> > > > > > > > > > {shell,exprs,6},
> > > > > > > > > > {shell,eval_loop,3}]} **
> > >
> > >
> > > >
> > >
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Sun Sep 16, 2007 6:57 pm |
|
|
|
Guest
|
Yariv, David raises a valid point that I had suspected (cheers
David). I will try to cook up something better.
-Ghalib
On Sep 16, 10:46 pm, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> I committed the fix. Let me know if there are any other problems.
>
> Thanks,
> Yariv
>
> On 9/16/07, Ghalib Suleiman <cow...@gmail.com> wrote:
>
>
>
> > Hi Yariv, I found the bug (you were right as to its location, thanks
> > for the pointers).
>
> > The problem occurs if the argument to erlyweb:compile() contains an
> > uppercase drive letter, e.g. erlyweb:compile("C:/blah/hello"). The
> > filenames processed by the call to filelib:fold_files() on line 87 all
> > have a lowercase drive letter, and so the call to lists:prefix() on
> > line 311 will produce false, as you're comparing the ascii value for
> > 'C' vs. 'c'. So, I suppose a case-insensitive compare is called for.
> > Here's a tiny patch that was tested on both Windows and OS X (not sure
> > if this is the best solution - are there any filesystems that allow
> > e.g. Foo and foo as distinct directory names?):
>
> > --- /usr/local/lib/erlang/lib/erlyweb-0.6.2/src/erlyweb/
> > erlyweb_compile.erl 2007-09-06 14:40:45.000000000 +0400
> > +++ erlyweb-0.6.2/src/erlyweb/erlyweb_compile.erl 2007-09-16
> > 15:29:32.000000000 +0400
> > @@ -308,7 +308,7 @@
> > Extension = filename:extension(FileName),
> > BaseNameTokens = string:tokens(BaseName, "_"),
>
> > - Type = case lists:prefix(ComponentsDir, FileName) of
> > + Type = case lists:prefix(string:to_lower(ComponentsDir),
> > string:to_lower(FileName)) of
> > true ->
> > case lists:last(BaseNameTokens) of
> > "controller" -> controller;
>
> > >Yariv Sadan wrote:
> > > make_app_data_module() (line 147) is the function that creates the
> > > components() function in the 'yourapp_erlyweb_data' module. However,
> > > compile_component_file() (line 305) is where controllers are
> > > recognized and entered into the tree of components that is then
> > > embedded in 'yourapp_erlyweb_data'. I bet the bug is somewhere in the
> > > beginning of compile_component_file().
>
> > > Yariv
>
> > > On 9/10/07, Ghalib Suleiman <cow...@gmail.com> wrote:
>
> > > > Hi Yariv - would you mind letting me know vaguely where in
> > > > erlyweb_compile.erl components are registered? I want to try and debug
> > > > this (as mentioned above, the compile step in isolation works ok
> > > > - .beam files are produced).
>
> > > > Thanks.
>
> > > > -Ghalib
>
> > > > On Sep 10, 7:14 am, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > > > > I'm pretty helpless on fixing this issue right now. It would be great
> > > > > if someone with a Windows machine could debug it and submit a fix.
>
> > > > > Yariv
>
> > > > > On 9/9/07, Fredrik Sjunnesson <Fredrik.Sjunnes...@acobiaflux.se> wrote:
>
> > > > > > I just tried to run an erlyweb on windows and I got exactly the same
> > > > > > problems, i.e. it compiles all right but ..._erlyweb_data:components
> > > > > > returns {0,nil}.
>
> > > > > > The application works well on Linux and both the runtime and the
> > > > > > app_root are installed on paths that doesn't contain any spaces, if that
> > > > > > is of any help.
>
> > > > > > /Fredrik
>
> > > > > > -----Original Message-----
> > > > > > From: erlyweb@googlegroups.com [mailto:erlyweb@googlegroups.com] On
> > > > > > Behalf Of Yariv Sadan
> > > > > > Sent: den 6 september 2007 09:10
> > > > > > To: erlyweb@googlegroups.com
> > > > > > Subject: [erlyweb-list] Re: Newbie to erlyweb
>
> > > > > > Yes, that's bad. It looks like erlyweb:compile() didn't pick up your
> > > > > > controllers. I'm guessing this is a Windows-related problem, but I
> > > > > > can't verify it without a Windows box. Would you mind zipping your
> > > > > > whole app dir and emailing it to me? Also, if someone can verify that
> > > > > > erlyweb:compile() works on windows, it would be great...
>
> > > > > > Yariv
>
> > > > > > On 9/5/07, Ghalib Suleiman <cow...@gmail.com> wrote:
>
> > > > > > > I get {0, nil}. That's probably bad, right?
>
> > > > > > > On Sep 5, 10:45 am, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > > > > > > > Hmm... maybe it's a Windows issue I'm not seeing on the Mac. Is
> > > > > > anyone
> > > > > > > > using ErlyWeb on Windows sucessfully?
>
> > > > > > > > There's one more thing you can try... In the yaws shell, type
> > > > > > > > 'testapp_erlyweb_data:components().', and let me know what result
> > > > > > > > this function returns.
>
> > > > > > > > On 9/3/07, Ghalib Suleiman <cow...@gmail.com> wrote:
>
> > > > > > > > > Still nothing...same effect as erlyweb:compile/1 :-/
>
> > > > > > > > > On Sep 3, 8:55 pm, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > > > > > > > > > Oops, I gave you the wrong instruction. It's
> > > > > > > > > > 'erlyweb:compile("C:/test/testapp", [{auto_compile, true}]).'
> > > > > > (the
> > > > > > > > > > second parameter is a list).
>
> > > > > > > > > > On 9/3/07, Ghalib Suleiman <cow...@gmail.com> wrote:
>
> > > > > > > > > > > Setting appmods to <"/", erlyweb> didn't work, same thing. My
> > > > > > > > > > > controller and view files are in the directory you indicated.
>
> > > > > > > > > > > I tried erlyweb:com pile("c:/test/testapp", {auto_compile,
> > > > > > true})
> > > > > > > > > > > and I got:
>
> > > > > > > > > > > 1> erlyweb:compile("C:/test/testapp", {auto_compile, true}).
> > > > > > > > > > > ** exited: {function_clause,[{lists,foldl,
> > > > > > > > > > > [#Fun<erlyweb_compile.
> > > > > > > > > > > 0.117977794>,
> > > > > > > > > > > ["C:/test/testapp/src"],
> > > > > > > > > > > {auto_compile,true}]},
> > > > > > > > > > > {erlyweb_compile,compile,2},
> > > > > > > > > > > {erl_eval,do_apply,5},
> > > > > > > > > > > {shell,exprs,6},
> > > > > > > > > > > {shell,eval_loop,3}]} **
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Sun Sep 16, 2007 7:08 pm |
|
|
|
Guest
|
I don't think this patch would cause a problem. This place in the code
only checks if the file is under "src/components" as erlyweb_compile
traverses the app's "src" directory. The only way a problem could
arise is if you created another subdirectory, e.g. "src/ComPoNents",
which isn't supposed to contain component files. But why would anyone
do that?
On 9/16/07, Ghalib Suleiman <cowmoo@gmail.com> wrote:
>
> Yariv, David raises a valid point that I had suspected (cheers
> David). I will try to cook up something better.
>
> -Ghalib
>
> On Sep 16, 10:46 pm, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > I committed the fix. Let me know if there are any other problems.
> >
> > Thanks,
> > Yariv
> >
> > On 9/16/07, Ghalib Suleiman <cow...@gmail.com> wrote:
> >
> >
> >
> > > Hi Yariv, I found the bug (you were right as to its location, thanks
> > > for the pointers).
> >
> > > The problem occurs if the argument to erlyweb:compile() contains an
> > > uppercase drive letter, e.g. erlyweb:compile("C:/blah/hello"). The
> > > filenames processed by the call to filelib:fold_files() on line 87 all
> > > have a lowercase drive letter, and so the call to lists:prefix() on
> > > line 311 will produce false, as you're comparing the ascii value for
> > > 'C' vs. 'c'. So, I suppose a case-insensitive compare is called for.
> > > Here's a tiny patch that was tested on both Windows and OS X (not sure
> > > if this is the best solution - are there any filesystems that allow
> > > e.g. Foo and foo as distinct directory names?):
> >
> > > --- /usr/local/lib/erlang/lib/erlyweb-0.6.2/src/erlyweb/
> > > erlyweb_compile.erl 2007-09-06 14:40:45.000000000 +0400
> > > +++ erlyweb-0.6.2/src/erlyweb/erlyweb_compile.erl 2007-09-16
> > > 15:29:32.000000000 +0400
> > > @@ -308,7 +308,7 @@
> > > Extension = filename:extension(FileName),
> > > BaseNameTokens = string:tokens(BaseName, "_"),
> >
> > > - Type = case lists:prefix(ComponentsDir, FileName) of
> > > + Type = case lists:prefix(string:to_lower(ComponentsDir),
> > > string:to_lower(FileName)) of
> > > true ->
> > > case lists:last(BaseNameTokens) of
> > > "controller" -> controller;
> >
> > > >Yariv Sadan wrote:
> > > > make_app_data_module() (line 147) is the function that creates the
> > > > components() function in the 'yourapp_erlyweb_data' module. However,
> > > > compile_component_file() (line 305) is where controllers are
> > > > recognized and entered into the tree of components that is then
> > > > embedded in 'yourapp_erlyweb_data'. I bet the bug is somewhere in the
> > > > beginning of compile_component_file().
> >
> > > > Yariv
> >
> > > > On 9/10/07, Ghalib Suleiman <cow...@gmail.com> wrote:
> >
> > > > > Hi Yariv - would you mind letting me know vaguely where in
> > > > > erlyweb_compile.erl components are registered? I want to try and debug
> > > > > this (as mentioned above, the compile step in isolation works ok
> > > > > - .beam files are produced).
> >
> > > > > Thanks.
> >
> > > > > -Ghalib
> >
> > > > > On Sep 10, 7:14 am, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > > > > > I'm pretty helpless on fixing this issue right now. It would be great
> > > > > > if someone with a Windows machine could debug it and submit a fix.
> >
> > > > > > Yariv
> >
> > > > > > On 9/9/07, Fredrik Sjunnesson <Fredrik.Sjunnes...@acobiaflux.se> wrote:
> >
> > > > > > > I just tried to run an erlyweb on windows and I got exactly the same
> > > > > > > problems, i.e. it compiles all right but ..._erlyweb_data:components
> > > > > > > returns {0,nil}.
> >
> > > > > > > The application works well on Linux and both the runtime and the
> > > > > > > app_root are installed on paths that doesn't contain any spaces, if that
> > > > > > > is of any help.
> >
> > > > > > > /Fredrik
> >
> > > > > > > -----Original Message-----
> > > > > > > From: erlyweb@googlegroups.com [mailto:erlyweb@googlegroups.com] On
> > > > > > > Behalf Of Yariv Sadan
> > > > > > > Sent: den 6 september 2007 09:10
> > > > > > > To: erlyweb@googlegroups.com
> > > > > > > Subject: [erlyweb-list] Re: Newbie to erlyweb
> >
> > > > > > > Yes, that's bad. It looks like erlyweb:compile() didn't pick up your
> > > > > > > controllers. I'm guessing this is a Windows-related problem, but I
> > > > > > > can't verify it without a Windows box. Would you mind zipping your
> > > > > > > whole app dir and emailing it to me? Also, if someone can verify that
> > > > > > > erlyweb:compile() works on windows, it would be great...
> >
> > > > > > > Yariv
> >
> > > > > > > On 9/5/07, Ghalib Suleiman <cow...@gmail.com> wrote:
> >
> > > > > > > > I get {0, nil}. That's probably bad, right?
> >
> > > > > > > > On Sep 5, 10:45 am, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > > > > > > > > Hmm... maybe it's a Windows issue I'm not seeing on the Mac. Is
> > > > > > > anyone
> > > > > > > > > using ErlyWeb on Windows sucessfully?
> >
> > > > > > > > > There's one more thing you can try... In the yaws shell, type
> > > > > > > > > 'testapp_erlyweb_data:components().', and let me know what result
> > > > > > > > > this function returns.
> >
> > > > > > > > > On 9/3/07, Ghalib Suleiman <cow...@gmail.com> wrote:
> >
> > > > > > > > > > Still nothing...same effect as erlyweb:compile/1 :-/
> >
> > > > > > > > > > On Sep 3, 8:55 pm, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > > > > > > > > > > Oops, I gave you the wrong instruction. It's
> > > > > > > > > > > 'erlyweb:compile("C:/test/testapp", [{auto_compile, true}]).'
> > > > > > > (the
> > > > > > > > > > > second parameter is a list).
> >
> > > > > > > > > > > On 9/3/07, Ghalib Suleiman <cow...@gmail.com> wrote:
> >
> > > > > > > > > > > > Setting appmods to <"/", erlyweb> didn't work, same thing. My
> > > > > > > > > > > > controller and view files are in the directory you indicated.
> >
> > > > > > > > > > > > I tried erlyweb:com pile("c:/test/testapp", {auto_compile,
> > > > > > > true})
> > > > > > > > > > > > and I got:
> >
> > > > > > > > > > > > 1> erlyweb:compile("C:/test/testapp", {auto_compile, true}).
> > > > > > > > > > > > ** exited: {function_clause,[{lists,foldl,
> > > > > > > > > > > > [#Fun<erlyweb_compile.
> > > > > > > > > > > > 0.117977794>,
> > > > > > > > > > > > ["C:/test/testapp/src"],
> > > > > > > > > > > > {auto_compile,true}]},
> > > > > > > > > > > > {erlyweb_compile,compile,2},
> > > > > > > > > > > > {erl_eval,do_apply,5},
> > > > > > > > > > > > {shell,exprs,6},
> > > > > > > > > > > > {shell,eval_loop,3}]} **
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Sun Sep 16, 2007 7:22 pm |
|
|
|
Guest
|
Heh, yes, I also thought "why would anyone do that", but strange
things do happen in the world of computers...Anyway, if you're fine
with things as they are, then that's that.
On Sep 16, 11:07 pm, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> I don't think this patch would cause a problem. This place in the code
> only checks if the file is under "src/components" as erlyweb_compile
> traverses the app's "src" directory. The only way a problem could
> arise is if you created another subdirectory, e.g. "src/ComPoNents",
> which isn't supposed to contain component files. But why would anyone
> do that?
>
> On 9/16/07, Ghalib Suleiman <cow...@gmail.com> wrote:
>
>
>
> > Yariv, David raises a valid point that I had suspected (cheers
> > David). I will try to cook up something better.
>
> > -Ghalib
>
> > On Sep 16, 10:46 pm, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > > I committed the fix. Let me know if there are any other problems.
>
> > > Thanks,
> > > Yariv
>
> > > On 9/16/07, Ghalib Suleiman <cow...@gmail.com> wrote:
>
> > > > Hi Yariv, I found the bug (you were right as to its location, thanks
> > > > for the pointers).
>
> > > > The problem occurs if the argument to erlyweb:compile() contains an
> > > > uppercase drive letter, e.g. erlyweb:compile("C:/blah/hello"). The
> > > > filenames processed by the call to filelib:fold_files() on line 87 all
> > > > have a lowercase drive letter, and so the call to lists:prefix() on
> > > > line 311 will produce false, as you're comparing the ascii value for
> > > > 'C' vs. 'c'. So, I suppose a case-insensitive compare is called for.
> > > > Here's a tiny patch that was tested on both Windows and OS X (not sure
> > > > if this is the best solution - are there any filesystems that allow
> > > > e.g. Foo and foo as distinct directory names?):
>
> > > > --- /usr/local/lib/erlang/lib/erlyweb-0.6.2/src/erlyweb/
> > > > erlyweb_compile.erl 2007-09-06 14:40:45.000000000 +0400
> > > > +++ erlyweb-0.6.2/src/erlyweb/erlyweb_compile.erl 2007-09-16
> > > > 15:29:32.000000000 +0400
> > > > @@ -308,7 +308,7 @@
> > > > Extension = filename:extension(FileName),
> > > > BaseNameTokens = string:tokens(BaseName, "_"),
>
> > > > - Type = case lists:prefix(ComponentsDir, FileName) of
> > > > + Type = case lists:prefix(string:to_lower(ComponentsDir),
> > > > string:to_lower(FileName)) of
> > > > true ->
> > > > case lists:last(BaseNameTokens) of
> > > > "controller" -> controller;
>
> > > > >Yariv Sadan wrote:
> > > > > make_app_data_module() (line 147) is the function that creates the
> > > > > components() function in the 'yourapp_erlyweb_data' module. However,
> > > > > compile_component_file() (line 305) is where controllers are
> > > > > recognized and entered into the tree of components that is then
> > > > > embedded in 'yourapp_erlyweb_data'. I bet the bug is somewhere in the
> > > > > beginning of compile_component_file().
>
> > > > > Yariv
>
> > > > > On 9/10/07, Ghalib Suleiman <cow...@gmail.com> wrote:
>
> > > > > > Hi Yariv - would you mind letting me know vaguely where in
> > > > > > erlyweb_compile.erl components are registered? I want to try and debug
> > > > > > this (as mentioned above, the compile step in isolation works ok
> > > > > > - .beam files are produced).
>
> > > > > > Thanks.
>
> > > > > > -Ghalib
>
> > > > > > On Sep 10, 7:14 am, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > > > > > > I'm pretty helpless on fixing this issue right now. It would be great
> > > > > > > if someone with a Windows machine could debug it and submit a fix.
>
> > > > > > > Yariv
>
> > > > > > > On 9/9/07, Fredrik Sjunnesson <Fredrik.Sjunnes...@acobiaflux.se> wrote:
>
> > > > > > > > I just tried to run an erlyweb on windows and I got exactly the same
> > > > > > > > problems, i.e. it compiles all right but ..._erlyweb_data:components
> > > > > > > > returns {0,nil}.
>
> > > > > > > > The application works well on Linux and both the runtime and the
> > > > > > > > app_root are installed on paths that doesn't contain any spaces, if that
> > > > > > > > is of any help.
>
> > > > > > > > /Fredrik
>
> > > > > > > > -----Original Message-----
> > > > > > > > From: erlyweb@googlegroups.com [mailto:erlyweb@googlegroups.com] On
> > > > > > > > Behalf Of Yariv Sadan
> > > > > > > > Sent: den 6 september 2007 09:10
> > > > > > > > To: erlyweb@googlegroups.com
> > > > > > > > Subject: [erlyweb-list] Re: Newbie to erlyweb
>
> > > > > > > > Yes, that's bad. It looks like erlyweb:compile() didn't pick up your
> > > > > > > > controllers. I'm guessing this is a Windows-related problem, but I
> > > > > > > > can't verify it without a Windows box. Would you mind zipping your
> > > > > > > > whole app dir and emailing it to me? Also, if someone can verify that
> > > > > > > > erlyweb:compile() works on windows, it would be great...
>
> > > > > > > > Yariv
>
> > > > > > > > On 9/5/07, Ghalib Suleiman <cow...@gmail.com> wrote:
>
> > > > > > > > > I get {0, nil}. That's probably bad, right?
>
> > > > > > > > > On Sep 5, 10:45 am, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > > > > > > > > > Hmm... maybe it's a Windows issue I'm not seeing on the Mac. Is
> > > > > > > > anyone
> > > > > > > > > > using ErlyWeb on Windows sucessfully?
>
> > > > > > > > > > There's one more thing you can try... In the yaws shell, type
> > > > > > > > > > 'testapp_erlyweb_data:components().', and let me know what result
> > > > > > > > > > this function returns.
>
> > > > > > > > > > On 9/3/07, Ghalib Suleiman <cow...@gmail.com> wrote:
>
> > > > > > > > > > > Still nothing...same effect as erlyweb:compile/1 :-/
>
> > > > > > > > > > > On Sep 3, 8:55 pm, "Yariv Sadan" <yarivsa...@gmail.com> wrote:
> > > > > > > > > > > > Oops, I gave you the wrong instruction. It's
> > > > > > > > > > > > 'erlyweb:compile("C:/test/testapp", [{auto_compile, true}]).'
> > > > > > > > (the
> > > > > > > > > > > > second parameter is a list).
>
> > > > > > > > > > > > On 9/3/07, Ghalib Suleiman <cow...@gmail.com> wrote:
>
> > > > > > > > > > > > > Setting appmods to <"/", erlyweb> didn't work, same thing. My
> > > > > > > > > > > > > controller and view files are in the directory you indicated.
>
> > > > > > > > > > > > > I tried erlyweb:com pile("c:/test/testapp", {auto_compile,
> > > > > > > > true})
> > > > > > > > > > > > > and I got:
>
> > > > > > > > > > > > > 1> erlyweb:compile("C:/test/testapp", {auto_compile, true}).
> > > > > > > > > > > > > ** exited: {function_clause,[{lists,foldl,
> > > > > > > > > > > > > [#Fun<erlyweb_compile.
> > > > > > > > > > > > > 0.117977794>,
> > > > > > > > > > > > > ["C:/test/testapp/src"],
> > > > > > > > > > > > > {auto_compile,true}]},
> > > > > > > > > > > > > {erlyweb_compile,compile,2},
> > > > > > > > > > > > > {erl_eval,do_apply,5},
> > > > > > > > > > > > > {shell,exprs,6},
> > > > > > > > > > > > > {shell,eval_loop,3}]} **
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---
Post recived from mailinglist |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|