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
    Then report bugs nicely :)
    Francois GORET
    @fgoret
    And I don't mind to report bug... I do mind to report exactly the same bug, every 5 minutes, without an option to opt-out. I
    nafg
    @nafg
    You can ignore the bubble
    Francois GORET
    @fgoret
    Yes of course. Absolutely not distracting at all.
    nafg
    @nafg
    According to you, it's "sabotaging" to push code to an unstable channel that hasn't been exhaustively tested.
    Francois GORET
    @fgoret
    No... it's sabotaging to push the SAME, SAME <---- I mean the SAME error message every 5 minutes. And I am not kidding... every 5 to 10 minutes, really.
    nafg
    @nafg
    That behavior is controlled by the platform, not the Scala plugin team
    i.e. you're insulting the wrong people
    Francois GORET
    @fgoret
    Insults ? Just say "sabotaging" is an insult ?
    Francois GORET
    @fgoret
    Thanks for the link. It says "to deliberately stop someone from achieving something, or to deliberately prevent a plan or process from being successful" That's exactly what the constant distraction of that bubble is doing. I stand by my words, and really don't see your "insult" point.
    nafg
    @nafg
    It's deliberate? Their intent is to stop you from achieving something?
    Francois GORET
    @fgoret
    Yes it's deliberate... as there's no way to limit or stop it. How difficult would it be to put a throttle of, let's say, 5 error report / 24 hours ? Don't get me wrong: I love IJ, I use the ultimate version for many years, about 4 to 6 hours a day.
    nafg
    @nafg
    Again. Do you think they did it because they want to stop you from achieving something?
    Francois GORET
    @fgoret
    Yes.
    Sorry to ask: are you working for JetBrains ?
    nafg
    @nafg
    No
    Why would they want to stop you from achieving something?
    Francois GORET
    @fgoret
    The constant error message alerts is a known issue for many years, and JB never wanted to address it. They know better... They just assert that the perceived usefulness of a constant stream of (again !) exactly the same error message is more valuable than the inconvenience caused to the user. I said "perceived" because actually they will not look at all those messages, they de-duplicate them. To make my point clear, again, I don't mind to send few error messages, comment on them, log in to my jetbrains account doing so. BUT I do mind to have to endure that every 5 minutes, for no purpose.
    Dmitrii Naumenko
    @unkarjedy

    @fgoret
    Sorry for the inconvenience.
    This specific error messages ("Slow operations are prohibited on EDT") are new and are shown in 2021.2 version.

    actually they will not look at all those messages, they de-duplicate them

    All the reported exceptions will be counted.
    Yes, exact same text will be duplicated but if you report 10 same exceptions all of them will be counted.
    The more reports the more attention the issue recieves.

    Anyway I will redirect this to the platrofm to consider making these specific error messages less flood-ish

    梦境迷离
    @jxnu-liguobin
    Hello everyone, I am writing a macro extension plug-in based on Scala plug-in.
    How can I make intellij idea prompt with this constructor generated by myself? I used SyntheticMembersInjector and so on, but it didn't meet the expectation.
    By the way, there's nothing wrong with other methods, only the this constructor. I wonder if I missed something important? Is there such an example? (my template is def this(……) =this(...)) Thanks.
    3 replies
    Justin Kaeser
    @jastice
    @fgoret these notifications are by default enabled for beta and EAP builds, but if it's getting too much you can disable them. Find the idea.properties file in the config directory (https://www.jetbrains.com/help/idea/tuning-the-ide.html#config-directory) and try setting idea.fatal.error.notification=disabled in there
    Francois GORET
    @fgoret
    @jastice It works! Thanks a lot.
    shvahabi
    @shvahabi:matrix.org
    [m]
    Hello everybody. In Scala 3 package objects are deprecated and hence all kinds of definitions can now be written at the top-level. There may be several source files in a package containing such top-level definitions, and source files can freely mix top-level value, method, and type definitions with classes and objects. However IntellijIDEA CE still doesn't recognize assets imported from such source files into other source files and even in same package (which does not require importing), until the sources are compiled. Is there any way to fix wrong error highlighting due to unidentified imported assets?
    4 replies
    Marc Burgess
    @margeobur

    Hey guys, wasn't sure if this is the appropriate place or the general IntelliJ channel is.

    I'd like to disable automatic insertion of quotes after typing '=' inside an inline XML tag. Neither the HTML Smart Keys setting for this (https://www.jetbrains.com/help/idea/settings-smart-keys.html#smartkeys_html_css) nor the corresponding HTML Code Style setting (https://www.jetbrains.com/help/idea/settings-code-style-html.html#ws_html_settings_editor_code_other) seem to work for Scala.

    There don't seem to be any equivalent settings in the Scala submenus.

    Some support forum posts where people have had the same issues with other languages in other IntelliJ-based IDEs:
    https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000491670-How-to-disable-automatic-double-quote-insertion-after-typing-an-equal-sign-WebStorm-
    https://intellij-support.jetbrains.com/hc/en-us/community/posts/207044965-Autocomplete-insertion-double-quotes-after-start-typing-html-tag-attribute
    https://intellij-support.jetbrains.com/hc/en-us/community/posts/360008249959-Settings-Editor-General-Smart-Keys-HTML-CSS-XML-HTML-Add-quotes-for-attribute-value-on-typing-and-attribute-completion

    In each one of the above cases, there either was no solution or it's irrelevant to Scala

    3 replies
    Johan Walters
    @fourth44
    After updating to the latest EAP version, compiler flags for Scala 3 are not recognized anymore (e.g. -Ykind-projector, -source, ...). There is no crossbuild. In module settings, everything is set to Scala 3.0.1. SBT command line works fine, but 'rebuild project' fails. "scalac: bad option: '-source' "
    Johan Walters
    @fourth44
    If anyone has the same problem, I'll look to file a bug report
    2 replies
    techLeadAtLogicOverCode
    @techLeadAtLogicOverCode

    We have a intellij plugin that depends on JetBrains/intellij-scala.
    sbt runPluginVerifier gives below verification error :-

    Dependencies used on verification details
    com.logicovercode:2021.1.18
    +--- org.intellij.scala:211.7142.13
    | +--- (failed) JavaScript (optional): Plugin JavaScript is not available in Marketplace https://plugins.jetbrains.com
    | +--- (failed) JavaScriptDebugger (optional): Plugin JavaScriptDebugger is not available in Marketplace https://plugins.jetbrains.com
    | +--- (failed) com.intellij.css (optional): Plugin com.intellij.css is not available in Marketplace https://plugins.jetbrains.com
    | +--- (failed) module com.intellij.modules.ultimate (optional): Plugins declaring module 'com.intellij.modules.ultimate' are not found in Marketplace https://plugins.jetbrains.com
    | ...
    | ...

    Full stacktrace can be found at : https://pastebin.com/d3cCrMax

    All functionalities of our intellij plugin are working fine.
    So, we are assuming, that we don't need any of the failed optional plugins from stack-trace.

    How to make intellij plugin verification passed successfully.
    Below is plugin.xml of our intellij plugin :-

    <!--
      ~ Copyright 2021, Logic Over Code, All rights reserved.
      ~ Licensed under the Apache License, Version 2.0 (the "License");
      ~ you may not use this file except in compliance with the License.
      ~ You may obtain a copy of the License at
      ~
      ~ https://www.apache.org/licenses/LICENSE-2.0
      ~
      ~ Unless required by applicable law or agreed to in writing, software
      ~ distributed under the License is distributed on an "AS IS" BASIS,
      ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      ~ See the License for the specific language governing permissions and
      ~ limitations under the License.
      -->
    
    <!DOCTYPE idea-plugin PUBLIC "Plugin/DTD" "https://plugins.jetbrains.com/plugin.dtd">
    <idea-plugin url="http://www.logicovercode.com"
                 xmlns:xi="http://www.w3.org/2001/XInclude"
                 require-restart="false">
        <id>com.logicovercode</id>
        <name>JLoc</name>
        <version>2021.1.18</version>
        <vendor email="techlead@logicovercode.com" url="http://www.logicovercode.com">Logic Over Code</vendor>
        <description>
            <![CDATA[
            JLoc Plugin provides wizard to create fluent sbt project.
            <br>
            Using this plugin, you can create java and scala nature project with fluent style sbt build.
            <br>
            <br>
            This plugin uses libraries
            <br>
            intellij-scala (https://plugins.jetbrains.com/plugin/1347-scala)
            <br>
            and
            <br>
            LogicOverCodePlugin (https://github.com/logicovercode/LogicOverCodePlugin).
            <br>
            These libraries are available under the Apache 2.0 License (https://www.apache.org/licenses/LICENSE-2.0.html).
          ]]>
        </description>
        <idea-version since-build="211.5538" until-build="211.*"/>
    
        <depends>com.intellij.modules.java</depends>
        <depends>org.intellij.scala</depends>
    
    
        <extensions defaultExtensionNs="com.intellij">
            <projectTemplatesFactory implementation="com.logicovercode.isplugin.LogicOverCodeWizardFactory" order="first"/>
        </extensions>
    
    </idea-plugin>
    Yuriy Yarosh
    @yuriy-yarosh
    Found out that Dotty imports formatting with scalafmt are broken right now.
    It would be great to fix 'em alongside with SCL-19335.
    It's a pretty annoying bug...
    4 replies
    Jeff May
    @jeffmay
    I'm having issues with Intellij IDEA syntax highlighting the value inside of the @newtype annotated case class... is that to be expected? Does anyone have any suggestions for how folks deal with this?
    zygfryd
    @zygfryd
    Is that an annotation macro? I wasn't aware the plugin supported those
    Jeff May
    @jeffmay
    you can enable macro annotations in Scala 2.13 with the scalac option: -Ymacro-annotations
    obviously, the need for this library goes away in Scala 3
    as you can just use opaque types
    zygfryd
    @zygfryd
    In Scala yes, but I don't think the plugin supports anything besides blackbox def macros in Scala 2
    Jeff May
    @jeffmay
    ok, so this is probably to be expected then
    I'm just curious if there is any workarounds I can use
    zygfryd
    @zygfryd
    Actually, there's some code in the plugin's source for this macro specifically
    No idea if you have to enable it or what
    Jeff May
    @jeffmay
    that's interesting... maybe it just got out of date? I don't see a config for it.
    1 reply
    nafg
    @nafg
    Why did autocomplete get so slow
    Yuriy Yarosh
    @yuriy-yarosh

    nn autocompletion broken for scala3 - doesn't pick the type after nn calls

    import software.amazon.awssdk.services.s3.S3Client
    
    val client: S3Client = S3Client // here's fine
        .builder()
        .nn // doesn't autocomplete at all after this .nn because loosing the underlying type
        .region(region.toAWSRegion())
        .nn
        .build()
        .nn

    nn is a scala3 not null call to translate Type | Null -> Type explicitly and enforce null safety at compile time (it'll still crash with NullPointerEx if it'll get one from Java, but meh)

    Metals picks nn's just fine.

    Yuriy Yarosh
    @yuriy-yarosh
    I'm on EAP 2021.2 RC with Scala 2021.2.13 plugin.
    2 replies
    Nick Price
    @Rocketeer007
    I've upgraded to the latest Scala plugin today, alongside the upgrade to IDEA 2021.2, and am having issues with my builds timing out. For some reason (historic), the "ICode" phase of one module in our project build takes ~5mins to complete - during this time, we see memory usage grow and shrink as the GC runs, so it's not "hung", just "really annoyingly slow". Unfortunately, with the latest Scala plugin, I now get a message saying "no response from compile server for 60 seconds" during this period, and the pluging attempts to fallback to a "local" compile - despite the fact the compile is still running on the compile server.
    Is there any way to extend this timeout?
    9 replies
    Or perhaps the better question - where can I set scala.compile.server.socket.read.timeout.seconds?
    Alex
    @unthingable
    In Scala REPL, how does one exit out of :paste? ^D doesn't seem to help.
    7 replies
    (googled for an hour, honest)
    Daniel Hinojosa
    @dhinojosa
    Hey there, in this small example, my export is turned into import in Scala3 in IntelliJ. I checked with scalafmt which is on my path, but it kept the export. Anyone experiencing the issue where export turns into import?
    package com.evolutionnext.exports
    
    import java.time.LocalDate
    
    class CalendarEntry(private val localDate: LocalDate, val name: String):
      export localDate.{getDayOfMonth, getDayOfWeek, getDayOfYear}
    1 reply
    Allen.Yoon
    @ironmaskara

    Hello,

    May I ask a question about my problem?

    in the course of build of my files.. I got this msg [Error] C:\Codes\federationGradle\chisel3\core\src\main\scala\chisel3\Module.scala:7: object JavaConversions is not a member of package collection ]

    and I found that... my scala library version is 2.13.4 and it(JavaConversions ) is located in under 2.12.10.. so I tried to change my version.. but i couldn't include this version... I don't know why i can't change my dependency...

    I use gradle to build it up .. and my setting is as follows...
    Thanks

    3 replies