Giter Club home page Giter Club logo

Comments (12)

shanethehat avatar shanethehat commented on June 13, 2024 1

Sorry, for some reason I thought it was 2.12+. I'll have to find some time to look into it properly.

from grafter.

etorreborre avatar etorreborre commented on June 13, 2024

Hi Shane, thanks for this plugin! I haven't been using the annotations much yet but I am going to try your plugin and will let you know.

from grafter.

joan38 avatar joan38 commented on June 13, 2024

Instead of doing a plugin for Idea it would be better to switch from the deprecated macros to scala.meta.
Idea supports natively Scala.meta and this let us get ride of macro paradise.
Anyway we will have to switch one day or another.

See: https://skillsmatter.com/skillscasts/9044-a-new-macro-system-for-scala

from grafter.

shanethehat avatar shanethehat commented on June 13, 2024

For sure there should be meta support. I suspect this will help with the compilation time issues in #20. It's something I was hoping to look into when I next have some free time.

I guess there's also the question of what kind of legacy version support this library wants to offer as to whether Macro support sticks around.

from grafter.

joan38 avatar joan38 commented on June 13, 2024

What mean is that it would be a wast of time to code a plugin for Idea instead of using Scala.meta which is supposed to offer the cross scala version support.

from grafter.

joan38 avatar joan38 commented on June 13, 2024

Scala.meta's scala versions: https://github.com/scalameta/scalameta/blob/master/build.sbt#L8
Grafter's scala versions: https://github.com/zalando/grafter/blob/master/build.sbt#L52

Sounds like it should work :)
Thanks @shanethehat for your help!

from grafter.

etorreborre avatar etorreborre commented on June 13, 2024

@joan38 this looks like the right direction, I might have a go at it if I find the time.

from grafter.

shanethehat avatar shanethehat commented on June 13, 2024

I'm not sure that Meta is quite at the point that it can be used for this. Its tokenizing seems solid, but the macro support depends on a new Paradise plugin that currently only seems to support 2.11. A 3.0.0 release looks like it's not far off, but without that I don't think it can be used for annotation based macros.

from grafter.

dvic avatar dvic commented on June 13, 2024

I'm not too familiar with the scalameta paradise plugin, but release 3.0.0-M8 is now built for Scala 2.11.11 and 2.12.2. Has scalameta now become a viable solution? (including annotation based macros)?

from grafter.

jcranky avatar jcranky commented on June 13, 2024

Just as a note, we cannot use scala 2.12.2 yet - see #63

from grafter.

etorreborre avatar etorreborre commented on June 13, 2024

@dvic yes scalameta might be a solution now but we don't have much bandwidth to try it out at the moment.

from grafter.

etorreborre avatar etorreborre commented on June 13, 2024

I am going to close this for now. The solution is not scalameta which brings its own set of problems (scalameta/scalameta#1051 for example). Let's revisit this when we can do #96

from grafter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.