nitrogen / simple_bridge

A simple, standardized interface library to Erlang HTTP Servers.
MIT License
112 stars 76 forks source link

simple_bridge is not compatible with OTP R16B #31

Closed jadahl closed 10 years ago

jadahl commented 10 years ago

As parameterized modules no longer exist in R16B, it fails with the following build error:

src/simple_bridge_response_wrapper.erl:5: parameterized modules are no longer supported
choptastic commented 10 years ago

Hi Jonas,

If you're using the latest version of simple_bridge, it should be automatically including the pmod_transform dependency, which uses the parse transform provided by the otp team that enables parameter modules for R16 and beyond.

That said, the development version of simple_bridge ditches the pmod helper syntax (but still supports the Bridge:fun() syntax using tuple calls).

jadahl commented 10 years ago

Ah, that was the issue indeed (missing pmod_transform) thanks. And regarding development version, sweet! :) Closing the issue, since it was my broken setup causing pmod_transform not being included.

choptastic commented 10 years ago

Excellent! Glad that solved it!

Feel free to play around with the dev version if you want. The branch is called 'ws' for "websocket" - the readme is mostly updated for this version.