intellij-13

Intellij idea, detach editor window

让人想犯罪 __ 提交于 2019-12-03 05:59:07
I have recently removed tabs from my Intellij setup, because with all the features available to navigate between files, who needs them? The issue is, the normal way of detaching an editor window would be to drag the tab onto another screen (or area). There doesn't appear to be anything in the key mappings for detaching an editor window. Is there a way of doing this via the keyboard? The keyboard shortcut your are looking for is SHIFT + F4 (the action assigned to this shortcut is called Open Source in New Window . When you invoke this action the currently opened tab (file) will be opened in new

Intellij IDEA java.lang.NoSuchMethodError: scala.collection.immutable.$colon$colon.hd$1()Ljava/lang/Object

和自甴很熟 提交于 2019-12-03 05:04:40
I have a following function: def removeLast(list: List[Int]): List[Int] = list match { case List() => List() case List(x) => List() case x :: xs => x :: removeLast(xs) } When I define it and use it from the sbt console everything works just fine. But when I create a worksheet in Intellij IDEA and try to run it then the following exception appears: java.lang.NoSuchMethodError: scala.collection.immutable.$colon$colon.hd$1()Ljava/lang/Object; at week5.A$A26$A$A26.removeLast(lists.sc8362409100671270508.tmp:30) at #worksheet#.#worksheet#(lists.sc8362409100671270508.tmp:33) In addition, when I

Module … is not backed by gradle

。_饼干妹妹 提交于 2019-12-03 00:52:24
I'm using IntelliJ IDEA Pro 13.1.2. Never used any versions below 13. When trying to run build.gradle from IDE I get the message: Module is not backed by gradle I can run this script from the command line just fine. The "root" directory has both .gradle and gradle sub-directories and, in general its structure is very similar to another module from the same project where I can run its build from IDE without problems. Any suggestions on further troubleshooting? If you didn't set up the IDE project via "Import Project" and then pointing to a Gradle project, you may have to link the IDE project to

Set java system properties in IntelliJ or Eclipse

吃可爱长大的小学妹 提交于 2019-12-02 23:36:58
I have a project which runs correctly under the terminal command mvn package exec:java -Dplatform.dependencies -Dexec.mainClass=Demo Now, I need to debug it correctly (not terminal) with IntelliJ or Eclipse on Mac (preferably IntelliJ) but I have tried setting VM options in various places and nothing seems to work. Where is the correct place to put these options: -Dplatform.dependencies -Dexec.mainClass=Demo? In InteliJ goto "Run"->"Edit Configurations" In the new window, right panel, open the Junit and click on your test. Now, in the middle click on the "Configuration" tab and update the "VM

IntelliJ IDEA 13: new Scala SBT project hasn't src directory structure generated

送分小仙女□ 提交于 2019-12-02 22:01:32
I followed the getting start video on Jetbrains website to setup IntelliJ IDEA 13.1 Community Edition to work with Scala. Scala plugin v0.36.431 had been installed. While I created a new Scala SBT project with wizard, there was no src/ directory structure generated in the project. Only two sbt files were generated: scala-course/ ├── build.sbt └── project └── plugins.sbt From the video and other document I know that there should be a src/ directory structure, including src/main/scala , src/test/scala , etc. sbt uses the same directory structure as Maven for source files by default. I can create

Intellij IDEA and Maven, disable reading pom.xml on every small change, even without a save

可紊 提交于 2019-12-01 21:38:13
This is causing intellij to become slow and freeze up which is annoying as ****. It appears as if it analyses other files similar to pom.xml causing freezes on other places as well. Can this be disabled? In Windows Operating system, Press Ctrl + Alt + S , or File\Settings\ Project Settings section. in section Maven : * Uncheck: Import Maven project automatically . * Section Generated sources folder: , Choose Don't Detect . * Section Runner : Uncheck Run in background . You can disable option in Settings -> Maven -> Importing -> Import Maven projects automatically (see intellij docs ) And then

How to disable Maven auto import automatically in IntelliJ IDEA?

北城以北 提交于 2019-12-01 15:38:44
I believe this setting might be causing IntelliJ IDEA to behave slowly. I used to get a popup and finally clicked 'do this automatically', and now it is on, but I want to turn it off again. How can I disable Maven 'auto import'? Uncheck Project Settings | Maven | Importing | Import Maven projects automatically . For IDEA 14+ it's under Settings | Build, Execution, Deployment | Build Tools | Maven | Importing | Import Maven projects automatically . Go to Intellij's Settings and navigate to Build, Execution, Deployment -> Maven -> Importing -> uncheck Import Maven projects automatically . For me

Error: scala: No 'scala-library*.jar' in Scala compiler library

℡╲_俬逩灬. 提交于 2019-11-30 04:14:34
Environment: Play 2.3.0/Scala 2.11.1/IntelliJ 13.1 I used Typesafe Activator 1.2.1 to create a new project with Scala 2.11.1. After the project was created, I ran gen-idea . The generated IDEA project fails to compile with the error: Error: scala: No 'scala-library*.jar' in Scala compiler library in test Am I doing something wrong? Workaround? Since IDEA 13 you should use SBT support which is bundled with Scala plugin. With it there is no need to add third-party SBT plugins and run special commands; just import the project using "File -> Import project..." menu item, and it will automatically

“Cannot start compilation: the output path is not specified for module…”

痞子三分冷 提交于 2019-11-30 01:06:35
I have a very simple Java + Gradle project. It builds fine. It runs fine from the shell with "gradle run". However, if I try to run inside of IntelliJ, I get: Cannot start compilation: the output path is not specified for module "xyz" Specify the output path in Configure Project. My "Compiler output" is set to "Inherit project compile output path". I don't want a custom output path, whatever that is, just do a normal gradle build and run. KingRao You just have to go to your Module settings > Project and specify a "Project compiler output" and make your modules inherit from project. (For that

IntelliJ Column Selection using Cursor Keys

假装没事ソ 提交于 2019-11-29 20:32:27
Is it possible to some how setup IntelliJ IDEA so that I can column select with the cursor keys similarly to how I might in Notepad++, Visual Studio, or FlashDevelop. For instance when I'm typing code I almost always do my navigation solely through use of the keyboard. In the IDEs mentioned previously I can quickly select blocks of code by holding Shift + Alt then tapping ↑ to extend my cursor across the lines above. I can then hold Shift + Alt + Ctrl and tap ← or → to quickly jump across words and select the chunk of text I want. In IntelliJ IDEA I have to constantly enable and disable Column