[erlang-questions] smart_exceptions doesn't work on R12B

Thomas Lindgren <>
Mon Mar 9 17:17:59 CET 2009


Hi, I think the problem is that you are using parametrized modules, which the current code does not expect. Sorry.

Development: The jungerl version of smart_exceptions is being phased out but is "stable", in the sense that it has been unchanged for a long time and works as well, or as badly, as ever. The new repo is on github, though that version should be considered "experimental". It should be an improvement on the old version when finished, because it uses try instead of catch and has been simplified, but is basically untested at this time. (NB: you can also find the stable jungerl code there, currently under src/r9-src/*)

http://github.com/thomasl/smart_exceptions/tree/master

Best,
Thomas



________________________________
From: devdoer bird <>
To: 
Sent: Monday, March 9, 2009 4:17:39 PM
Subject: [erlang-questions] smart_exceptions doesn't work on R12B


HI:
 
Is smart exceptions in jungerl still in developement? I tested it on R12B ,but got a exception.
I  try to add smart_exceptions when compiling mochiweb_response.erl ,  but got the exception:
mochiweb/mochiweb_response.erl:none: error in parse transform 'smart_exceptions': {function_clause,
                                              [{smart_exceptions,forms,
                                                [{mochiweb_response,
                                                  ['Request','Code',
                                                   'Headers']},
                                                 smart_exit,
                                                 [{attribute,1,file,
                                                   {"mochiweb/mochiweb_response.erl",
                                                    1}},
                                                  {attribute,6,module,
                                                   {mochiweb_response,
                                                    ['Request','Code',
                                                     'Headers']}},
                                                  {attribute,7,author,
                                                   ''},
                                                  {attribute,11,export,
                                                   [{get_header_value,1},
                                                    {get,1},
                                                    {dump,0}]},
                                                  {attribute,12,export,
                                                   [{send,1},{write_chunk,1}]},
                                                  {function,16,
                                                   get_header_value,1,
                              ...........
 
So
1.  Is the smart_exception still maintained?
2. How can I fix that exception ?
 
Thanks


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20090309/0afbb3dd/attachment.html>


More information about the erlang-questions mailing list