Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    vito-c
    @vito-c
    @gabro ah thank you for letting me know so quasiquotes?
    finding examples of macros at all has been tough :(
    Gabriele Petronella
    @gabro
    you can use quasiquotes in Scala macros
    as per examples, yeah, I know. There's a project that uses macro annotations that I maintain called enumero
    and also cats-tagless is a good starting point
    vito-c
    @vito-c
    @gabro thanks! :)
    Tomasz Godzik
    @tgodzik
    Hi, should we release for Scala 2.12.9? Seems that every dependency is already released, but I am not sure how to release for just 2.12.9
    and people are pinging us already in Metals :O
    Gabriele Petronella
    @gabro
    I’ll take a look
    Tomasz Godzik
    @tgodzik
    @gabro thanks!
    Gabriele Petronella
    @gabro
    @tgodzik the fix is more involved than expected, due to a change in scalap scalameta/scalameta#1893
    Tomasz Godzik
    @tgodzik
    @gabro damn, I was hoping it would just be a matter of updating the version, will try to take a look, but I know nothing, so my help might not be helpful :O
    Martijn Hoekstra
    @martijnhoekstra
    scala/scala#8282 may have an impact on scalameta (hopefully making your life easier, but...)
    should I ping anyone for that?
    Lorenzo Testa
    @kklorenzotesta
    Hi, I can't find anything in the doc about metacp, I understood that generate semanticdb files from libraries, is it correct?
    Ilya Kachalsky
    @IlyaHalsky
    Hi, I'm just starting with scalameta and I'm trying to build code analyzer, is there a way to get current line number from original file while traversing structure?
    Dmytro Mitin
    @DmytroMitin
    @kklorenzotesta now we have compiler plugin https://scalameta.org/docs/semanticdb/guide.html#sbt
    Dmytro Mitin
    @DmytroMitin
    @IlyaHalsky SymbolOccurrence includes range (start_line, start_character, end_line, end_character) https://scalameta.org/docs/semanticdb/specification.html#symboloccurrence
    Lorenzo Testa
    @kklorenzotesta
    @DmytroMitin with the compiler plugin if I want to generate the semanticdb files from a jar I should use InteractiveSemanticdb to get a compiler and then use the compiler api, right? And this is preferred over using metacp?
    Dmytro Mitin
    @DmytroMitin
    Lorenzo Testa
    @kklorenzotesta
    thank you very much, this is perfect
    Ilya Kachalsky
    @IlyaHalsky
    @DmytroMitin thank you very much!
    Siddhant Sanyam
    @siddhant3s
    Can IntelliJ expand macro-paradise macros (annotation macros) without me having to write a plugin?
    Actually, I should probably ask this in scala
    P. Oscar Boykin
    @johnynek
    hi all, does anyone know if the scaladocs are published anywhere? I can't seem to find them.
    there is a trick to get sonatype to serve it.
    P. Oscar Boykin
    @johnynek
    although, it doesn't seem to have types like Source, Defn, etc...
    okay... jackpot. those are in trees....
    Ólafur Páll Geirsson
    @olafurpg
    @johnynek cool, I didn't know oss.sonatype.org served javadocs, I normally use static.javadoc.io https://static.javadoc.io/org.scalameta/trees_2.12/4.2.3/scala/meta/index.html
    it would be nice to unidoc all the modules, but it's quite a hassle to setup

    Along with a REPL

    @ import $ivy.`org.scalameta::scalameta:4.2.3`, scala.meta._
    import $ivy.$                               , scala.meta._
    
    @ q"val x = 2"
    res1: Defn.Val = Defn.Val(List(), List(Pat.Var(Term.Name("x"))), None, Lit.Int(2))

    There's also ast explorer https://astexplorer.net/#/gist/1eef12317a449c79a21ce65c68d65d99/9ddae259a2cab4badae68010ccaf2d0b6910cc51