intellij-idea

Alt+Enter stopped working for Dart files in IntelliJ

柔情痞子 提交于 2020-12-08 06:13:17
问题 When building Flutter apps the ALT + Enter keyboard shortcut is very convenient not only to bring up Quick Fixes but also to bring up a popup menu to wrap/remove Widgets. It was working fine until I ran flutter upgrade and updated the Dart and Flutter plugins in IntelliJ (version 2018.3.5 ). I have tried messing about with the keyboard shortcuts for an hour, disabling and re-enabling Dart/Flutter plugins, restarting and invalidating caches in IntelliJ, closing all other applications and

Alt+Enter stopped working for Dart files in IntelliJ

隐身守侯 提交于 2020-12-08 06:10:14
问题 When building Flutter apps the ALT + Enter keyboard shortcut is very convenient not only to bring up Quick Fixes but also to bring up a popup menu to wrap/remove Widgets. It was working fine until I ran flutter upgrade and updated the Dart and Flutter plugins in IntelliJ (version 2018.3.5 ). I have tried messing about with the keyboard shortcuts for an hour, disabling and re-enabling Dart/Flutter plugins, restarting and invalidating caches in IntelliJ, closing all other applications and

Gradle SourceSet dependencies in IntelliJ

不打扰是莪最后的温柔 提交于 2020-12-06 07:27:08
问题 I've got a Gradle project with an additional sourceSet - acceptance . This contains my acceptance tests, as opposed to just build-time unit and integration tests. I also have some helper classes in the standard test sourceSet that I'd like to share, but that don't belong in the main sourceSet. Currently this works fine in Gradle, but IntelliJ doesn't like it and I'm not sure why. My build.gradle looks like this: buildscript { ext { jackson_version = "2.9.0.pr4" // IntelliJ needs M4

Cannot import javax.validation.constraints in IntelliJ IDEA

岁酱吖の 提交于 2020-12-06 05:51:15
问题 I can't import that simple library, i have all jar files, also i tried Ivalidate Caches / Restart. Maybe i have to add validation to build path, but i don't know to which file. 回答1: Got it. File -> Project Structure In Modules click Dependecies, then click green "+" on the right side Click JARs or directiories... and add JAR files Click OK THEN: File -> Project Structure In Artifacts click FIX button on right bottom size Click OK 回答2: What build tool do you use? You obviously forgot to

Cannot import javax.validation.constraints in IntelliJ IDEA

試著忘記壹切 提交于 2020-12-06 05:51:09
问题 I can't import that simple library, i have all jar files, also i tried Ivalidate Caches / Restart. Maybe i have to add validation to build path, but i don't know to which file. 回答1: Got it. File -> Project Structure In Modules click Dependecies, then click green "+" on the right side Click JARs or directiories... and add JAR files Click OK THEN: File -> Project Structure In Artifacts click FIX button on right bottom size Click OK 回答2: What build tool do you use? You obviously forgot to

How to navigate to a Type in IntelliJ? or what is the equivalent to Eclipse's Ctrl + Shift + T?

天大地大妈咪最大 提交于 2020-12-05 07:32:14
问题 In Eclipse, the "Open Type" dialog ( Ctrl + Shift + T ) allows you to open any type, including those that are in jar dependencies. What's the equivalent for Intellij IDEA? 回答1: CTRL + N is the shortcut you're looking for. After you hit it, dialog will be shown where you can search through project types, hit that shortcut again and it will include non-project types (dependencies). There is also checkbox for that in the dialog. The documentation, which includes some tips and tricks for this

How to navigate to a Type in IntelliJ? or what is the equivalent to Eclipse's Ctrl + Shift + T?

微笑、不失礼 提交于 2020-12-05 07:32:11
问题 In Eclipse, the "Open Type" dialog ( Ctrl + Shift + T ) allows you to open any type, including those that are in jar dependencies. What's the equivalent for Intellij IDEA? 回答1: CTRL + N is the shortcut you're looking for. After you hit it, dialog will be shown where you can search through project types, hit that shortcut again and it will include non-project types (dependencies). There is also checkbox for that in the dialog. The documentation, which includes some tips and tricks for this

How to enter logger definition in IntelliJ fast?

不羁的心 提交于 2020-12-05 07:03:05
问题 Are there some live template or something, to add logger definition into a class? In Eclipse I had a template: private static final Logger log = LoggerFactory.getLogger(${enclosing_type}.class); Don't see something about this in Log Support plugin. 回答1: I am using this live template: private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger( $CLASSNAME$.class ); Go to "Edit variables" and set the CLASSNAME variable to be the expression className() so IntelliJ will

Error:Module 'name' production: java.lang.NullPointerException

不打扰是莪最后的温柔 提交于 2020-12-04 16:00:28
问题 I'm running my Java project in IntelliJ 14.1.1 and I'm using play framework. For some reason I can't compile any part of the code in IntelliJ (even though everything is working perfectly in the play environment). I get this error when trying to compile : Information:5/26/15, 19:26 - Compilation completed with 1 error and 0 warnings in 1s 165ms Error:Module 'doorman' production: java.lang.NullPointerException 'doorman' is the name of the project. Can anyone please help? 回答1: For me, it was the

How to set '-Xuse-experimental=kotlin.experimental' in IntelliJ

﹥>﹥吖頭↗ 提交于 2020-12-04 15:58:48
问题 while trying to build a Kotlin/Ktor application in IntelliJ, multiple warnings of the form Warning:(276, 6) Kotlin: This class can only be used with the compiler argument '-Xuse-experimental=kotlin.Experimental' are output. The warnings refer to @UseExperimental(KtorExperimentalLocationsAPI::class) so I expected to satisfy the warning by setting Settings -> Build -> Compiler -> Kotlin Compiler -> Additional command line parameters to -version -Xuse-experimental=kotlin.Experimental . (