Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    nafg
    @nafg
    hmm maybe there was an extra exclusion
    Joseph Abrahamson
    @tel
    Where does Intellij look for Scalafmt plugin installs?
    1 reply
    I have a custom version (2.7.5-SNAPSHOT) installed to ~/.m2
    but Intellij doesn't find it there
    Jiuyang Liu
    @sequencer
    Hi, what's the status of https://youtrack.jetbrains.com/issue/SCL-18515 ? I found it seems to be stale?
    1 reply
    Vincent Guerci
    @vguerci
    Hello, since 2020.3 I think, having issues with scala (2.11) std lib, basic types like Seqnot recognized anymore, does that ring a bell to someone?
    OlegYch
    @OlegYch
    try to reimport the project and make sure it has jdk setup
    5 replies
    daenyth
    @daenyth:matrix.org
    [m]

    I was moving some source files around, and intellij is super broken now. No matter what I do, it fails to compile with FooClass is already defined as class FooClass, as if I had the same class in two files.

    sbt compiles just fine - no errors.

    I've tried 'rebuild project', deleting all target/ dirs, 'invalidate caches and restart', sbt clean....

    2 replies
    How can I fix this without just deleting the whole project directory and starting over from a fresh clone?
    nafg
    @nafg
    Does 2021.1EAP have any benefits for scala development?
    Tobias Roeser
    @lefou
    Hi. For Idea support in mill, beside BSP, we can also generate all required Idea config files into the .idea directory. For modules, we also add a "scala-sdk" dependency. I think we do it, because in older versions that was needed or at least it was what other projects contained. Now, with newer Idea versions, these "scala-sdk" entries are all red and it looks like everthing work as before, when we just remove (no longer add) that entry. Can anybody comment, if that's ok or point out, if I missing something?
    11 replies
    In addition we also add the correct scala-library to the module dependencies.
    Looks redundant to me and I think we can just leave out the scala-sdk thing.
    Tobias Roeser
    @lefou
    I can post an example generated file if that helps
    Joan Goyeau
    @joan38

    Hi,

    Can't find BuildInfo(ideaIC-211.5107) in releases, trying snapshots
    [error] java.io.FileNotFoundException: https://d2s4y8xcwt8bet.cloudfront.net/com/jetbrains/intellij/idea/ideaIC/211.5107-EAP-SNAPSHOT/ideaIC-211.5107-EAP-SNAPSHOT.zip
    [error]     at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1899)
    [error]     at sun.net.www.protocol.http.HttpURLConnection.access$200(HttpURLConnection.java:94)
    [error]     at sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnection.java:1493)
    [error]     at sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnection.java:1491)
    [error]     at java.security.AccessController.doPrivileged(Native Method)
    [error]     at java.security.AccessController.doPrivilegedWithCombiner(AccessController.java:784)
    [error]     at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1490)
    [error]     at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:268)
    [error]     at java.net.URL.openStream(URL.java:1068)
    [error]     at org.jetbrains.sbtidea.download.idea.IJRepoIdeaResolver.getUrl(IJRepoIdeaResolver.scala:51)
    [error]     at org.jetbrains.sbtidea.download.idea.IJRepoIdeaResolver.getUrl(IJRepoIdeaResolver.scala:56)
    [error]     at org.jetbrains.sbtidea.download.idea.IJRepoIdeaResolver.$anonfun$resolve$1(IJRepoIdeaResolver.scala:16)
    [error]     at org.jetbrains.sbtidea.download.idea.IdeaDistImpl.dlUrl(IdeaDist.scala:13)
    [error]     at org.jetbrains.sbtidea.download.idea.IdeaDistInstaller.downloadAndInstall(IdeaDistInstaller.scala:22)
    [error]     at org.jetbrains.sbtidea.download.idea.IdeaDistInstaller.downloadAndInstall(IdeaDistInstaller.scala:14)
    [error]     at org.jetbrains.sbtidea.download.api.ResolvedArtifact.install(ResolvedArtifact.scala:9)
    [error]     at org.jetbrains.sbtidea.download.api.ResolvedArtifact.install$(ResolvedArtifact.scala:9)
    [error]     at org.jetbrains.sbtidea.download.idea.IdeaDist.install(IdeaDist.scala:7)
    [error]     at org.jetbrains.sbtidea.download.CommunityUpdater.$anonfun$update$6(CommunityUpdater.scala:46)
    [error]     at org.jetbrains.sbtidea.download.CommunityUpdater.$anonfun$update$6$adapted(CommunityUpdater.scala:46)
    [error]     at scala.collection.immutable.List.foreach(List.scala:431)
    [error]     at org.jetbrains.sbtidea.download.CommunityUpdater.update(CommunityUpdater.scala:46)
    [error]     at org.jetbrains.sbtidea.download.CommunityUpdater.$anonfun$update$1(CommunityUpdater.scala:30)
    [error]     at org.jetbrains.sbtidea.download.CommunityUpdater.$anonfun$update$1$adapted(CommunityUpdater.scala:30)
    [error]     at scala.collection.immutable.List.foreach(List.scala:431)
    [error]     at org.jetbrains.sbtidea.download.CommunityUpdater.update(CommunityUpdater.scala:30)
    [error]     at org.jetbrains.sbtidea.Init.$anonfun$buildSettings$24(Init.scala:58)
    [error]     at org.jetbrains.sbtidea.Init.$anonfun$buildSettings$24$adapted(Init.scala:48)
    [error]     at scala.Function1.$anonfun$compose$1(Function1.scala:49)
    [error]     at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:62)
    [error]     at sbt.std.Transform$$anon$4.work(Transform.scala:68)
    [error]     at sbt.Execute.$anonfun$submit$2(Execute.scala:282)
    [error]     at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:23)
    [error]     at sbt.Execute.work(Execute.scala:291)
    [error]     at sbt.Execute.$anonfun$submit$1(Execute.scala:282)
    [error]     at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:265)
    [error]     at sbt.CompletionService$$anon$2.call(CompletionService.scala:64)
    [error]     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    [error]     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    [error]     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    [error]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    [error]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    [error]     at java.lang.Thread.run(Thread.java:748)

    What am I supposed to do?

    1 reply
    I'm trying to import the intellij-scala code base it self.
    fcorange
    @fcorange
    Hi guys - I noticed that IntelliJ Scala plugin pinned at https://plugins.jetbrains.com/files/1347/82127/scala-intellij-bin-2019.3.27.zip has recently changed its sha256 hash from 55b63dceae72a2e420e374045c0b615624eaf8e48074757e5cd348ae1822852b to 87ca3f6c9df1c5ab0055e8156bc5358725f11caefed47e3f52dc0538af3de3d3. Is this expected?
    3 replies
    jatcwang
    @jatcwang:matrix.org
    [m]
    When I'm using the BSP-SBT mode and refresh the project, my dependencies aren't resolved/indexed by intellij. (Have to restart intellij). Is this a known issue?
    2 replies
    Vincent Guerci
    @vguerci

    Hello, since 2020.3 I think, having issues with scala (2.11) std lib, basic types like Seqnot recognized anymore, does that ring a bell to someone?

    Hey, finally managed to reproduce the issue with a simple test:

    • gradle init to boostrap a scala app
    • switch to 2.11.12
    • the issue is visible for instance with a simple string interpolator s"test" that isn't recognized by intellisense
    3 replies
    Ioan Luca
    @ioanluca
    Hi everyone! Me and my team want to use scalatfmt within in intellij. We've got latest versions of intellij, so the Scala plugin comes with Scalafmt formatting as an option. However, Intellij attempts to download the scalafmt jars from the public internet and the firewall in our org doesn't allow that. We do have scalafmt within our internal maven repository though. Is there any way we can point the Scala plugin to use a local scalafmt jar, or tell it what maven repo to download it from? Thanks
    6 replies
    Richard Gilmore
    @gilandose
    is it possible to upgrade the launcher used by sbt in intellij for bsp as the 1.4.3 has a bug
    Dan Sokolsky
    @dansok
    Hey folks, I don't see the Data Sources tab (https://www.jetbrains.com/help/datagrip/2021.1/connecting-to-a-database.html) in my latest (2020.3.2 Community Edition) IntelliJ IDE.
    1 reply
    Ioan Luca
    @ioanluca
    would it be possible to have the Intellij Scala plugin to download scalafmt from custom maven repositories? Would that require a major change in the code?
    4 replies
    Pavel Fatin
    @pavelfatin

    Right now:

    Talk to the IntelliJ Scala team and see presentations of new features in IntelliJScala, Code With Me, Big Data Tools, and JetBrains Space at https://inthecity.scala.love/

    Pavel Fatin
    @pavelfatin
    If you haven't yet seen Big Data Tools – an IDE for Zeppelin, Spark, and Hadoop, powered by the Scala plugin, come to our presentation in Spatial Chat (now).
    Pavel Fatin
    @pavelfatin
    In 15 minutes: sbt-idea-plugin by @mutcianm
    Pavel Fatin
    @pavelfatin
    In 15 minutes: JetBrains Space with Alexander Sedov
    Pavel Fatin
    @pavelfatin
    And now everyone should watch Martin's keynote :)
    Pavel Fatin
    @pavelfatin
    Now: Code With Me with Alexander Kirsanov
    Pavel Fatin
    @pavelfatin

    In 15 minutes: What's new in the IntelliJ Scala plugin with @PavelFatin - join our Spatial Chat at Scala Love in the City

    We also have virtual yo-yos and virtual stickers :)

    Peng Cheng
    @tribbloid
    I was in the room for barely 5 minutes and I notice how many people are promoting BSP
    Oron Port
    @soronpo
    All my configurations are gone in the new IDEA
    :(
    And I can't get any application recognized on the class path
    Oron Port
    @soronpo
    Hmmm.. It seems I'm mistaken. It was my clone project and that never had application, but I have no idea why it can't find the class path for running the applications.
    3 replies
    Marc Grue
    @marcgrue

    I can't get type mismatch hints to show on IDEA 2021.1 EAP #IC-211.5787.15

    Aren't they supposed to show when I tick Preferences > Editor > Inlay Hints > Scala > Type mismatch hints > Show type mismatch hints ?

    I want the little popup to show me the actual vs expected types when I mouse over quiggled code. Is there some other setting I'm missing?

    Marc Grue
    @marcgrue

    Ah, found it: ticking

    Preferences > Languages & Frameworks > Scala > Editor > Show type info on mouse hover, ms

    did the job. Having two kind of redundant paths seems a bit un-intuitive to me: .. > Scala > Editor > .. and .. > Editor > Inlay Hints > Scala > ...

    May I suggest that you consider to merge the locations of those settings related to how the editor works?

    Otherwise, Intellij is an outstanding editor - thanks for your great job with it!

    3 replies
    Basavaraj Kalloli
    @scalolli
    Hello I am following on my conversation from twitter: https://twitter.com/Basu_kalloli/status/1362745156567519235?s=20
    I am trying out sbt 1.4.7's support for BSP in Intellij
    I am able to import the project fine and can even run the tests
    But for some reason the Integration test classes show up read as in they say they cannot find classes from other sub projects
    Even though I can actually run those tests in Intellij just fine
    The only error I see in the Build output in Intellij is: request failed: buildTarget/javacOptions
    But just surprised how the tests/build are working fine, any ideas?
    5 replies
    nafg
    @nafg
    ammonite not working on latest EAP
    1 reply
    Why is it looking for that?
    5 replies
    superseacat
    @superseacat

    hello,

    I come from the A+ Courses plugin team - we do software to interoperate with Aalto University CS Department's backend LMS. Currently we're focused on the programming courses, that are taught with Scala. Some teachers wished to enhance default Scala REPL a bit, and so we did. However, the resulting implementation is not exactly elegant (mostly due to the lack of extension points available). And then we've noticed the comment:

    * If you want to reuse some of the class functionality, please contact Scala Plugin team
    * via https://gitter.im/JetBrains/intellij-scala and we will extract some proper abstract base class.
    */

    and got interested in streamlining our implementation. We also aim at ensuring that the functionality is stable and maintainable. If you feel like the ideas we've implemented are valid, perhaps we could contribute to the upstream of the Scala Plugin as well.

    What would be the best way to discuss this, shall we do it here or create an issue in YT?

    thanks/ большое спасибо :wink:

    7 replies