bokeh / bokeh-scala

Scala bindings for Bokeh plotting library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get rid of deprecation warnings related to macros

mattpap opened this issue · comments

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.

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.