intellij-14

Intellij 14 Scala plugin 1.4: Play project not launching

天大地大妈咪最大 提交于 2019-12-13 00:29:19
问题 Today I got an update on Scala from 1.3.x to 1.4 After that, Intellij stopped launching my play projects. First when I would try to run activator from the command line, it gave me the following error Error: Unable to access jarfile <path to project>\activator-launch-1.2.8.jar So I replaced all the activator files from within the project. Then it started to run from the teriminal/console but when I hit Run/Debug on the my Play configuration in Intellij it simply makes the project and then

How to prevent fully qualified names in Java code

老子叫甜甜 提交于 2019-12-12 10:46:35
问题 Is it possible to check with checkstyle if a java project is using fully qualified names in the code. We want to prevent code like if (org.apache.commons.lang3.StringUtils.isBlank(name)) { .... .... } and want to enforce that packages are instead imported instead. Are there are other tools that can help us accomplish it? 回答1: As far as I know, Checkstyle cannot do this. However, there is a PMD rule called UnnecessaryFullyQualifiedName which may be worth a look. IntelliJ plugins for PMD exist,

How to bind multiple actions to a shortcut

核能气质少年 提交于 2019-12-12 08:27:06
问题 Each time I finished editing a Java class, I want to : Organize imports, Reformat code and Rearrange code. I have to hit 3 keyboard shortcuts. Is there a way to assign a chain of actions to a single shortcut ? I am using IntelliJ 14.1.5. 回答1: You can record a macro consisting of the actions you want to perform and assign a shortcut to that macro. The process is described here. For the sake of completeness, here are the steps from these online guides (credit goes to Jetbrains): To record a

Is there a keyboard shortcut for “Do Refactor” (Refactor Preview Pane) in IntelliJ IDE?

£可爱£侵袭症+ 提交于 2019-12-12 07:26:11
问题 How to press "Do refractor" button when you are trying to refractor some method in (PHP, Java..) code. Steps: Press ctrl+r to rename method Change the name then u press enter Then another panel shows with usages of this method and a "Do Refactor" button Is there a way to press "Do Refactor" without using the mouse? 回答1: IntelliJ tries to solve as many problems as possible using only your keyboard. In your case, a panel showing a refactoring preview is really useful. You can use your arrow

Intellij IDEA Blank Lines after Opening Brace Formatting

三世轮回 提交于 2019-12-12 04:25:26
问题 For some reason I do not remember this as being default but trying to figure out how to make Intellij only insert 1 blank line instead of 2 blank lines after opening brace. This is what my current default setup is doing: ``` myMethod(arg) { } ``` But this seems more logical and what I want: ``` myMethod(arg) { } ``` 回答1: Go to: Editor → Code Style → Java → Blank Lines Choose how many spaces you want around methods, classes, etc... 回答2: Disabling Gauge plugin as recommended in this post did

GWT plugin for Intellij IDEA

梦想的初衷 提交于 2019-12-11 04:28:08
问题 As I see there is no option to do upgrade specific plugin in intellij 14. GWT plugin probably is distributed for GWT 2.6, because in GWT 2.7 we have new super dev mode parameters like -launcherDir that is not in the current Intellij (v14) and getting "Unknown argument: -launcherDir" error. So I need to wait for next Intellij IDEA version update or somehow I can upgrade only GWT plugin to support fully GWT2.7 ? Actually the question would be is this possibl;e to upgrade intellij plugins

How to get IntelliJ IDEA 14 working with Scala on Android (SBT)

半城伤御伤魂 提交于 2019-12-11 03:25:17
问题 I'm using android-sdk-plugin to make Android apps with Scala using SBT. This generally works great - however when trying to import the project into IntelliJ IDEA 14.1 the imported project looks rather empty and does not recognize my source files as being part of the project. The documentation says: IntelliJ 14 now includes native support for importing projects from android-sdk-plugin. The process generally works well, however there are still several caveats: The idea-sbt-plugin is still

Intellij 14 + lombok: @Slf4j Cannot find symbol log

半腔热情 提交于 2019-12-11 01:33:45
问题 Intellij doesn't recognize @SLF4J annotation. I have the following error: Error:(105, 9) java: cannot find symbol symbol: variable log location: class com.xxxxx.SdsConfig knowing that I have already Enable annotation processing (Settings -> Compiler -> Annotation Processors) I use java 8 compiler. 回答1: Use lombok plugin for Intellij: https://plugins.jetbrains.com/plugin/6317 This will highlight everything correctly and allow you to use auto completion for generated methods. Note that some

getting a “Caused by: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet” when starting springboot project from intellij

僤鯓⒐⒋嵵緔 提交于 2019-12-10 09:58:39
问题 I created a simple springboot project from Spring Initializr. when starting springboot project from intellij, I am getting below exception but when running from terminal using maven I don't get any exception(mvn spring-boot:run).I tried solving this by adding below to my pom.xml, but after I was getting some other exceptions and solve that I get some more exception. Please tell anyone of you were able to solve this. Thank you . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ |

Showing graphically the equivalent of git log --follow in IntelliJ

橙三吉。 提交于 2019-12-10 03:26:40
问题 Is there a way in IntelliJ 14 to show the full log of a specific file? I mean: executing a kind of git log --follow graphically in order to see the old versions; before those files were potentially renamed. Currently, when I do Git => Show History on a file, it only shows the equivalent of git log . 回答1: The --follow seems to have been judged "buggy", but git log should follow rename on IDEA: See "IDEA-66700 git log should follow renames (--follow option) ": Closing: the request was fixed a