| Author |
Message |
|
| ketralnis |
Posted: Mon Nov 26, 2007 2:44 am |
|
|
|
User
Joined: 20 Jul 2007
Posts: 151
Location: San Francisco, CA
|
I'm getting a lot of false warnings when compiling erlyweb components
that just started appearing a few seconds ago (literally; I did an
"svn up" just a few minutes apart and there were changes in the
second one).
They say "Warning: variable 'Response' is unused". I assume that this
is in some of the code that erlyweb injects, since I don't use that
name anywhere.
In addition, I'm still getting the erlydb_psql issues:
** exited: {undef,[{erlydb_psql,get_default_pool_id,[]},
{erlydb,gen_module_code,5},
{lists,foreach,2},
{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: Mon Nov 26, 2007 2:51 am |
|
|
|
User
Joined: 20 Jul 2007
Posts: 151
Location: San Francisco, CA
|
> I'm getting a lot of false warnings when compiling erlyweb components
> that just started appearing a few seconds ago (literally; I did an
> "svn up" just a few minutes apart and there were changes in the
> second one).
Just to be more specific, it happens when compiling controllers, not
views or models.
>
> They say "Warning: variable 'Response' is unused". I assume that this
> is in some of the code that erlyweb injects, since I don't use that
> name anywhere.
>
> In addition, I'm still getting the erlydb_psql issues:
>
> ** exited: {undef,[{erlydb_psql,get_default_pool_id,[]},
> {erlydb,gen_module_code,5},
> {lists,foreach,2},
> {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 Nov 26, 2007 3:27 am |
|
|
|
Guest
|
I just committed a fix.
On Nov 25, 2007 6:46 PM, David King <dking@ketralnis.com> wrote:
>
> > I'm getting a lot of false warnings when compiling erlyweb components
> > that just started appearing a few seconds ago (literally; I did an
> > "svn up" just a few minutes apart and there were changes in the
> > second one).
>
> Just to be more specific, it happens when compiling controllers, not
> views or models.
>
>
> >
> > They say "Warning: variable 'Response' is unused". I assume that this
> > is in some of the code that erlyweb injects, since I don't use that
> > name anywhere.
> >
> > In addition, I'm still getting the erlydb_psql issues:
> >
> > ** exited: {undef,[{erlydb_psql,get_default_pool_id,[]},
> > {erlydb,gen_module_code,5},
> > {lists,foreach,2},
> > {erlyweb_compile,compile,2},
> > {erl_eval,do_apply,5},
> > {shell,exprs,6},
> > {shell,eval_loop,3}]} **
> >
> >
>
> >
>
--
http://vimagi.com
http://erlyweb.org
--~--~---------~--~----~------------~-------~--~----~
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: Mon Nov 26, 2007 3:31 am |
|
|
|
User
Joined: 20 Jul 2007
Posts: 151
Location: San Francisco, CA
|
> I just committed a fix.
Thanks. How about the undef on erlydb_psql:get_default_pool_id()? Is
that something I've broken?
>
> On Nov 25, 2007 6:46 PM, David King <dking@ketralnis.com> wrote:
>>
>>> I'm getting a lot of false warnings when compiling erlyweb
>>> components
>>> that just started appearing a few seconds ago (literally; I did an
>>> "svn up" just a few minutes apart and there were changes in the
>>> second one).
>>
>> Just to be more specific, it happens when compiling controllers, not
>> views or models.
>>
>>
>>>
>>> They say "Warning: variable 'Response' is unused". I assume that
>>> this
>>> is in some of the code that erlyweb injects, since I don't use that
>>> name anywhere.
>>>
>>> In addition, I'm still getting the erlydb_psql issues:
>>>
>>> ** exited: {undef,[{erlydb_psql,get_default_pool_id,[]},
>>> {erlydb,gen_module_code,5},
>>> {lists,foreach,2},
>>> {erlyweb_compile,compile,2},
>>> {erl_eval,do_apply,5},
>>> {shell,exprs,6},
>>> {shell,eval_loop,3}]} **
>>>
>>>
>>
>>>
>>
>
>
>
> --
> http://vimagi.com
> http://erlyweb.org
>
>
--~--~---------~--~----~------------~-------~--~----~
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: Mon Nov 26, 2007 3:51 am |
|
|
|
User
Joined: 20 Jul 2007
Posts: 151
Location: San Francisco, CA
|
> Try it now
A new error, at least
=ERROR REPORT==== 25-Nov-2007::19:47:26 ===
Error in process <0.37.0> on node 'node@host' with exit value:
{function_clause,[{gb_trees,lookup_1,[some_model,{6,{some_other_model,
[{erlydb_field,id,"id",<<2
bytes>>,integer,undefined,integer,text_field,false,primary,undefined,ide
ntity,undefined},{erlydb_field,name,"name",<<4 bytes>>,'character
varying'...
** exited: {function_clause,
[{gb_trees,
lookup_1,
[some_model,
{6,
{some_other_model,
[{erlydb_field,
id,
Now, I'm in the process of porting from mnesia to psql, and this is
the first time I've been able to compile in the porting process, so
it could be my fault; but any direction-pointing is appreciated
>
> On Nov 25, 2007 7:30 PM, David King <dking@ketralnis.com> wrote:
>>
>>> I just committed a fix.
>>
>> Thanks. How about the undef on erlydb_psql:get_default_pool_id()? Is
>> that something I've broken?
>>
>>>
>>> On Nov 25, 2007 6:46 PM, David King <dking@ketralnis.com> wrote:
>>>>
>>>>> I'm getting a lot of false warnings when compiling erlyweb
>>>>> components
>>>>> that just started appearing a few seconds ago (literally; I did an
>>>>> "svn up" just a few minutes apart and there were changes in the
>>>>> second one).
>>>>
>>>> Just to be more specific, it happens when compiling controllers,
>>>> not
>>>> views or models.
>>>>
>>>>
>>>>>
>>>>> They say "Warning: variable 'Response' is unused". I assume that
>>>>> this
>>>>> is in some of the code that erlyweb injects, since I don't use
>>>>> that
>>>>> name anywhere.
>>>>>
>>>>> In addition, I'm still getting the erlydb_psql issues:
>>>>>
>>>>> ** exited: {undef,[{erlydb_psql,get_default_pool_id,[]},
>>>>> {erlydb,gen_module_code,5},
>>>>> {lists,foreach,2},
>>>>> {erlyweb_compile,compile,2},
>>>>> {erl_eval,do_apply,5},
>>>>> {shell,exprs,6},
>>>>> {shell,eval_loop,3}]} **
>>>>>
>>>>>
>>>>
>>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> http://vimagi.com
>>> http://erlyweb.org
>>>
>>>
>>
>>
>>>
>>
>
>
>
> --
> http://vimagi.com
> http://erlyweb.org
>
>
--~--~---------~--~----~------------~-------~--~----~
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: Mon Nov 26, 2007 4:59 am |
|
|
|
User
Joined: 20 Jul 2007
Posts: 151
Location: San Francisco, CA
|
This also happens if I have no models at all in the database
=ERROR REPORT==== 25-Nov-2007::20:48:14 ===
Error in process <0.6623.0> on node 'node@host' with exit value:
{function_clause,[{gb_trees,lookup_1,[session,{0,nil}]},
{erlydb,gen_module_code,5},{lists,foreach,2},{erlyweb_compile,compile,
2},{erl_eval,do_apply,5},{shell,exprs,6},{shell,eval_loop,3}]}
** exited: {function_clause,[{gb_trees,lookup_1,[session,{0,nil}]},
{erlydb,gen_module_code,5},
{lists,foreach,2},
{erlyweb_compile,compile,2},
{erl_eval,do_apply,5},
{shell,exprs,6},
{shell,eval_loop,3}]} **
'session' is one of my models.
On 25 Nov 2007, at 19:50, David King wrote:
>
>> Try it now
>
> A new error, at least
>
> =ERROR REPORT==== 25-Nov-2007::19:47:26 ===
> Error in process <0.37.0> on node 'node@host' with exit value:
> {function_clause,[{gb_trees,lookup_1,[some_model,{6,{some_other_model,
> [{erlydb_field,id,"id",<<2
> bytes>>,integer,undefined,integer,text_field,false,primary,undefined,i
> de
> ntity,undefined},{erlydb_field,name,"name",<<4 bytes>>,'character
> varying'...
>
> ** exited: {function_clause,
> [{gb_trees,
> lookup_1,
> [some_model,
> {6,
> {some_other_model,
> [{erlydb_field,
> id,
>
> Now, I'm in the process of porting from mnesia to psql, and this is
> the first time I've been able to compile in the porting process, so
> it could be my fault; but any direction-pointing is appreciated
>
>
>>
>> On Nov 25, 2007 7:30 PM, David King <dking@ketralnis.com> wrote:
>>>
>>>> I just committed a fix.
>>>
>>> Thanks. How about the undef on erlydb_psql:get_default_pool_id()? Is
>>> that something I've broken?
>>>
>>>>
>>>> On Nov 25, 2007 6:46 PM, David King <dking@ketralnis.com> wrote:
>>>>>
>>>>>> I'm getting a lot of false warnings when compiling erlyweb
>>>>>> components
>>>>>> that just started appearing a few seconds ago (literally; I
>>>>>> did an
>>>>>> "svn up" just a few minutes apart and there were changes in the
>>>>>> second one).
>>>>>
>>>>> Just to be more specific, it happens when compiling controllers,
>>>>> not
>>>>> views or models.
>>>>>
>>>>>
>>>>>>
>>>>>> They say "Warning: variable 'Response' is unused". I assume that
>>>>>> this
>>>>>> is in some of the code that erlyweb injects, since I don't use
>>>>>> that
>>>>>> name anywhere.
>>>>>>
>>>>>> In addition, I'm still getting the erlydb_psql issues:
>>>>>>
>>>>>> ** exited: {undef,[{erlydb_psql,get_default_pool_id,[]},
>>>>>> {erlydb,gen_module_code,5},
>>>>>> {lists,foreach,2},
>>>>>> {erlyweb_compile,compile,2},
>>>>>> {erl_eval,do_apply,5},
>>>>>> {shell,exprs,6},
>>>>>> {shell,eval_loop,3}]} **
>>>>>>
>>>>>>
>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> http://vimagi.com
>>>> http://erlyweb.org
>>>>
>>>>
>>>
>>>
>>>>
>>>
>>
>>
>>
>> --
>> http://vimagi.com
>> http://erlyweb.org
>>
>>
>
>
--~--~---------~--~----~------------~-------~--~----~
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 Nov 26, 2007 6:23 am |
|
|
|
Guest
|
Does this happen only when you use psql? I can't reproduce this one using MySQL.
On Nov 25, 2007 8:57 PM, David King <dking@ketralnis.com> wrote:
>
> This also happens if I have no models at all in the database
>
> =ERROR REPORT==== 25-Nov-2007::20:48:14 ===
> Error in process <0.6623.0> on node 'node@host' with exit value:
> {function_clause,[{gb_trees,lookup_1,[session,{0,nil}]},
> {erlydb,gen_module_code,5},{lists,foreach,2},{erlyweb_compile,compile,
> 2},{erl_eval,do_apply,5},{shell,exprs,6},{shell,eval_loop,3}]}
>
> ** exited: {function_clause,[{gb_trees,lookup_1,[session,{0,nil}]},
> {erlydb,gen_module_code,5},
> {lists,foreach,2},
> {erlyweb_compile,compile,2},
> {erl_eval,do_apply,5},
> {shell,exprs,6},
> {shell,eval_loop,3}]} **
>
>
> 'session' is one of my models.
>
>
>
> On 25 Nov 2007, at 19:50, David King wrote:
>
> >
> >> Try it now
> >
> > A new error, at least
> >
> > =ERROR REPORT==== 25-Nov-2007::19:47:26 ===
> > Error in process <0.37.0> on node 'node@host' with exit value:
> > {function_clause,[{gb_trees,lookup_1,[some_model,{6,{some_other_model,
> > [{erlydb_field,id,"id",<<2
> > bytes>>,integer,undefined,integer,text_field,false,primary,undefined,i
> > de
> > ntity,undefined},{erlydb_field,name,"name",<<4 bytes>>,'character
> > varying'...
> >
> > ** exited: {function_clause,
> > [{gb_trees,
> > lookup_1,
> > [some_model,
> > {6,
> > {some_other_model,
> > [{erlydb_field,
> > id,
> >
> > Now, I'm in the process of porting from mnesia to psql, and this is
> > the first time I've been able to compile in the porting process, so
> > it could be my fault; but any direction-pointing is appreciated
> >
> >
> >>
> >> On Nov 25, 2007 7:30 PM, David King <dking@ketralnis.com> wrote:
> >>>
> >>>> I just committed a fix.
> >>>
> >>> Thanks. How about the undef on erlydb_psql:get_default_pool_id()? Is
> >>> that something I've broken?
> >>>
> >>>>
> >>>> On Nov 25, 2007 6:46 PM, David King <dking@ketralnis.com> wrote:
> >>>>>
> >>>>>> I'm getting a lot of false warnings when compiling erlyweb
> >>>>>> components
> >>>>>> that just started appearing a few seconds ago (literally; I
> >>>>>> did an
> >>>>>> "svn up" just a few minutes apart and there were changes in the
> >>>>>> second one).
> >>>>>
> >>>>> Just to be more specific, it happens when compiling controllers,
> >>>>> not
> >>>>> views or models.
> >>>>>
> >>>>>
> >>>>>>
> >>>>>> They say "Warning: variable 'Response' is unused". I assume that
> >>>>>> this
> >>>>>> is in some of the code that erlyweb injects, since I don't use
> >>>>>> that
> >>>>>> name anywhere.
> >>>>>>
> >>>>>> In addition, I'm still getting the erlydb_psql issues:
> >>>>>>
> >>>>>> ** exited: {undef,[{erlydb_psql,get_default_pool_id,[]},
> >>>>>> {erlydb,gen_module_code,5},
> >>>>>> {lists,foreach,2},
> >>>>>> {erlyweb_compile,compile,2},
> >>>>>> {erl_eval,do_apply,5},
> >>>>>> {shell,exprs,6},
> >>>>>> {shell,eval_loop,3}]} **
> >>>>>>
> >>>>>>
> >>>>>
> >>>>>>
> >>>>>
> >>>>
> >>>>
> >>>>
> >>>> --
> >>>> http://vimagi.com
> >>>> http://erlyweb.org
> >>>>
> >>>>
> >>>
> >>>
> >>>>
> >>>
> >>
> >>
> >>
> >> --
> >> http://vimagi.com
> >> http://erlyweb.org
> >>
> >>
> >
> >
>
> >
>
--
http://vimagi.com
http://erlyweb.org
--~--~---------~--~----~------------~-------~--~----~
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 Nov 26, 2007 6:28 am |
|
|
|
Guest
|
Hmm... It looks like an issue with the psql driver -- maybe I broke it
when I added support for multiple dbs. Do you have the rest of the
stack trace?
On Nov 25, 2007 7:50 PM, David King <dking@ketralnis.com> wrote:
>
> > Try it now
>
> A new error, at least
>
> =ERROR REPORT==== 25-Nov-2007::19:47:26 ===
> Error in process <0.37.0> on node 'node@host' with exit value:
> {function_clause,[{gb_trees,lookup_1,[some_model,{6,{some_other_model,
> [{erlydb_field,id,"id",<<2
> bytes>>,integer,undefined,integer,text_field,false,primary,undefined,ide
> ntity,undefined},{erlydb_field,name,"name",<<4 bytes>>,'character
> varying'...
>
> ** exited: {function_clause,
> [{gb_trees,
> lookup_1,
> [some_model,
> {6,
> {some_other_model,
> [{erlydb_field,
> id,
>
> Now, I'm in the process of porting from mnesia to psql, and this is
> the first time I've been able to compile in the porting process, so
> it could be my fault; but any direction-pointing is appreciated
>
>
>
> >
> > On Nov 25, 2007 7:30 PM, David King <dking@ketralnis.com> wrote:
> >>
> >>> I just committed a fix.
> >>
> >> Thanks. How about the undef on erlydb_psql:get_default_pool_id()? Is
> >> that something I've broken?
> >>
> >>>
> >>> On Nov 25, 2007 6:46 PM, David King <dking@ketralnis.com> wrote:
> >>>>
> >>>>> I'm getting a lot of false warnings when compiling erlyweb
> >>>>> components
> >>>>> that just started appearing a few seconds ago (literally; I did an
> >>>>> "svn up" just a few minutes apart and there were changes in the
> >>>>> second one).
> >>>>
> >>>> Just to be more specific, it happens when compiling controllers,
> >>>> not
> >>>> views or models.
> >>>>
> >>>>
> >>>>>
> >>>>> They say "Warning: variable 'Response' is unused". I assume that
> >>>>> this
> >>>>> is in some of the code that erlyweb injects, since I don't use
> >>>>> that
> >>>>> name anywhere.
> >>>>>
> >>>>> In addition, I'm still getting the erlydb_psql issues:
> >>>>>
> >>>>> ** exited: {undef,[{erlydb_psql,get_default_pool_id,[]},
> >>>>> {erlydb,gen_module_code,5},
> >>>>> {lists,foreach,2},
> >>>>> {erlyweb_compile,compile,2},
> >>>>> {erl_eval,do_apply,5},
> >>>>> {shell,exprs,6},
> >>>>> {shell,eval_loop,3}]} **
> >>>>>
> >>>>>
> >>>>
> >>>>>
> >>>>
> >>>
> >>>
> >>>
> >>> --
> >>> http://vimagi.com
> >>> http://erlyweb.org
> >>>
> >>>
> >>
> >>
> >>>
> >>
> >
> >
> >
> > --
> > http://vimagi.com
> > http://erlyweb.org
> >
> >
>
> >
>
--
http://vimagi.com
http://erlyweb.org
--~--~---------~--~----~------------~-------~--~----~
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: Mon Nov 26, 2007 6:52 am |
|
|
|
User
Joined: 20 Jul 2007
Posts: 151
Location: San Francisco, CA
|
> Does this happen only when you use psql? I can't reproduce this one
> using MySQL.
It wasn't happening with mnesia, and I don't have a mysql
installation handy. Anything I can try to do to troubleshoot?
>
> On Nov 25, 2007 8:57 PM, David King <dking@ketralnis.com> wrote:
>>
>> This also happens if I have no models at all in the database
>>
>> =ERROR REPORT==== 25-Nov-2007::20:48:14 ===
>> Error in process <0.6623.0> on node 'node@host' with exit value:
>> {function_clause,[{gb_trees,lookup_1,[session,{0,nil}]},
>> {erlydb,gen_module_code,5},{lists,foreach,2},
>> {erlyweb_compile,compile,
>> 2},{erl_eval,do_apply,5},{shell,exprs,6},{shell,eval_loop,3}]}
>>
>> ** exited: {function_clause,[{gb_trees,lookup_1,[session,{0,nil}]},
>> {erlydb,gen_module_code,5},
>> {lists,foreach,2},
>> {erlyweb_compile,compile,2},
>> {erl_eval,do_apply,5},
>> {shell,exprs,6},
>> {shell,eval_loop,3}]} **
>>
>>
>> 'session' is one of my models.
>>
>>
>>
>> On 25 Nov 2007, at 19:50, David King wrote:
>>
>>>
>>>> Try it now
>>>
>>> A new error, at least
>>>
>>> =ERROR REPORT==== 25-Nov-2007::19:47:26 ===
>>> Error in process <0.37.0> on node 'node@host' with exit value:
>>> {function_clause,[{gb_trees,lookup_1,[some_model,{6,
>>> {some_other_model,
>>> [{erlydb_field,id,"id",<<2
>>> bytes>>,integer,undefined,integer,text_field,false,primary,undefined
>>> ,i
>>> de
>>> ntity,undefined},{erlydb_field,name,"name",<<4 bytes>>,'character
>>> varying'...
>>>
>>> ** exited: {function_clause,
>>> [{gb_trees,
>>> lookup_1,
>>> [some_model,
>>> {6,
>>> {some_other_model,
>>> [{erlydb_field,
>>> id,
>>>
>>> Now, I'm in the process of porting from mnesia to psql, and this is
>>> the first time I've been able to compile in the porting process, so
>>> it could be my fault; but any direction-pointing is appreciated
>>>
>>>
>>>>
>>>> On Nov 25, 2007 7:30 PM, David King <dking@ketralnis.com> wrote:
>>>>>
>>>>>> I just committed a fix.
>>>>>
>>>>> Thanks. How about the undef on erlydb_psql:get_default_pool_id
>>>>> ()? Is
>>>>> that something I've broken?
>>>>>
>>>>>>
>>>>>> On Nov 25, 2007 6:46 PM, David King <dking@ketralnis.com> wrote:
>>>>>>>
>>>>>>>> I'm getting a lot of false warnings when compiling erlyweb
>>>>>>>> components
>>>>>>>> that just started appearing a few seconds ago (literally; I
>>>>>>>> did an
>>>>>>>> "svn up" just a few minutes apart and there were changes in the
>>>>>>>> second one).
>>>>>>>
>>>>>>> Just to be more specific, it happens when compiling controllers,
>>>>>>> not
>>>>>>> views or models.
>>>>>>>
>>>>>>>
>>>>>>>>
>>>>>>>> They say "Warning: variable 'Response' is unused". I assume
>>>>>>>> that
>>>>>>>> this
>>>>>>>> is in some of the code that erlyweb injects, since I don't use
>>>>>>>> that
>>>>>>>> name anywhere.
>>>>>>>>
>>>>>>>> In addition, I'm still getting the erlydb_psql issues:
>>>>>>>>
>>>>>>>> ** exited: {undef,[{erlydb_psql,get_default_pool_id,[]},
>>>>>>>> {erlydb,gen_module_code,5},
>>>>>>>> {lists,foreach,2},
>>>>>>>> {erlyweb_compile,compile,2},
>>>>>>>> {erl_eval,do_apply,5},
>>>>>>>> {shell,exprs,6},
>>>>>>>> {shell,eval_loop,3}]} **
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> http://vimagi.com
>>>>>> http://erlyweb.org
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> http://vimagi.com
>>>> http://erlyweb.org
>>>>
>>>>
>>>
>>>
>>
>>>
>>
>
>
>
> --
> http://vimagi.com
> http://erlyweb.org
>
>
--~--~---------~--~----~------------~-------~--~----~
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: Mon Nov 26, 2007 6:54 am |
|
|
|
User
Joined: 20 Jul 2007
Posts: 151
Location: San Francisco, CA
|
> Hmm... It looks like an issue with the psql driver -- maybe I broke it
> when I added support for multiple dbs. Do you have the rest of the
> stack trace?
Sent privately.
>
> On Nov 25, 2007 7:50 PM, David King <dking@ketralnis.com> wrote:
>>
>>> Try it now
>>
>> A new error, at least
>>
>> =ERROR REPORT==== 25-Nov-2007::19:47:26 ===
>> Error in process <0.37.0> on node 'node@host' with exit value:
>> {function_clause,[{gb_trees,lookup_1,[some_model,{6,
>> {some_other_model,
>> [{erlydb_field,id,"id",<<2
>> bytes>>,integer,undefined,integer,text_field,false,primary,undefined,
>> ide
>> ntity,undefined},{erlydb_field,name,"name",<<4 bytes>>,'character
>> varying'...
>>
>> ** exited: {function_clause,
>> [{gb_trees,
>> lookup_1,
>> [some_model,
>> {6,
>> {some_other_model,
>> [{erlydb_field,
>> id,
>>
>> Now, I'm in the process of porting from mnesia to psql, and this is
>> the first time I've been able to compile in the porting process, so
>> it could be my fault; but any direction-pointing is appreciated
>>
>>
>>
>>>
>>> On Nov 25, 2007 7:30 PM, David King <dking@ketralnis.com> wrote:
>>>>
>>>>> I just committed a fix.
>>>>
>>>> Thanks. How about the undef on erlydb_psql:get_default_pool_id
>>>> ()? Is
>>>> that something I've broken?
>>>>
>>>>>
>>>>> On Nov 25, 2007 6:46 PM, David King <dking@ketralnis.com> wrote:
>>>>>>
>>>>>>> I'm getting a lot of false warnings when compiling erlyweb
>>>>>>> components
>>>>>>> that just started appearing a few seconds ago (literally; I
>>>>>>> did an
>>>>>>> "svn up" just a few minutes apart and there were changes in the
>>>>>>> second one).
>>>>>>
>>>>>> Just to be more specific, it happens when compiling controllers,
>>>>>> not
>>>>>> views or models.
>>>>>>
>>>>>>
>>>>>>>
>>>>>>> They say "Warning: variable 'Response' is unused". I assume that
>>>>>>> this
>>>>>>> is in some of the code that erlyweb injects, since I don't use
>>>>>>> that
>>>>>>> name anywhere.
>>>>>>>
>>>>>>> In addition, I'm still getting the erlydb_psql issues:
>>>>>>>
>>>>>>> ** exited: {undef,[{erlydb_psql,get_default_pool_id,[]},
>>>>>>> {erlydb,gen_module_code,5},
>>>>>>> {lists,foreach,2},
>>>>>>> {erlyweb_compile,compile,2},
>>>>>>> {erl_eval,do_apply,5},
>>>>>>> {shell,exprs,6},
>>>>>>> {shell,eval_loop,3}]} **
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> http://vimagi.com
>>>>> http://erlyweb.org
>>>>>
>>>>>
>>>>
>>>>
>>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> http://vimagi.com
>>> http://erlyweb.org
>>>
>>>
>>
>>>
>>
>
>
>
> --
> http://vimagi.com
> http://erlyweb.org
>
>
--~--~---------~--~----~------------~-------~--~----~
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 Nov 26, 2007 7:25 am |
|
|
|
Guest
|
You can try to debug the erlydb:gen_module_code and figure out where
the issue is. I can also try to install postgres and see if I can get
it to work, or someone else on the list who uses postgres could jump
in and help.
On Nov 25, 2007 10:50 PM, David King <dking@ketralnis.com> wrote:
>
> > Does this happen only when you use psql? I can't reproduce this one
> > using MySQL.
>
> It wasn't happening with mnesia, and I don't have a mysql
> installation handy. Anything I can try to do to troubleshoot?
>
>
> >
> > On Nov 25, 2007 8:57 PM, David King <dking@ketralnis.com> wrote:
> >>
> >> This also happens if I have no models at all in the database
> >>
> >> =ERROR REPORT==== 25-Nov-2007::20:48:14 ===
> >> Error in process <0.6623.0> on node 'node@host' with exit value:
> >> {function_clause,[{gb_trees,lookup_1,[session,{0,nil}]},
> >> {erlydb,gen_module_code,5},{lists,foreach,2},
> >> {erlyweb_compile,compile,
> >> 2},{erl_eval,do_apply,5},{shell,exprs,6},{shell,eval_loop,3}]}
> >>
> >> ** exited: {function_clause,[{gb_trees,lookup_1,[session,{0,nil}]},
> >> {erlydb,gen_module_code,5},
> >> {lists,foreach,2},
> >> {erlyweb_compile,compile,2},
> >> {erl_eval,do_apply,5},
> >> {shell,exprs,6},
> >> {shell,eval_loop,3}]} **
> >>
> >>
> >> 'session' is one of my models.
> >>
> >>
> >>
> >> On 25 Nov 2007, at 19:50, David King wrote:
> >>
> >>>
> >>>> Try it now
> >>>
> >>> A new error, at least
> >>>
> >>> =ERROR REPORT==== 25-Nov-2007::19:47:26 ===
> >>> Error in process <0.37.0> on node 'node@host' with exit value:
> >>> {function_clause,[{gb_trees,lookup_1,[some_model,{6,
> >>> {some_other_model,
> >>> [{erlydb_field,id,"id",<<2
> >>> bytes>>,integer,undefined,integer,text_field,false,primary,undefined
> >>> ,i
> >>> de
> >>> ntity,undefined},{erlydb_field,name,"name",<<4 bytes>>,'character
> >>> varying'...
> >>>
> >>> ** exited: {function_clause,
> >>> [{gb_trees,
> >>> lookup_1,
> >>> [some_model,
> >>> {6,
> >>> {some_other_model,
> >>> [{erlydb_field,
> >>> id,
> >>>
> >>> Now, I'm in the process of porting from mnesia to psql, and this is
> >>> the first time I've been able to compile in the porting process, so
> >>> it could be my fault; but any direction-pointing is appreciated
> >>>
> >>>
> >>>>
> >>>> On Nov 25, 2007 7:30 PM, David King <dking@ketralnis.com> wrote:
> >>>>>
> >>>>>> I just committed a fix.
> >>>>>
> >>>>> Thanks. How about the undef on erlydb_psql:get_default_pool_id
> >>>>> ()? Is
> >>>>> that something I've broken?
> >>>>>
> >>>>>>
> >>>>>> On Nov 25, 2007 6:46 PM, David King <dking@ketralnis.com> wrote:
> >>>>>>>
> >>>>>>>> I'm getting a lot of false warnings when compiling erlyweb
> >>>>>>>> components
> >>>>>>>> that just started appearing a few seconds ago (literally; I
> >>>>>>>> did an
> >>>>>>>> "svn up" just a few minutes apart and there were changes in the
> >>>>>>>> second one).
> >>>>>>>
> >>>>>>> Just to be more specific, it happens when compiling controllers,
> >>>>>>> not
> >>>>>>> views or models.
> >>>>>>>
> >>>>>>>
> >>>>>>>>
> >>>>>>>> They say "Warning: variable 'Response' is unused". I assume
> >>>>>>>> that
> >>>>>>>> this
> >>>>>>>> is in some of the code that erlyweb injects, since I don't use
> >>>>>>>> that
> >>>>>>>> name anywhere.
> >>>>>>>>
> >>>>>>>> In addition, I'm still getting the erlydb_psql issues:
> >>>>>>>>
> >>>>>>>> ** exited: {undef,[{erlydb_psql,get_default_pool_id,[]},
> >>>>>>>> {erlydb,gen_module_code,5},
> >>>>>>>> {lists,foreach,2},
> >>>>>>>> {erlyweb_compile,compile,2},
> >>>>>>>> {erl_eval,do_apply,5},
> >>>>>>>> {shell,exprs,6},
> >>>>>>>> {shell,eval_loop,3}]} **
> >>>>>>>>
> >>>>>>>>
> >>>>>>>
> >>>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> --
> >>>>>> http://vimagi.com
> >>>>>> http://erlyweb.org
> >>>>>>
> >>>>>>
> >>>>>
> >>>>>
> >>>>>>
> >>>>>
> >>>>
> >>>>
> >>>>
> >>>> --
> >>>> http://vimagi.com
> >>>> http://erlyweb.org
> >>>>
> >>>>
> >>>
> >>>
> >>
> >>>
> >>
> >
> >
> >
> > --
> > http://vimagi.com
> > http://erlyweb.org
> >
> >
>
> >
>
--
http://vimagi.com
http://erlyweb.org
--~--~---------~--~----~------------~-------~--~----~
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 Nov 26, 2007 9:39 pm |
|
|
|
Guest
|
Try it now
On Nov 25, 2007 7:30 PM, David King <dking@ketralnis.com> wrote:
>
> > I just committed a fix.
>
> Thanks. How about the undef on erlydb_psql:get_default_pool_id()? Is
> that something I've broken?
>
> >
> > On Nov 25, 2007 6:46 PM, David King <dking@ketralnis.com> wrote:
> >>
> >>> I'm getting a lot of false warnings when compiling erlyweb
> >>> components
> >>> that just started appearing a few seconds ago (literally; I did an
> >>> "svn up" just a few minutes apart and there were changes in the
> >>> second one).
> >>
> >> Just to be more specific, it happens when compiling controllers, not
> >> views or models.
> >>
> >>
> >>>
> >>> They say "Warning: variable 'Response' is unused". I assume that
> >>> this
> >>> is in some of the code that erlyweb injects, since I don't use that
> >>> name anywhere.
> >>>
> >>> In addition, I'm still getting the erlydb_psql issues:
> >>>
> >>> ** exited: {undef,[{erlydb_psql,get_default_pool_id,[]},
> >>> {erlydb,gen_module_code,5},
> >>> {lists,foreach,2},
> >>> {erlyweb_compile,compile,2},
> >>> {erl_eval,do_apply,5},
> >>> {shell,exprs,6},
> >>> {shell,eval_loop,3}]} **
> >>>
> >>>
> >>
> >>>
> >>
> >
> >
> >
> > --
> > http://vimagi.com
> > http://erlyweb.org
> >
> >
>
>
> >
>
--
http://vimagi.com
http://erlyweb.org
--~--~---------~--~----~------------~-------~--~----~
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: Wed Nov 28, 2007 5:15 pm |
|
|
|
User
Joined: 20 Jul 2007
Posts: 151
Location: San Francisco, CA
|
> In addition, I'm still getting the erlydb_psql issues:
>
> ** exited: {undef,[{erlydb_psql,get_default_pool_id,[]},
> {erlydb,gen_module_code,5},
> {lists,foreach,2},
> {erlyweb_compile,compile,2},
> {erl_eval,do_apply,5},
> {shell,exprs,6},
> {shell,eval_loop,3}]} **
So I finally tracked this down. The following patch fixes it for psql
(but probably breaks it for mysql and mnesia):
Index: src/erlydb/erlydb.erl
===================================================================
--- src/erlydb/erlydb.erl (revision 210)
+++ src/erlydb/erlydb.erl (working copy)
@@ -378,7 +378,7 @@
TablesData =
case gb_trees:lookup(PoolId, PoolsData) of
- {value, Val} ->
+ {value, {ok,Val}} ->
Val;
_ ->
exit({invalid_erlydb_pool_option,
That is, PoolId was enclosed in an {ok, PoolId} tuple in
gen_module_code/5. I'll have to poke around to see where it's
happening, but if anyone knows off of the top of their head, let me
know, since I probably won't get a round tuit until at least this
weekend.
--~--~---------~--~----~------------~-------~--~----~
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: Wed Nov 28, 2007 5:18 pm |
|
|
|
User
Joined: 20 Jul 2007
Posts: 151
Location: San Francisco, CA
|
Quoted the wrong exception. Fixed below.
On 28 Nov 2007, at 09:14, David King wrote:
>> In addition, I'm still getting the erlydb_psql issues:
>>> ** exited: {function_clause,
>>> [{gb_trees,
>>> lookup_1,
>>> [some_model,
>>> {6,
>>> {some_other_model,
>>> [{erlydb_field,
>>> id,
> So I finally tracked this down. The following patch fixes it for psql
> (but probably breaks it for mysql and mnesia):
>
> Index: src/erlydb/erlydb.erl
> ===================================================================
> --- src/erlydb/erlydb.erl (revision 210)
> +++ src/erlydb/erlydb.erl (working copy)
> @@ -378,7 +378,7 @@
>
> TablesData =
> case gb_trees:lookup(PoolId, PoolsData) of
> - {value, Val} ->
> + {value, {ok,Val}} ->
> Val;
> _ ->
> exit({invalid_erlydb_pool_option,
>
> That is, PoolId was enclosed in an {ok, PoolId} tuple in
> gen_module_code/5. I'll have to poke around to see where it's
> happening, but if anyone knows off of the top of their head, let me
> know, since I probably won't get a round tuit until at least this
> weekend.
--~--~---------~--~----~------------~-------~--~----~
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 Nov 29, 2007 6:39 am |
|
|
|
Guest
|
Great, thanks for finding it. I tweaked erlydb_psql:get_metadata to
instead of {ok, Val} or {error, Err}, to return Val or call exit(Err).
This should fix it. Please let me know if it works.
Yariv
On Nov 28, 2007 9:14 AM, David King <dking@ketralnis.com> wrote:
>
> > In addition, I'm still getting the erlydb_psql issues:
> >
> > ** exited: {undef,[{erlydb_psql,get_default_pool_id,[]},
> > {erlydb,gen_module_code,5},
> > {lists,foreach,2},
> > {erlyweb_compile,compile,2},
> > {erl_eval,do_apply,5},
> > {shell,exprs,6},
> > {shell,eval_loop,3}]} **
>
> So I finally tracked this down. The following patch fixes it for psql
> (but probably breaks it for mysql and mnesia):
>
> Index: src/erlydb/erlydb.erl
> ===================================================================
> --- src/erlydb/erlydb.erl (revision 210)
> +++ src/erlydb/erlydb.erl (working copy)
> @@ -378,7 +378,7 @@
>
> TablesData =
> case gb_trees:lookup(PoolId, PoolsData) of
> - {value, Val} ->
> + {value, {ok,Val}} ->
> Val;
> _ ->
> exit({invalid_erlydb_pool_option,
>
> That is, PoolId was enclosed in an {ok, PoolId} tuple in
> gen_module_code/5. I'll have to poke around to see where it's
> happening, but if anyone knows off of the top of their head, let me
> know, since I probably won't get a round tuit until at least this
> weekend.
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
Page 1 of 2
Goto page 1, 2 Next
|
|
|
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
|
|
|