Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Hanns Holger Rutz
    @Sciss
    I can run, but I can no longer debug.
    Screenshot from 2020-10-05 00-06-58.png
    why is 'bug' icon disabled?
    something must have crashed, quitting IntelliJ and restarting makes the icon enabled again
    Ara Adkins
    @iamrecursion
    I've just run into an issue where the sbt shell in intellij isn't correctly picking up my path.
    6 replies
    Any hints as to how I can go about debugging this?
    semkagtn
    @semkagtn
    @Sciss Hi! It seems the issue with the debugger icon isn’t related to the “compiler.process.jdk” issue.
    BTW, the problem with “compiler.process.jdk” should be fixed in the lates nightly version of the plugin.
    Hanns Holger Rutz
    @Sciss
    thanks, i will update
    Dan Di Spaltro
    @dispalt
    Do scala "extensions" work with BSP import?
    5 replies
    Ben Hutchison
    @benhutchison

    All pair auto-insert editor features, "" <> () {} etc, are a time-wasting gimmick. Discuss ;)

    Actually for me personally the discussion is long over. I expend much time turning them off in various IDEs, for various languages.

    But there's one in the intellij Scala I can't find the Off-switch for. When I type an interpolated string like so s"${ the IDE always adds a }. Can this be disabled?

    4 replies
    Eric Peters
    @er1c
    Is there any way to add a hint to InteliJ in the build.sbt to "Use sbt shell for builds and project import" ?
    2 replies
    thejonas
    @thejonas
    I've imported my Scala project as a bsp project, using the new sbt-1.4.0. Everything seems fine, except that IntelliJ shows a a bunch of "Cannot resolve symbol" errors on my build.sbt file. I there something else I need to do to get rid of those spurious messages?
    1 reply
    nafg
    @nafg
    I can't open my project anymore
    IntelliJ IDEA 2020.3 EAP (Ultimate Edition)
    Build #IU-203.4449.2, built on October 6, 2020
    IntelliJ IDEA EAP User
    Expiration date: November 5, 2020
    Runtime version: 11.0.3+12-b326.2 amd64
    VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
    Linux 5.4.0-48-generic
    GC: ParNew, ConcurrentMarkSweep
    Memory: 3005M
    Cores: 8
    Registry: documentation.show.toolbar=true, analyze.exceptions.on.the.fly=true, ide.settings.move.mouse.on.default.button=true, scala.erase.compiler.process.jdk.once=false
    Non-Bundled Plugins: PlantUML integration, Remote call, de.docksnet.moddep, org.pmesmeur.sketchit, org.jetbrains.intellij.scripting-javascript, org.jetbrains.intellij.scripting-python, org.jetbrains.plugins.hocon, de.sist.gitlab, org.plugin.dot.id, org.toml.lang, org.intellij.scala
    Current Desktop: ubuntu:GNOME
    I reported the exception but here's the first line:
    com.intellij.workspaceModel.storage.impl.exceptions.AddDiffException: PersistentId already exists: LibraryId(name=scala-library-2.13.3.jar, tableId=com.intellij.workspaceModel.storage.bridgeEntities.LibraryTableId$ProjectLibraryTableId@556f29fa)
    nafg
    @nafg
    Fixed by deleting files like .idea/libraries/scala_library_2_13_3_jar2.xml
    jar{2-5}
    similar for -reflect and -compiler
    nafg
    @nafg
    It keeps crashing, as in suddenly the whole IDE window is gone
    2 replies
    Ben Hutchison
    @benhutchison

    Im using Intellij Scala with Dotty a few days a week now.

    Please, please prioritize reliable & fast Code Navigation over any fancy features.

    Right now code navigation in Dotty works only half the time, and can trigger long delays and freezes, eg 5secs of the Mac Beachball, which just seems wrong for a simply Cmd-Click

    Hanns Holger Rutz
    @Sciss
    does the plugin support sbt-crossproject? I'm getting
    Internal error: (java.lang.IllegalStateException) Duplicate key org.jetbrains.jps.model.module.impl.JpsModuleImpl@64e8d0c9
    java.lang.IllegalStateException: Duplicate key org.jetbrains.jps.model.module.impl.JpsModuleImpl@64e8d0c9
        at java.util.stream.Collectors.lambda$throwingMerger$0(Collectors.java:133)
        at java.util.HashMap.merge(HashMap.java:1254)
        at java.util.stream.Collectors.lambda$toMap$58(Collectors.java:1320)
        at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)
        at java.util.Iterator.forEachRemaining(Iterator.java:116)
        at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
        at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
        at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
        at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
        at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
        at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566)
        at org.jetbrains.jps.maven.model.impl.MavenAnnotationProcessorTargetType.createLoader(MavenAnnotationProcessorTargetType.java:50)
        at org.jetbrains.jps.incremental.storage.BuildTargetTypeState.load(BuildTargetTypeState.java:63)
        at org.jetbrains.jps.incremental.storage.BuildTargetTypeState.<init>(BuildTargetTypeState.java:52)
        at org.jetbrains.jps.incremental.storage.BuildTargetsState.getTypeState(BuildTargetsState.java:122)
        at org.jetbrains.jps.incremental.storage.BuildTargetsState.getAverageBuildTime(BuildTargetsState.java:116)
        at org.jetbrains.jps.incremental.messages.BuildProgress.<init>(BuildProgress.java:73)
        at org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:432)
        at org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:184)
        at org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:135)
        at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:294)
        at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:127)
        at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler.lambda$channelRead0$0(BuildMain.java:218)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
    OlegYch
    @OlegYch
    sounds like incompatible jvm
    Hanns Holger Rutz
    @Sciss
    @OlegYch sorry I posted twice; do you mean tthe JpsModuleImpl?
    OlegYch
    @OlegYch
    no, no idea about that one
    Hanns Holger Rutz
    @Sciss
    ok, sorry for wrong post
    semkagtn
    @semkagtn
    @Sciss Scala Plugin should support sbt-crossproject. What are the steps to reproduce the error? I haven't managed to reproduce it. Could you, please, create an issue here with steps to reproduce the problem?
    Hanns Holger Rutz
    @Sciss

    @semkagtn I cleared caches, killed all background processes, restarted, and then it seemed to work indeed correctly.

    One thing that does not work in the presentation compiler, is using traits from platform specific directories, e.g. jvm/src/main/... in the shared sources, e.g. shared/src/main. They are not recognised and appear red. Should I open a ticket?

    Screenshot from 2020-10-19 13-55-48.png
    semkagtn
    @semkagtn
    @Sciss > Should I open a ticket?
    I think, yes
    Nikolay Tropin
    @niktrop
    @Sciss It is a known problem. Currently we emulate shared sources as a module that is used as a dependency from platform modules. But there is no dependency in other direction.
    Hanns Holger Rutz
    @Sciss
    I see. Well it makes sense, I just designed my cases the opposite way, because usually the common object has lot's of members, and the platform specific mixin is small.
    Justin Kaeser
    @jastice
    @Sciss the BSP shared source mapping is done a bit differently. you could check if it works better for your use case
    Hanns Holger Rutz
    @Sciss

    @Sciss the BSP shared source mapping is done a bit differently. you could check if it works better for your use case

    so do I just change my sbt from 1.3.x to 1.4.x and try to import the project again?

    Justin Kaeser
    @jastice
    use 1.4.1, then new / project from existing sources / BSP
    Hanns Holger Rutz
    @Sciss
    I only have 'New Project' versus 'Open or Import' - 'New Project' doesn't offer 'from existing sources'.
    Justin Kaeser
    @jastice
    are you on 2020.2 or 2020.3?
    Hanns Holger Rutz
    @Sciss
    ah.... 2020.2 ; "check for updates" doesn't find 2020.3 then ?
    Justin Kaeser
    @jastice
    2020.3 is still in EAP. In 2020.2 you'll need to open any other project, then you can access the File / new ... menu
    Hanns Holger Rutz
    @Sciss
    got it
    ok, got the BSP based project - reference from shared to jvm/js still red. I had opened a ticket - https://youtrack.jetbrains.com/issue/SCL-18334 - your colleague told me to try another Scala plugin version. Let's see
    Justin Kaeser
    @jastice
    thanks. but I think in this case it won't make much of a difference
    Eric Peters
    @er1c
    on a "scalatest task" if I select use sbt shell it says "testOnly" but the class I specified isn't specified (it runs all tests) ?
    1 reply
    nafg
    @nafg
    I really wish nightly and other plugin updates had a changelog
    Dale Wijnand
    @dwijnand
    same
    Kenneth Lu
    @krlu
    Hi all, I'm using Intellij EAP with Dotty and I noticed it doesn't seem to recognize union and intersection types. Is that not supported yet in Intelilj?
    2 replies
    for example:
    def either(a : Boolean): String | Double = {
        if(a) "1.00" else 1.0
     }
    This builds and runs with sbt just fine, but Intellij will highlight the "|" symbol as a compile time error
    appreciate any help!