w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Intellij IDEA 12 doesn't recognize Playframework 2.1 (java) dependencies set in Build.scala
You have to rerun the play idea command in order to get IntelliJ to know that there are new dependencies added. I normally enter the play CLI and then run: idea no-sbt-build-module with-sources=yes This will download the sources for the dependencies (if they exist) and also make sure that the output path will be correct and that modules are not loaded several times.

Categories : Intellij Idea

TestNG with IntelliJ IDEA: How to use the testng.xml file in IntelliJ IDEA 9
Follow this link - http://www.jetbrains.com/idea/webhelp/run-debug-configuration-testng.html#config There is an option just before the run icon that allows you to add the testng.xml file. In the run config dialog select the suite option. Then select the testng file. It worked for me. Hope it helps.

Categories : Java

Using SVN 1.4.6 with Intellij IDEA 12
IDEA doesn't support Subversion 1.8 working copies, you can checkout the project using IDEA built-in Subversion client to get the compatible working copy.

Categories : Java

Javaee in intellij idea IDE
You can download JSTL 1.1 here and JSTL 1.2 here. and add to project. And add taglib lib to project from here;

Categories : Java

about Intellij IDEA with clearcase
From what I can see, CCRC isn't yet supported by IntelliJ IDEA: the plugin search returns no result the IDEABKL-5983 request for support is still open The ClearCase integration is for the full ClearCase only, not the web-based CCRC.

Categories : Intellij Idea

IntelliJ IDEA and specifying GIT refspecs
Git Push from IDEA pushes only the current branch, and I don't think it will change in future. However, you may specify the target branch in the text field below the commits to be pushed. There is a couple of problems with usability like IDEA-98693, but hopefully they will be fixed in the next version.

Categories : GIT

IntelliJ IDEA 12 versus sbt 0.13
I believe that SBT jar is located inside your configuration directory. Usually it is something like ~/.IntelliJIdea12, so simple search in this directory gave ~/.IntelliJIdea12/system/sbt/sbt-launch.jar. Try replacing it. BTW, there is currently a new official SBT plugin being developed by JetBrains. It really is great and simplified SBT usage inside IDEA a lot (esp. dependency management), but it does not have embedded console yet (it will, soon). You can try it out even in 12.X IDEA.

Categories : Scala

Can't run Tomcat from Intellij Idea
The problem is that the layout is as they call "non-standard" The problem has been marked as solved here: IntelliJ needs to copy tomcat conf dir to project directory Note that Tomcat installed using the package manager on some Linux systems has non-standard layout and permissions, and therefore will not work with IDEA.

Categories : Tomcat

Using Yeoman from Intellij (Idea 12)
I just came across this for a different project. I fixed it by opening the executing .js file (/usr/local/lib/node_modules/[project_name]/bin/[executing.js]) in vim and using the following command :set ff=unix

Categories : Intellij Idea

Sbt's gen-idea always creates two IntelliJ projects
Yes this is normal, this is the default behavior. You can change it by excluding some folders (see the doc available here : https://github.com/mpeltonen/sbt-idea at Exclude some folders) So what is the difference between .idea and .idea_modules? .idea_module generates an IDEA module while .idea generates an IDEA project. In short a project can be multi-module or single-module and also contains IntelliJ libraries. In longer version from the doc (http://confluence.jetbrains.com/display/IDEADEV/Structure+of+IntelliJ+IDEA+Project) Project In IntelliJ IDEA, a project encapsulates all your source code, libraries, build instructions into a single organizational unit. Everything you do in IntelliJ IDEA, is done within the context of a project. A project defines some collections refe

Categories : Scala

Intellij IDEA SQL autocomplete quotes
Try to run the your code. If still there is a error some thing wrong with your code. else hit Alt+Enter and disable Inspection will solve that syntax problem. this is not a actual error. No need to put single quotation for table name.. that will be the issue.

Categories : Java

How can I clone a whole project in IntelliJ Idea?
Using your operating system File Explorer tool, just copy and paste the entire project directory somewhere new. All of the configuration should use relative paths by default. If your IDEA project is .ipr based, then delete the new .iws file before opening the project. If your IDEA project is .idea directory based, then delete the workspace.xml file before opening the project.

Categories : Intellij Idea

Intellij idea quick defenition
You can edit the idea.properties found in the bin folder of IntelliJ application and add this line: auto.show.quick.doc=true The This will give you the JavaDoc when hovering over a variable:

Categories : Intellij Idea

Intellij Idea lib folder export
Problem is by default android modulle looks for the reference libraries under the lib folder of the particular module itself. I resolved this by changing Native libs directory from the module lib to the root lib. It works fine now. Attached the screenshot for reference

Categories : Java

Intellij IDEA - Generate (Alt + Insert)
IntelliJ doesn't have a facility to allow getters/setters to be generated at the bottom of the class. You would have to place your cursor at the bottom of the class file (or wherever you wanted it) before generating getters and setters.

Categories : Intellij Idea

Java Vaadin IntelliJ Idea
Try including the JAR via Project Structure settings ( tab Libraries ). If that doesn't help you try checking this step by step guide how to set up Vaadin with IDEA: 1) Download the Vaadin JAR 2) If not already done, install a Tomcat server 3) Start IntelliJ and create new project from scratch ( all steps below are performed with IntelliJ 9 ) 4) Type of project is Java Module and as desired technology you select Web Application. This will create the web folder, including the WEB-INF dir and a web.xml file 5) Create a web/WEB-INF/lib folder and place the Vaadin JAR into that folder 6) Goto Project Structure | Modules and let your module depend on the Vaadin JAR. Mark it as export 7) Create a HelloWorld class and adjust your web.xml file, as described in the

Categories : Java

IntelliJ IDEA logcat navigation
I guess that's not possible in IntelliJ but you can apply existing filter or create new filters and switch between them easily. This should give you a start

Categories : Java

Configuring SVN branches in IntelliJ IDEA 12
Yes, you just need to configure multiple branch locations. In the Configure Subversion Branches dialog set values as follows: Trunk location: /svn.local/some/path/PROJECT/trunk Branch locations: /svn.local/some/path/PROJECT/branches /svn.local/some/path/PROJECT/branches/dev Now when you select a branch (for example, in the Update Project dialog) you should have the following options: trunk (trunk) branches... dev... Select branches.. and this should give you this list: test prod dev Now you can select either of your test or prod branches, which is what you want. Of course, dev really shouldn't be in this list, but since you've got branches nested in a subfolder of the branches folder, intellij thinks dev is also a branch here. However, selecting dev... from the previous step

Categories : Svn

Where to add compiler options like -ea in IntelliJ IDEA?
The -ea option to enable assertions is passed to the JVM not to the compiler. Add it as a VM option for your runtime configuration. From comments: specific location at Menu "Run" --> Edit Configurations... --> Configuration -->VM Options

Categories : Java

IntelliJ IDEA does not create artifacts from pom.xml
Go to the Maven-Projects-View and click "package" for your aggregator project. IntelliJ will then run Maven which creates all artifacts in the target folder. If you run "install", these artifacts will be copied to the local repository. Maybe you didn't do that under Linux yet, so your repository is empty - under Windows, I suppose that IntelliJ was smart enough to refer to those artifacts while importing the project. I personally do not know of any feature in IntelliJ that would automatically package/install all projects on reimport - I'd consider this rather annyoing.

Categories : Maven

How to get the features of Web Essentials in Intellij IDEA
There is Quirks mode inspection that you can enable in Settings | Inspections, it will cover the bottom 2 features. Unfortunately, the first 2 features are not implemented yet: http://youtrack.jetbrains.com/issue/WEB-4698 http://youtrack.jetbrains.com/issue/WEB-6359

Categories : CSS

How debug signed app with intellij idea?
I found solution: Create signed APK Load APK to device Install APK Run App Without uninstall app run project in debug mode from IDE Profit!

Categories : Android

IntelliJ IDEA validates toward wrong XSD
If you open up the jar file that the schemaLocation should point to the xsd according to this screen shot: Then you'll see that IntelliJ has a bunch of xsd files for different versions of Spring: This means that you really have all the schemas you need. If your bean definitions file has problems then your schemaLocation must point to the wrong version in the Spring jar file: Check the Settings | Schemas and DTDs and verify that you haven't accidentally manually set it to point to the wrong xsd file: If it is wrong then you'll have to remove that line using the minus sign. This will cause IntelliJ to go back to it's default values: After that you should be seeing the same thing as in the first screen shot.

Categories : Java

Can not execute Xpath with Intellij Idea
Firstly, the param-value element is in a namespace, but your XPath expression is looking for it in no namespace. Typically you want an expression such as //j:param-value where the prefix j is bound to the namespace http://java.sun.com/xml/ns/j2ee - you'll have to check the IntelliJ documentation to see how to do that. Secondly, your param-value elements do not have a child element called email. If you want the value of the associated param-name element to be "email", that would be //j:context-param[j:param-name='email']/j:param-value

Categories : Java

IntelliJ IDEA - multiple carets?
I think "Column Selection Mode" could help you. You can enable it in the context menu in the editor. Then you can select multiple lines and type same text at once. Here is tutorial how it works.

Categories : Intellij Idea

Intellij generated Ant Build File, doesn't build jar
I was able to figure it out. I had to go to open the Project Settings (F4) and then went to Artifacts. That allowed me to set the settings to create the jar when I ran "ant -f buildfile.xml"

Categories : Java

Intellij IDEA, run Javascript code right in the editor
If the browser is not important, you could use the node.js plugin as a javascript repl / debugger. Keep in mind that it will not provide an HTML DOM so if your code makes jQuery calls, it will not run out of the box. Otherwise, if it's just plain javascript, it will run just fine.

Categories : Javascript

Error in intelliJ IDEA Hello World program
Your package is main.java, you pass the argument com.intellij.rt.execution.application.AppMain java.start, and you exception says that that can not found java.start. And this is correct. Try to compile it using only console. Leave the IDE for the beginning, invest you time to understand the compiler not how the IDE works.

Categories : Java

Debugging a grails application with intellij IDEA 12.1.4
This could be being caused by forked tomcat execution settings in your BuildConfig.groovy file. I think what happens is that Intellij gets confused about which Java process to attach to when Grails spins up. You could try disabling execution forking by replacing the grails.project.fork settings with: grails.project.fork = [ test: false, run: false, war: false, console: false ]

Categories : Debugging

How to use a different code style for a module in IntelliJ IDEA?
It's not possible right now, vote for this feature request. Note that it's planned for IDEA 13 that will be released in Q4 2013.

Categories : Intellij Idea

Three maven related problems for Intellij IDEA
2) Ctrl-Alt-M (extract managed dependency) does the job for you. 3) You have to go to Settings->File Types and add '.iml;.idea;.iws;.ipr;' to ignored files and folders (at the bottom)

Categories : Maven

What is Project Language level in IntelliJ IDEA?
As per the documentation within section Exploring the General Project Settings at the IntelliJ Wiki, the project language level impacts the intellisense provided by the IDE. It also dictates the behavior of the compiler being used by IntelliJ when it compiles your Java code as you develop. This setting tells all the facilities of the compiler that would be available for the project. For e.g. setting the language level to JDK 5 will allow the IntelliJ to recognize keywords such as enum that are present within the source code.

Categories : Java

intellij idea module default "user.dir"
Create a Run/Debug configuration for your Main class (the easiest way is to right-click on it and choose Save 'MyClass.main()'). Now, find your configuration (named after your class) on the main toolbar dropdown and choose Edit Configurations For VM options, put -Duser.dir=whatever Alternatively, setting Working directory might be able to help you.

Categories : Eclipse

Intellij-IDEA: How to sort members alphabetically?
Create separate rows for the different method visibilities in the Arrangement part of the Code Style.

Categories : Intellij Idea

Unable to find SBT plugin for IntelliJ Idea 12
The plugin is not in the default repository, but only in nightlies. Have you followed this (from the blog you link to): Add the following URL to the list of custom plugin repositories in Settings | Plugins | Browse Repositories | Manage Repositories: http://download.jetbrains.com/scala/sbt-nightly-leda.xml It worked for me, after I added this repository I found the plugin.

Categories : Scala

Intellij Idea null pointer exception
This problem is due to missing appBase directory in tomcat server.xml. In server.xml, <Host appBase="/path/to/valide/dir/webapps" autoDeploy="false" name="localhost" unpackWARs="true" xmlNamespaceAware="false" xmlValidation="false"> appBase attribute must be valid directory. It can be absolute path or relative path to CATALINA_HOME There is an issue for this as @Stefan Beike specified above; https://issues.apache.org/bugzilla/show_bug.cgi?id=51654 Also you can see documentation for Host config here

Categories : Java

Why do I fail to debug a nodejs app in Intellij IDEA 11?
I've been noticing that IntelliJ's node.js debugger kinda sucks. It's death by 1000 cuts. I love IntelliJ to death, its such a nice IDE. But for node, the debugger has a million different scenarios where breakpoints don't work properly, and another million where it doesn't properly give you access to the in-scope variable values, and another million where it doesn't step properly... I'm gonna hafta try looking for another tool.. UPDATE 2014-01-13: I've been using IntelliJ's debugger for a while now (having found no other good tool). It seems some of the problems with it are problems with node or v8 itself. Most of the problems I was having have either actually been solved by newer versions of IntelliJ, or by using this workaround: 1. create a file called proxyDebug.js 2. put the follow

Categories : Javascript

Import and run a Phonegap 3.0 project with Intellij IDEA 12/13?
We don't need to modify manually the code under %my_project_root%/platforms/* but only under the %my_project_root%/www/* and %my_project_root%/merges/* After running phonegap build android it automatically replaces platform specified code. I found solution for me the next way: After importing source code to IDEA, I added new web module which points to the %my_project_root% to be able to see all needed directories. Also I created new IDEA command line tool with alias phonegap and tool path /usr/local/share/npm/bin/phonegap. So before running default android running configuration I run phonegap build android just directly from IDEA (I think it's more convenient) and then run usual android run command to deploy the app to emulator or real device. I hope this stuff will help you.

Categories : Android

IntelliJ IDEA 12 and Android, debug signed apk
The docs say An unsigned package can be extracted only through an Android artifact definition with the Debug or Release unsigned package mode specified. So unless someone else knows a custom hack I think this is the way to go

Categories : Android

How to create maven web application using intellij IDEA 12?
idea simply is a web application. you can use web archetype and regular maven dependencies mechanism check this tutorial http://wiki.jetbrains.net/intellij/Creating_and_importing_Maven_projects

Categories : Java



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.