Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Chris Kipp
    @ckipp:matrix.org
    [m]
    well it sort of depends on what you're expecting
    if you open script.sc in an empty directory Metals will assume that you have an ammonite script and will prompt you to import it
    so it will be treated as an Ammonite script
    Nik
    @your-psychiatrist:ellipsen.net
    [m]
    ah i see :/ so then scala 3 is just not gonna work :/
    or did li & co. already port it?
    Anton Sviridov
    @velvetbaldmime:matrix.org
    [m]
    There's some preliminary support for Scala 3 in ammonite, yes
    Chris Kipp
    @ckipp:matrix.org
    [m]
    afaik, we have zero tests for Ammonite and Scala 3
    so it sort of depends on what your aim is
    it might be preferable to use worksheets if you are just messing around
    also keep in mind that if you have a directory with a standalone file, the version of Scala that will be used will be defaulted to the version that metals uses
    if you want a fallback on Scala 3 instead you'd need to set fallbackScalaVersion in your settings
    Nik
    @your-psychiatrist:ellipsen.net
    [m]
    aaah! i see, thank you
    Nik
    @your-psychiatrist:ellipsen.net
    [m]
    just as a brief example:
    i was hacking this smol script for doing a bunch of random calculations and scala 2 support works pretty well, but scala 3 just goofs on me :/
    also this when i manually start the ammonite server
    Chris Kipp
    @ckipp:matrix.org
    [m]
    yea, so the version of Ammonite we support isn't published for Scala 3 yet
    you can also add a newer ammonite version with // ammonite <version>
    but again, no guarantees how that will work
    Nik
    @your-psychiatrist:ellipsen.net
    [m]
    cool :o i'll just try a few things
    Chris Kipp
    @ckipp:matrix.org
    [m]
    actually just looked
    I'm pretty positive it won't work
    Nik
    @your-psychiatrist:ellipsen.net
    [m]
    yeah it doesnt :/
    rip me i guess
    thx for the quick help :>
    Chris Kipp
    @ckipp:matrix.org
    [m]
    since we pull in ammonite-repl-api via https://github.com/alexarchambault/ammonite-runner I believe there needs to be some changes there to account for the pretty large changes that happened in Ammonite
    if you can, please do create an issue about not being able to use Scala 3 with Ammonite
    then we'll have it tracked and are more aware of it
    Nik
    @your-psychiatrist:ellipsen.net
    [m]
    I mean when i opened vs code i just wanted to run scala 3 code via the scala3 binary from the AUR. I am not sure how its related to ammonite-runner :o
    Chris Kipp
    @ckipp:matrix.org
    [m]
    you could instead just make it a .scala file instead of a .sc file
    Nik
    @your-psychiatrist:ellipsen.net
    [m]
    i guess that's the way to go for now yes
    Greg Fisher
    @gnfisher
    I used to be able to jump to definition and go into a dependency's code. I can't do that any longer. I don' t think I changed anything (other than upgrading metals). I'm using coc nvim but am also not able to do it in a fresh setup of nvim-lspconfig using metals. Anyone know how I might adjust things to be able to do that again? Or is this not metals related?
    Chris Kipp
    @ckipp:matrix.org
    [m]
    this should totally still work.
    did you update to the latest Metals @gnfisher ? When you are trying to navigate do you see any errors in your .metals/metals.log?
    Siddhant Sanyam
    @siddhant3s
    Do you guys know where can I find logs from the bloop server?
    1 reply
    Swoorup Joshi
    @Swoorup
    is it also possible to have clickable links for documentations?
    image.png
    Zsolt Szilagyi
    @esgott
    Hi all, I'm trying to use metals with an ammonite script. Importing the script seemed fine, however code navigation and type info does not work. The logs are complaining about SemanticDB. I'm pretty new to metals, can you help me sort it out? Here are the logs:
    2021.06.28 11:49:22 INFO  Started: Metals version 0.10.4 in workspace '/Users/zsszilagyi/Repos/...' for client Visual Studio Code 1.57.1.
    2021.06.28 11:49:24 INFO  time: initialize in 1.94s
    2021.06.28 11:49:24 WARN  Build server is not auto-connectable.
    2021.06.28 11:49:24 WARN  no build target for: /Users/zsszilagyi/Repos/.../prod-to-stg.sc
    2021.06.28 11:49:29 INFO  no build target: using presentation compiler with only scala-library: 2.12.14
    2021.06.28 11:49:30 INFO  time: code lens generation in 6.31s
    2021.06.28 11:49:47 INFO  tracing is disabled for protocol BSP, to enable tracing of incoming and outgoing JSON messages create an empty file at /Users/zsszilagyi/Library/Caches/org.scalameta.metals/bsp.trace.json
    2021.06.28 11:49:48 INFO  Ammonite: Starting BSP server
    2021.06.28 11:49:48 INFO  Connected to Ammonite Build server v2.3.8-58-aa8b2ab1
    2021.06.28 11:50:03 INFO  time: indexed workspace in 5.64s
    2021.06.28 11:50:03 INFO  compiling .../credentials.sc
    2021.06.28 11:50:05 INFO  time: compiled credentials.sc in 1.98s
    2021.06.28 11:50:05 INFO  compiling .../repositories.sc
    2021.06.28 11:50:06 INFO  time: compiled repositories.sc in 1.56s
    2021.06.28 11:50:30 ERROR code navigation does not work for the file '/Users/zsszilagyi/Repos/.../prod-to-stg.sc' because the SemanticDB compiler plugin is not enabled for the build target prod-to-stg.sc.
    Zsolt Szilagyi
    @esgott
    Not sure if it adds to the story, but sometimes I see this floating bubble in vs code: Running the contributed command: 'metals-doctor-run' failed.
    Hypnoes.Liu
    @Hypnoes
    image.png
    hello everyone! I'm using maven to organize my project. Here is what I got. Does this means java sources had compiled twice?
    Tomasz Godzik
    @tgodzik
    @Swoorup we could for sure create links, but probably only in VS Code. Could you raise a feature request?
    @esgott the code might have not compiled, but it's weird
    maybe it's an issue with 2.12.14 ?
    Not sure if we yet released for it
    anyway, if you have a snippet I would be happy to look at it
    @Hypnoes might be best to ask in some Maven chats?
    Jasper Moeys
    @Jasper-M
    Could it be that sbt server doesn't pick up .sbtopts in my project when it gets started by metals?