bokeh / bokeh-scala

Scala bindings for Bokeh plotting library
MIT License
135 stars 16 forks source link

Get rid of deprecation warnings related to macros #13

Closed mattpap closed 8 years ago

mattpap commented 9 years ago

Macros are an experimental feature of Scala and change from version to version. The difference between 2.10 and 2.11 is significant and causes a lot of warnings to be produced during compilation. Use similar compatibility layer as implemented in IScala.

mattpap commented 8 years ago

Dropping Scala 2.10 helped a lot with this. One warning is still present. That's c.enclosingClass and it's unlikely it's going to be fixed anytime soon. Tried c.enclosingOwner, but couldn't make it sufficiently robust (allow only val x = column(...), no def, no bare value, etc.). I moved related code to core, so that this warning doesn't popup all the time.