by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    James Moore
    @banshee
    I've got a file that never has anything other than the "Analyzing..." grey text in the upper right hand corner. Says "performing code analysis" in the popup box, but it never changes away from that. Am I supposed to do something? The "Problems / Current File" pane shows nothing other than grey text in the middle with "Analyzing MyFile.scala"
    James Moore
    @banshee
    Is there a way to submit code with a bug report that isn't public? It's not at all obvious on the new-bug form. There's a visibility field, but it doesn't give you reasonable choices:
    image.png
    1 reply
    Justin Kaeser
    @jastice
    image.png
    4 replies
    James Moore
    @banshee
    image.png
    James Moore
    @banshee
    If you're having issues with 2020.2, try out the nightly build (https://confluence.jetbrains.com/display/SCA/Scala+Plugin+Nightly). It's working much better than the release version for me.
    I did have to remove the .idea directory and re-import, but then lots of things started working again.
    Cameron
    @XDracam
    I would like to start a new personal project using Scala 3, and I've created a new SBT project IntelliJ. Things are working well so far. But how do I use the debugger? Scala plugin is on the newest nightly build.
    I haven't worked a lot with manually specifying run configurations yet, so any help would be appreciated.
    Seems like the problem suddenly resolved itself (after I used sbt launchIDE), and I now have working run configurations. Weird.
    Dale Wijnand
    @dwijnand
    Does anyone know if there's a way to stop some folds from unfolding when the cursor over a fold? I'm not sure what all the conditions are, but I think I can reproduce it with a large // comment block, while the cursor is 4-5 characters indented from the column the //s are at. It's very annoying to refold things all the time...
    10 replies
    Nikolay Tropin
    @niktrop
    If you had problems with Go To Class/File on 2020.2 not showing scala items, please try to update to Scala plugin 2020.2.714 nightly build.
    1 reply
    tayvs
    @tayvs

    Hi everyone. I use scala 2.12.11 with java 1.8 and gradle as a build tool. After update on 2020.2 my project become pretty red. There wasn't such problem with EAP and Beta. Here is two main problems:

    1. All java imports and Java classes highlight red
    2. All case classes demand equals method implementation with reference on scala.Equals

    Is there any issue tracker where I can search for similar problems and they statuses or mb you know about such problems and can share they status

    2 replies
    OlegYch
    @OlegYch
    sounds like you don't have jdk configured
    Paulius Imbrasas
    @CremboC

    I am having weird issues on Windows - I just installed IntelliJ with the Scala plugin and for some reason it won't suggest to import it as an sbt project? ctrl+shift+i does nothing and there's no "sbt" tool window thingy to the right :/ Any ideas? I tried googling "intellij scala troubleshooting" but none of what I found helped..

    I googled "intellij scala sbt cannot resolve symbol" and it seems like it's a common issue and nobody knows what's the fix. I tried doing everything people suggested but nothing's working...

    9 replies
    Eric Peters
    @er1c
    Is there any way to bulk use the java => scala converter functionality in intellij?
    6 replies
    Joan Goyeau
    @joan38
    Are you guys also having this issue where the terminal is closing itself in the latest version of Idea?
    Eric Peters
    @er1c
    Is there a way to run a test using a specific scala version?
    4 replies
    Jack Koenig
    @jackkoenig
    Using IntelliJ with an SBT project, is there a way to customize/override settings in the project's .sbtopts file? I have a -Dmy.property=$PWD which works with the SBT shell on the command-line (at least on MacOS and Linux) but is not interpreted by IntelliJ and even if it were, would probably be the wrong directory anyway.
    7 replies
    Jack Koenig
    @jackkoenig
    Alternative solution idea, is it possible to manually get an SBT project set up for BSP on the command-line, then just use the BSP? https://www.jetbrains.com/help/idea/bsp-support.html#import_nsp
    3 replies
    ie. I don't want IntelliJ to run SBT at all, I just want it to connect via BSP
    Dzmitry Mikhalap
    @DzmitryMikhalap
    Hi @niktrop , after update from 2017 scala plugin version, I faced the issue with resolving the type of a generic method with some (~10) overrides. Each of them has implicit parameters that are used in output type calculations (200-400 candidates in collectCompatibleCandidates per each method). The calculation of all available overrides freezes the scala plugin in implicitSearchFails.
    The issue appears after JetBrains/intellij-scala@815eff7. Could you please give me advice about possible ways to fix this?
    15 replies
    Eric Peters
    @er1c
    I'm getting a stack overflow error trying to import scala-js project into IntelliJ: https://gist.github.com/er1c/8032a97bcfa1725784c4aa47950d8c1a (https://github.com/scala-js/scala-js) runs fine locally, any ideas for why it blows up?
    Eric Peters
    @er1c
    oh its a 2.11 issue
    Swoorup Joshi
    @Swoorup
    dotty projects not longer works?
    i can't select/download 3.0 in intellij
    4 replies
    Swoorup Joshi
    @Swoorup
    image.png
    jmagana2000
    @jmagana2000
    why does my project not install libraries from build.sbt?
    3 replies
    Chenai Nakam
    @chenakam
    Macro expansion failed: Internal error: scala/meta/Dialect$
    9 replies
    Some previous version works well.
    Olivier Mélois
    @Baccata

    :wave: hi folks, I'm writing to write a function that takes a com.intellij.psi.PsiElement and detects whether the underlying expression is subject to a specific implicit conversion.

    implicit def convert(s : String) : Foo  = ??? 
    
    val foo : Foo = "hello" // I'd like for the function to return true on "hello"

    Now I'm a bit confused about the PsiElement model. Could someone point me to the right direction ? Any clue would help

    2 replies
    Tomasz Pasternak
    @tpasternak
    hey, do you know if nightly build is going to be published today?
    2 replies
    Olivier Mélois
    @Baccata
    Hi folks, me again : I'm trying to write a test for the piece of plugin I'm writing. I currently have a ScalaFileImpl which returns false on "isCompiled", and a Module that contains the correct dependencies. How can I run the compiler on the ScalaFileImpl ?
    8 replies
    Saqib Saleem
    @trywe-ltd
    Hi. When I see a yellow squiggly line under a dependency in my build.sbt, I can see that there is a context menu option to Update project recovers' indexes. When I click this, it takes me to the build module in project settings. However, when I click the Update button to update the indexes for a given resolver, nothing happens, regardless of which resolver I have selected. I remember that this used to work some time ago (I forget when - maybe a year+ ago). This is on Intellij 2020.2.1 with latest stable Scala plugin.
    Olivier Mélois
    @Baccata
    Hi foks, when developing an intellij plugin, what should the <id> value in the plugin.xml point towards, if we want to upload the plugin from sbt-idea-plugin ?
    Chenai Nakam
    @chenakam
    Why does the code imported by macro generate appear as an error?
    Chenai Nakam
    @chenakam
    Some previous version with scala.meta works well.
    jerrytheprogrammer
    @jerrytheprogrammer

    Hello All,

    We have a sample plugin created using sbt-idea-plugin.
    And this plugin depends on scala intellij scala plugin :-

    intellijPlugins += "org.intellij.scala::xx”.toPlugin

    Now, as per the documentation. This xx can be 2019.2.1, Nightly, 2019.3.2:Eap

    For example :- If I build my plugin against org.intellij.scala::2019.3.2:Eap.
    How too handle scenario’s where user’s intellij have some different version of scala plugin installed ?

    Also, kindly suggest, what should be the best option to use in place of xx,

    So that this plugin can be installed from zip file in intellij having scala plugin preinstalled.

    Also, what should be the steps to

    1. obfuscate the plugin before creating a zip file for plugin.
    2. To package plugin into a zip file
    Chetan Kumar
    @cdhandapani-mdsol
    Hi all,
    I am getting a GC overhead limit exceeded when i build my scala project. I have already tried increasing the VM options -> -Xmx6G. but nothing works.. can someone help me out with this please?
    2 replies
    jerrytheprogrammer
    @jerrytheprogrammer

    Hello All,

    We have a sample plugin created using sbt-idea-plugin.
    And this plugin depends on scala intellij scala plugin :-

    intellijPlugins += "org.intellij.scala::xx”.toPlugin

    Now, as per the documentation. This xx can be 2019.2.1, Nightly, 2019.3.2:Eap

    For example :- If I build my plugin against org.intellij.scala::2019.3.2:Eap.
    How too handle scenario’s where user’s intellij have some different version of scala plugin installed ?

    Also, kindly suggest, what should be the best option to use in place of xx,

    So that this plugin can be installed from zip file in intellij having scala plugin preinstalled.

    Also, what should be the steps to

    1. obfuscate the plugin before creating a zip file for plugin.
    2. To package plugin into a zip file

    I was referring https://github.com/JetBrains/sbt-idea-plugin for the above points. There are few settings for package and publication.
    But not able to find reference, examples for

    1. How to handle scenario’s where user’s intellij have some different version of scala plugin installed and my plugin is build with some different scala plugin version

    2. Packaging plugin as zip

    3. Obfuscation with pro-guard etc…

    There are references and examples with grade plugin.
    But, I am struggling to find references, examples for sbt idea plugin.
    Kindly suggest some good reference or concrete examples.

    I just don’t want to switch to gradle after spending so much time understanding some sbt/scala :).

    6 replies
    Paulius Imbrasas
    @CremboC
    Hey QQ about Ultimate's SQL injection - sometimes the SQL injection works fine with doobie's sql interpolator sometimes it doesn't. Any idea what could it be?
    2 replies
    Marcin Szałomski
    @baldram

    Hi All, I try BSP (Bloop) integration with IntelliJ Ultimate.
    I got succesfull the first step after opening the project form existing sources
    (following the guide from here).

    I got a good result.
    alt

    Later, unfortunately it is not. The build fails.
    alt

    I found a stacktrace in logs and reported a problem here: https://youtrack.jetbrains.com/issue/SCL-18139

    INFO - pl.ProjectRootManagerComponent - project roots have changed (stacktrace has been already reported with trace_hash = -565515577)

    However, maybe you know any workaround for this problem?

    Wojtek Pituła
    @Krever
    Hey, I've just run into the same problem like 20th time among years and maybe someone has an answer. Sometimes Intellij doesn't include my test classes in the classpath when running the tests, resulting in java.lang.ClassNotFoundException: MySpecClass. Anyone had similar issues? Is there a workaround? Problematic part is that I don't know the cause, run tests button seems to work most of the time but in some projects it just breaks this way.
    4 replies
    Oleg Galako
    @ojow
    hi, i'm using the nightly builds with dotty project for several months but since last week or so the error highlighting is completely broken, as soon as it encounters a dotty syntax feature (such as "using") it produces thousands of errors in that file so i have to disable error reporting completely, i looked for options related to scala versions but couldn't find anything that would fix this
    5 replies
    Oleg Galako
    @ojow
    i'm using dotty 0.27-RC1, but the problem appeared earlier than i switched
    Anton Ermak
    @raymank26
    Hi. Can anybody help me with debugging intellij idea bundled plugin located in community repo? I run "IDEA" configuration with debug enabled but debugger doesn't work in some codepaths. Although code changes applies after "IDEA" restart.
    6 replies
    Performant Data
    @performantdata
    I've written a build.sbt that runs CMake CLI commands to generate Java sources (with SWIG). I made a task for that and added it to sourceGenerators. Works fine for sbt CLI. Is it normal that I should have to go into the IDEA settings to say "use the sbt shell for builds" to make this work in IDEA?
    2 replies
    QP
    @theqp
    import scala.util.chaining._
    Nil.tap(println)
    idea says that the type of this expression is Unit, but that is not true, the type is Nil.type
    1 reply

    if I do this

    Nil.tap(println).tap(println)

    then it gets the type of the first call right and the last call is Unit again

    Dmitrii Naumenko
    @unkarjedy
    I have Nil.type
    image.png