13

Currently, the dotty compiler released its first Release Candidate and will be released in the next few months. I updated the IntelliJ scala plugin to EarlyAccess to make it working with Scala 3.0, its problem with syntax highlighting resolved, but still, it has a problem with IntelliSense, suggestions are only scala 2.13 API and it has no idea for Scala 3.0 API and it makes hard to develop. I tried to add the Scala 3.0 SDK manually, but it does not accept it(as the compiler jar file name in the new version changed).

enter image description here

Is there any possibility to add Scala 3.0 SDK to IntelliJ?

Nik Kashi
  • 4,447
  • 3
  • 40
  • 63
  • 5
    There is a change in [naming](https://dotty.epfl.ch/blog/2020/09/21/naming-schema-change.html) of Scala libraries. The issues on JetBrains is [this](https://youtrack.jetbrains.com/issue/SCL-18196) – Ivan Stanislavciuc Feb 18 '21 at 12:37
  • 1
    I dislike writing it, but the best support for Scala 3 offers at the moment (February 2021) the Visual Studio Code with the Scala Metals plug-in. – Twistleton Feb 19 '21 at 21:07
  • @Twistleton I installed it, but even it do not support RC1: `Scala 3.0.0-RC1 is not yet supported, please downgrade to Scala 3.0.0-M3.` – Nik Kashi Feb 20 '21 at 09:12
  • @MohsenKashi It's a sad thing to hear. But RC1 was only released a few days ago. The developers might need a few days to adapt the plug-in for the new version. – Twistleton Feb 20 '21 at 11:07
  • 1
    @Twistleton it's not only that, I downgrade to M3, but intelisense doesn't work for TASTy modules, it only works for the main API. – Nik Kashi Feb 20 '21 at 19:30
  • 2
    @MohsenKashi Maybe we still have to be patient until everything is built in the Intellij IDEA. – Twistleton Feb 20 '21 at 19:46
  • @MohsenKashi Good news for us: The Metals v0.10.0 Plugin (24.02.2021) offers support for Scala 3.0.0-RC1. I wish you much success! – Twistleton Feb 26 '21 at 20:10

1 Answers1

0

Update to one of the 2022 EAP versions of IntelliJ and the EAP version of the scala plugin. Once that's done, loading a scala3 project from build.sbt works out of the box

Daenyth
  • 35,856
  • 13
  • 85
  • 124