Define an alias like (if you want it to be permanent for bash then define it in .bash_aliases in your home directory): alias myapp="java -jar myapp.jar" And then run your command like: myapp arg1 arg2 arg3 ...
You will want to set your GRAILS_HOME variable to the root of your Grails installation, not the bin folder GRAILS_HOME=D:\grails-3.0.1 ...
intellij-idea,webstorm,intellij-13,intellij-plugin
Simple answer: No. That's because coding rules exist and besides things like changed binaries you have the problem of version control as well. which style of your code should be versioned? While VCS' are able to deal with different line endings, what you ask for isn't supported anywhere.
javascript,intellij-idea,jslint,lint,eslint
The problem is not with ESLint. If you look closely at your message, it says JSHint. Since you're trying to configure ESLint, simplest solution would be to disable or remove JSHint plugin form your IDE. If you still want to use JSHint along with ESLint, you can do the following:...
I am not aware of such a feature, but in any programming environment you can get away with an adhoc solution: just define a method debugBreak, add a breakpoint to it and then use that. By example: def debugBreak() { println("Breakpoint hit!") // Manually set a breakpoint here } //.......
java,sql,intellij-idea,syntax-highlighting
You can do this via 1) a setting 2) an annotation, and/or 3) a comment. For any of these, you must have the (bundled) IntelliLang Plugin enabled. Setting You can add a setting to say that a particular method's parameter is of a certain 'language' (SQL for example.) Open Setting...
eclipse,scala,maven,intellij-idea,sbt
It should work out of box for dependencies, which are imported to the project as modules, no additional settings needed. At least for Java. Just do not run a Maven goal, that would use dependencies from the repository. ...
I'm not sure what your mapping looked like when you tried having it all in one workspace, but it sounds like you want: //depot/foo/trunk/... //my_client/trunk/foo/... //depot/foo1/trunk/... //my_client/trunk/foo1/... //depot/foo1/branch1/... //my_client/branch1/foo1/... which is a perfectly valid one-to-one mapping. This on the other hand would not work: //depot/foo/trunk/... //my_client/trunk/foo/... //depot/foo/trunk/... //my_client/branch1/foo/... //depot/foo1/trunk/... //my_client/trunk/foo1/......
intellij-idea,intellij-idea-14
Press Tab instead of Enter to select the item, and the identifier will be replaced. See also http://jetbrains.dzone.com/articles/top-20-code-completions-in-intellij-idea
Finally, mrunit's use for hadoop2 still have a error.mrunit's use for hadoop1 is ok.below is change maven: <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-client</artifactId> <version>2.0.0-mr1-cdh4.4.0</version> <scope>provided</scope> <exclusions> <exclusion> <artifactId>mockito-all</artifactId> <groupId>org.mockito</groupId> </exclusion> </exclusions> </dependency> <dependency>...
This is what I have: $CLASSNAME$ $VAR$ = Mockito.mock($CLASSNAME$.class);$END$ Expressions - CLASSNAME: - VAR: decapitalize(CLASSNAME) So, I just need to type the name of the class I want to mock once, and all the rest is automatically completed. Hope it helps....
java,intellij-idea,gradle,compilation
If you really need to change your sources due to project limitation this might work for you: assuming your version info is kept in a class named VersionInfo.java, the following snippet copies the original VersionInfo source from the default folder into a generated folder and processed the file with updating...
android,intellij-idea,android-studio
Go to File-> Setting-> Editor unchecked all check box Then Go to File-> Setting-> Keymap-> Main Menu->Code->Completion remove all hot keys and apply. ...
java,swing,intellij-idea,intellij-plugin
Taking yole's answer into account, I came up with a solution that automatically saves data automatically in an "ok enough" way for light plugins. new Timer(2000, new ActionListener() { // Create 2 Second Timer @Override public void actionPerformed(ActionEvent event) { if (isModified()) // Any Changes? getData(); // Save Data }...
java,command-line,intellij-idea,compiler-warnings,headless
Taken from Working with IntelliJ IDEA Features from Command Line: To launch a code inspection from the command line, specify the following command line arguments: Path to the launcher: specify the full path to one of the following launchers (which reside under the bin directory of your IntelliJ IDEA installation):...
If you open the run configuration you should see fields like Module, Command Line, VM options and more. So add this to the Command Line field -noreloading -Ddisable.auto.recompile=true run-app That should stop Grails from reloading your application....
You need to define new Maven 'Run Configuration' Run -> Edit Configuration -> '+' -> Maven and specify Working Directory - directory where you execute mvnDebug, Command Line - the command itself, i.e. 'clean jetty:run' Other relevant fields such as Name After you've done this, you will see just created...
Nope! It is not possible to customise indent guide color. The current version of Android Studio only allows to turn on or off. And you can adjust default number of white space per indent. Don't you think it will create more confusing colourful interface while you code? I think this...
Yes. If you look at the IDEA*.txt licenses in the <ideaInstallDir>/license directory of an EAP version, you will see that they are exactly the same as those in the released version. Basically EAP's are considered evaluation licenses (see comment by JetBrains here). If you (or your lawyers) want to be...
java,jsp,tomcat,servlets,intellij-idea
You can enter your application URL in the 'Edit Connfiguration' of your tomcat server. Click on Edit Configuration Enter you application URL in the start up page Note:- Most probably above solution will work, if it doesn't then you might need to change the application context to '\myApp' in deployment...
objective-c,intellij-idea,syntax-highlighting
I found this, but it is only syntax highlighting, not auto-complete. For that I'am afraid you will have to use AppCode or Xcode. https://github.com/jkaving/intellij-colors-solarized...
Go to Preferences -> Editor -> File and Code Templates and here you can edit your templates for new files. You can read more here. In IntelliJ IDEA 14.1.2 it works for me....
java,debugging,intellij-idea,concurrency,ide
is the code that spwaned the threads your's ? if so you could set unique names on the threads and use those names to distinguish your threads when using breakpoint conditions. e.g. //spwaning the thread Thread threadA=... threadA.setName("thread-A"); // IntelliJ Condition : Thread.currentThread().getName().equals("thread-A") ...
It is in .idea/workspace.xml: <component name="VcsManagerConfiguration"> <option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="true" /> </component> ...
Hi we used the following solution provided here: https://github.com/seejohnrun/haste-client By using a simple Bash Script and External Tools in Intellij. Bash Script: #!/bin/bash hastepost() { a=$(cat); curl -X POST -s -d "$a" hastebin.com/documents | awk -F '"' '{print "hastebin.com/"$4}'; } url=$(cat $1 | hastepost) echo $url xdg-open $url If you...
java,android,intellij-idea,ant
Check the version of Java you are using to compile your classes. You need to be using Java 6 or 7 for Android development. Java 7 support was added more recently and its functionality is limited, so use 6 for maximum compatibility....
java,eclipse,intellij-idea,ide
IntelliJ provides out of the box interoperability with eclipse projects. When you select "linking IntelliJ-files with Eclipse-files" intelliJ stores dependencies in eclipse format (.classpath) so any changes you made in the project can also be seen by eclipse. On project not imported with this option you can try File ->...
java,android,intellij-idea,android-studio,packages
IntelliJ flattens the packages by default if the package does not contain anything except other packages. You can disable this behavior by clicking on the settings icon in Project view and unchecking Compact Empty Middle Packages. ...
The action is called Collapse All and the default shortcut is Ctrl + NumPad - (the project view has to be focused).
java,scala,intellij-idea,sbt,intellij-plugin
Okay, it seems that this question has been answered here: https://devnet.jetbrains.com/message/5546566#5546566...
Add dependencies in the 'build.gradle' of your MainProject, like this: compile project(':proj1') compile project(':proj2') EDIT: And in the 'settings.gradle' this: include ':proj1' project(':proj1').projectDir = new File('../proj1') include ':proj2' project(':proj2').projectDir = new File('../proj2') ...
The bold [some-notes] that you are seeing is "Name" of the module according to IntelliJ. If the "Name" and the artifactId of the modules are the same then the bold addition will not appear. I do not believe this is meant for notes, but if you would like to have...
It's an acronym: public static void main But 'main' works fine too....
Execute mvn install from command line, or from IntelliJ directly, to see details. Or you could try hovering over the module... ...
java,intellij-idea,code-generation,getter-setter
Someone asked that before. That's not possible. See: Intellij IDEA - Generate (Alt + Insert) Old question/answer, but I couldn't find it in IDEA 14 (Community) either....
intellij-idea,gradle,intellij-14
I did a small search in IDEA and Google and looks like there is not way to see Gradle dependency but I have found the plugin "Gradle View" which does what you need http://plugins.jetbrains.com/plugin/7150 You can open a ticket and maybe they will add a better Gradle support in IDEA...
intellij-idea,code-analysis,intellij-idea-14,code-inspection
You could create a Custom Scope.
The shortcut for class hierarchy in eclipse is F4. In eclipse it is called type hierarchy. With Ctrl+Shift+L you can also browse through your currently defined shortcuts....
I found webstrom but it is paid version :,(
I think this is the problem of using a wrong JDK for your project. And it mainly arises incompatible version like the latest versions namely 1.8.45 etc. Can you please try with some older JDK like 1.8.25 and let us know if it works? I earlier had such an issue...
debugging,intellij-idea,scala.js,utest
Currently, the only way to (step-by-step) debug Scala.js code I know of, is inside a browser. The Scala.js sbt plugin does currently not easily allow you to export a JS file you can load in the browser and run. However, if you really need to, you can do so manually:...
The *.gradle files are required in order to build the app project successfully. In other words, these files should be included in the VCS. build.gradle contains part of manifest and list of library dependencies. settings.gradle contains depended projects. Some projects provide entire source code. The simplest choice is to include...
java,android,intellij-idea,android-studio
The ability to create custom setter & getter templates was added in IntelliJ IDEA v14.1 (specifically build 141.177) via the feature request IDEA-28206 Allow customization of generated getter/setter. I do not know if that change has been merged into the Android Studio branch yet. With the (new) feature, when you...
This has nothing to do with IntelliJ, but is simply a limitation of the Scala compiler. The warning does not appear whenever a nontrivial if clause is present. You can even try this in the REPL: Option(1) match { case Some(x) => ??? } //warning Option(1) match { case Some(x)...
java,image,intellij-idea,nullpointerexception
Check if there are any hardcoded path names (with file separators)
You can find the settings icon on right top of the project window, there you can find the option as below, to get the natural order. sort by type ...
java,intellij-idea,annotations,code-inspection
While you should go with ControlAltDel's comment as an ultimate solution, Intelij does have an inspection "Suspicious variable/parameter name combination" that might help. You can enter common parameter names and it will warn you if it thinks the local variables do not match. ...
The support from IntelliJ told me to try the IDE with bundled java. http://download.jetbrains.com/idea/ideaIC-14.1.3-custom-jdk-bundled.dmg And it works! Edit: IntelliJ support feedback: The problem was that there was a hang within java.net.Inet4AddressImpl.getLocalHostName(Native Method) JDK method call, which gets your system hostname. This is either JDK problem or local configuration issue... The...
java,intellij-idea,hyperlink,console,log4j
IDEA will create a link in the console for any text that matches following pattern: (${FileName}.${FileExtention}:${lineNum}) or as a Regex: \([\w \.\-]+\.[\w]*:[\d]+\) For example: (ErrorNotes.txt:10) Note that you need to include the parenthesis. For an actual class, you could use the following in log4j pattern: (%F:%L) For example: To reference...
java,maven,tomcat,intellij-idea
You can define profile specific properties directly in pom.xml like so: <profile> <id>localhost</id> <properties> <augage_env>local</augage_env> </properties> </profile> More information can be found in Maven documentation for build profiles....
If you are on a method name then you can hit ALT + ENTER to get the Intention Actions where the first is usually the Add type annotation to function definition Illustration: In this case it would add Int to the return type of the exampleFunction. Might I add this...
Place your cursor on the underlined part of code which shows an error, hit ALT+Enter and pop-up menu with available quick-fixes will be shown as illustrated in the screenshot below. This also works for other types of inspections, such as warnings, not just compilation errors....
No, it's not possible. Each of the generators has a distinct UI where you need to specify the details of the methods you need, so it wouldn't save any significant effort if the generators were combined.
Yes, Scala settings have changed and most documentation is outdated. I think the setting you are looking for is located here: File ⇒ Settings ⇒ Languages & Frameworks ⇒ Scala ⇒ Editor Tab ⇒ Show type info on mouse hover after, ms...
maven,intellij-idea,intellij-idea-14
Use a Maven configuration instead of a TestNG configuration. You can still run your TestNG tests from the Maven configuration: ...
intellij-idea,spring-boot,spring-data
You can change the application properties for the datasource according to the link Gabor Bakos already provided. That depends on the type of the database you want to use. HSQLDB and H2 allow you to specify a file path for the database file, however the database instance itself is...
This page of the documentation explains the built-in Velocity variables for Settings → Copyright → Copyright Profiles: Name Type Comment $today DateInfo The current date and time. ... DateInfo has the following properties: year int The current year. So in my case, I needed this in my template: Copyright (c) 2015-${today.year}, My Name ...
java,android,intellij-idea,android-studio
You have the dependency declared properly. Check the SDK Manager to make sure you've downloaded the Support Library
For jvm HelloWorld$ is the class of singleton HelloWorld. Scala generates ObjectName$ class for every object ObjectName. It also creates static methods in this class that looks like this: public static void main(String[] args) { MODULE$.main(args); } From javayou could either get an instance of object ObjectName using ObjectName$.MODULE$ static...
android,intellij-idea,android-studio
First, a disclaimer... I have only played with Android Studio a little. But I am an avid user of IntelliJ IDEA for the past 12 years. As Android Studio seems mainly to be a modified version of Intellij my question is are there totally specific features Android Studio has that...
javascript,angularjs,variables,intellij-idea,webstorm
I can suggest using JSDoc to document such objects received by ajax calls. See How to fight a lots of unresolved variables warning in Webstorm, for example
No, there is no such setting as of IntelliJ IDEA 14.1.
The problem is your "Project SDK" is none! Add a "Project SDK" by clicking "New ..." and choose the path of JDK. And then it should be OK.
java,android,intellij-idea,out-of-memory,android-gradle
You can add this line to application class declaration into manifest file to request a larger heap size. android:largeHeap="true" Make change into manifest file code. <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.thenewjonathan.gloryblades" > <uses-permission android:name="android.permission.internet"/> <uses-permission android:name="android.permission.access_network_state"/> <uses-permission...
debugging,intellij-idea,bdd,cucumberjs
Instead of using the cucumber.js plugin, I used the run/debug configuration of node.js. I just set the run config of the node.js plugin like that -> JavaScript file: node_modules/.bin/cucumber.js (any path to the cucumber.js file)...
java,intellij-idea,android-studio
Click the menu "Refactor", and choose "Move...". Then select the constants you want to move and enter the class where you want to move them.
ruby-on-rails,ruby,intellij-idea,rubymine
Autocompletion's behaviour in RubyMine has been changed since there were a lot of complains against it in previous versions (because it was choosing not always the desirable one option). If you want to restore the old behaviour, type "Registry" in Search everywhere and look for ide.completion.lookup.element.preselect.depends.on.context and unselect it....
why should I add IDEAs *.iml files to gitignore? These files get changed all the time when it has nothing to do with the code. If you are not careful you will always be merging this file with every check in with other developers. If then I get repo...
sql,database,postgresql,intellij-idea,intellij-14
IntelliJ lets you define what counts as a parameter and what does not. Go to "Settings" -> "Tools" -> "Database" and have a look at the "Custom SQL parameters". You probably want to remove \:\w+, as it's probably triggered by your type cast. Have a look at the documentation for...
java,maven,intellij-idea,javafx
I recommend to not use IDEs like IntelliJ IDEA to do everything for the user. If you really want to create a project from scatch then please to so. Don't expect the IDE to do it for you. Create a pom.xml and fill it up without an IDE. (I recommend...
javascript,intellij-idea,phpstorm,webstorm,ecmascript-6
I would very much suggest against using this style of import in JavaScript code. While potentially workable, relative paths are the defacto standard in all NodeJS code, and that has spread to essentially all JS code that uses module systems. In current systems, any path starting with . is relative,...
You need to specify the source dir. Right click on com's parent folder, then Mark directory as and sources root....
android,intellij-idea,android-studio
As you stated, some plugins are only available in IntelliJ Ultimate, hence you cannot use them in IntelliJ Community, which Android Studio is based on. This is noted in the plugin.xml of the Database plugin: <depends>com.intellij.modules.ultimate</depends> That's why simply moving the plugin lib files won't help. A solution would be...
java,scala,intellij-idea,playframework-2.4
The solution was to delete all .sbt, .ivy, .m2 folders in user home folder. Also I've removed SBT_HOME system variable. After that, IntelliJ was able to create valid project.
Check java version in your pom.xml(here you can find how to do it). Also check java version in Project Structure. And the last what you can do - check compiler version e.g. ...
After sending a request to Intellij support team, they gave me the following answer: Adding the following two lines to the IDEA_HOME/bin/idea.properties file: idea.gwt.clear.unit.cache.before.run=false idea.gwt.clean.files.created.by.dev.mode=false Which makes sense, because the only thing I need is to prevent Intellij from deleting my local cached files. Problem solved....
java,eclipse,intellij-idea,javafx
You didn't provide enough information to solve your problem, so here's an example that does work: Create a package application and put this class into it: application/Main.java package application; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.stage.Stage; public class Main extends Application { @Override public void start(Stage primaryStage)...
React.js support is available in Idea 14. Do you have react.js available in your project? The normal way to get completion for API methods is providing the corresponding .js file to Idea - see http://blog.jetbrains.com/webstorm/2014/07/how-webstorm-works-completion-for-javascript-libraries/. Note also that you need to set JavaScript Language Version to 'JSX Harmony' in Settings/Languages&Frameworks/JavaScript...
java,intellij-idea,compilation
Assuming what you tell us is correct, it is running a FrequencyCounter class from somewhere else. The most likely thing is that your classpath is set to a directory or jar that already has a FrequencyCounter class in it, and it's running that.
java,intellij-idea,intellij-plugin
Try this: RefactoringFactory.getInstance(project).createRename() ...
Go to Settings > Appearance & Behavior and select No popup from a dropdown menu in the Plugins Suggestions group on the list.
To see a list of all files with compilation errors, click Project on the title bar of the Project tool window and, under Scopes, select Problems. The other alternative is to use the Problems tool window (View | Tool Windows | Problems). From 'IntelliJ IDEA Q&A for Eclipse Users':...
java,intellij-idea,module,packages
I managed to get it--I had to go into Project Structure and set it to create a jar file containing my compiled .class file upon build. Then I could add the jar file as an external library in my other projects. Thanks guys for the replies.
I found 2 solutions for my problem: 1) Use the intellij local run configuration 2) Instead of System.out.println() use log() to write to the catalina log file.
Go to Project Structure (Ctrl + Shift + Alt + S) > Artifacts > + > Jar > From Modules with dependencies Select your module and the main class. Select Extract to the target JAR if you want to bundle all your libraries into one file. Close the dialog and...
intellij-idea,gradle,neo4j,junit4,spring-data-neo4j-4
You can use an InProcessServer which is an in-memory database: @Bean public Neo4jServer neo4jServer() { return new InProcessServer(); } Omit the session scope as your test isn't running in a web container. An example: https://github.com/neo4j-examples/sdn4-cineasts/blob/4.0-RC1/src/test/java/org/neo4j/cineasts/PersistenceContext.java This will require dependencies as described in this question: Spring Data Neo4j 4.0.0.M1 Test Configuration...
intellij-idea,javadoc,intellij-idea-14
You can uncheck Enable JavaDoc formatting in Settings/Code Style/Java/JavaDoc, which should fix the problem. However this means that no other formatting will be performed (wrapping, alignining, etc). I haven't found a way to disable just the rearranging of tags....
java,java-ee,intellij-idea,glassfish,jax-rs
You need to configure Jersey (the JAX-RS implementation in Glassfish) in your web.xml. You currently only have JSF configuration <servlet> <servlet-name>jersey-serlvet</servlet-name> <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class> <init-param> <param-name>jersey.config.server.provider.packages</param-name> <param-value>the.package.where.your.resources.are</param-value> </init-param>...
scala,intellij-idea,playframework,intellij-idea-14,playframework-2.4
As far as I can see IDEA 14.1.3 Scala/Play plug-in doesn't support the InjectedRoutesGenerator that is the default routesGenerator starting with Play 2.4. webjars-play's 2.4.0-1 WebJarAssets controller implements this injection mechanism. See a similar bug report at JetBrains that probably has the same cause. You could use the regular Assets...
java,intellij-idea,switch-statement
Thanks to Makoto's comment, I set the default encoding of this particular file (not just the IDE and Project Encoding) to UTF-8 and this fixed the problem.
Move your code inside of the src folder. Once it's there, it'll be compiled on-the-fly every time it's saved. IntelliJ only recognizes files in specific locations as part of the project - namely, anything inside of a blue folder is specifically considered to be source code. Also - while I...
java,intellij-idea,slf4j,intellij-idea-14
Have you tried the Java | Logging issues | Non-constant string concatenation as argument to logging call inspection? It has a quickfix to automatically convert a string concatenation to a parameterized log message.