I have project with many apps. On each app have many gulp tasks. Tasks are grouped by meaning. In the end, there is a large list of tasks. It would be very convenient if all these tasks can be grouped.
Grouping gulp tasks
Any way to backup my projects?
I have several projects that I want to be backed up on maybe a flash drive so incase something happens, I have it. I know you can copy the project but is there a way to do that and copy the project settings with it too? Everytime I I put a copy of a project on my computer it doesn't have the project settings that come with it. Its annoying setting it up over and over again.
How to add module compile output to web-inf/classes in stead of web-inf/lib?
I'm using maven to set up a war project in IntelliJ
and run in it GlassFish
. The war project depends on several other modules. When I run the project in debug mode, hot deploying codechanges of the changes results in NoClassDefFound
exceptions. I found out that IntelliJ
tries to redeploy the module jar but GlassFish
keeps a lock on it so it fails. All the classes in that module are now unavailable, causing these NoClassDefFound
exceptions.
IntelliJ
generates the artifacts this way: the dependent modules are all added as jar dependencies as if they were external dependencies:
Now, when I remove the jar dependencies, IntelliJ
tells me it found some missing dependencies and proposes a fix to add the missing dependencies.
Fixing those dependencies will add the module compile output to the WEB-INF\classes
folder.
Once deployed, IntelliJ
has no problem anymore hot-deploying changed classes to GlassFish since there's no jar to keep a lock on.
Problem
Every time I make a change to any pom.xml
, IntelliJ
refreshes the artifacts automatically, which is fine: I definitely want to see those changes appear in the artifact. However, all modules are added as jar
dependencies again.
Question
How can I make sure that IntelliJ adds the compile output of project modules to WEB-INF\classes
and not to WEB-INF\lib
? (or: is there another way to avoid thoseNoClassDefFound
errors?
I found this question but it has two problems:
- There are many module dependencies so if possible I'd like to avoid specifying them all one by one in the unpack goal
IntelliJ
seems to ignore this. When I add that configuration and while it works perfectly in a maven commandline build,IntelliJ
still refuses to add the module compile output to theWEB-INF\classes
dir
I found a bugreport that asks about the same thing but for me it's hard to believe there's no way to solve this problem. Other webapp developers using IntelliJ
must have this same issue, making it difficult to hot-deploy code changes, unless I did something wrong in my pom
configuration.
Eclipse Visual Editor Swing components to IntelliJ
Hey there,
I am trying to get my Eclipse(Helios) SWING applications running in IntelliJ.
Is there any way to convert the visual classes to the IntelliJ format
or do I have to create everything from scratch ?
Tiny feature suggestion: Close other editor tabs with Alt+MiddleClick
Hello,
The title says it all, but if you'd like some context or blah-blah-blah, here you go.
I'm a new (4 days old) user of IntelliJ IDEA Community Edition (14.1.4) which I find really great, mostly for killer refactoring/analysis features and the effective/beautiful UI.
I use Eclipse heavily for both professional and personnal development and I think I will just leave Eclipse behind.
What I really like about a GUI in general is when I feel that care has been taken to save screen real estate.
As I was fiddling with editor tabs settings I had the following reasoning:
- I want to save screen real estate so I'll stick with horizontal tabs arrangement (many open tabs are confusing anyway).
- Hence I will reduce the width of each tab by removing file extension and close button.
I'm pretty happy with this setup but you know how users are...
I like to close other tabs using Alt+Click on the close button of the tab I want to keep.
But having disabled the close button I have to right click and use the context menu.
This I not too bad but I think using Alt+MiddleClick to close other tabs would be:
- consistent with Alt+Click on the close button
- consistent with MiddleClick (which closes a tab)
- consistent with the coolness of the UI !
FYI I browsed through IntelliJ forums and built from git HEAD but did not find this request or feature.
Regards, and cheers to devs for making such a nice IDE.
Intentions - split declaration and initialization
Granted, my Java knowledge is very rusty these and thank goodness for IDEA to help me get up to speed again rapidly before I start teaching a Data Structures course with it.
I've disable a few lightbulb suggestions in the past but I'm baffled by the suggestion that I should split a declaration and initialization into two parts.
In my experience, when possible, one should not only declare variables as close to where they will be used but also to make sure that if possible, they should never be uninitialized (even if Java's default is what one wants, which is mostly NOT the case).
So I don't understand why this particular suggestion is being made. It seems like very bad advice, particularly for new programmers.''
What's the thinking?
Thanks,
D
How do I override project javascript settings?
I pulled a sailsjs project from git and make a intellij project over the source files. It decided that my js code should use 2 spaces as tab. I want it to used a 4 spaced tab character.
I tried changing the scheme to my custom one, copying the cutom scheme over project, and using the custom scheme directly. For some reason, the sample code always shows 2 spaces as tab.
How can I change it?
Has anybody figured out to make ruby language level actually work reliably
I've been having problems getting idea to use ruby language level 2.x for over year. In some projects it works, in others it does not. In all my projects I am using a ruby jdk with language level 2.x. But in some of the projects idea just not care. The docs show setting the ruby language level in the settings langauges/frameworks, but ruby does not appear there.
I have (if I recall) been able to create a project from scratch and get the language level to take, but never when importing a directory into a project.
Is there some magic incarnation that can make an existing project use the specified language level?
Weblogic server in clustering
Hi,
I cannot understand why we should choose a managed server in the configuration of oracle weblogic server in clustering mode.
While inOracle's definition,multiple application components are"clustered" by deploying them on multiple server instances in the cluster. So weshouldchoose theclusterand not aparticular server. O.O'?
Remote tomcat on frame deactivation Update resources
Hi,
I'm wondering why the option 'Update resources' isn't available for 'on frame deactivation' like it is for local tomcat servers. How can I achieve the same result? Hot swapping classes works but when i change a jsp file i have to redeploy my application to see the result. This takes a lot of time and hurts my productivity.
Am I forgetting something, there has to be a way to automatically update (static) resources when they are changed.
Thanks, Edwin
Spring with 14.1.4 Could not Autowire Test
Someting happened when I recently upgraded from 14 to 14.1.4.
I have a base unit test class that is defined like this:
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(
classes = {
WorkerTestConfiguration.class,
DatabaseTestConfiguration.class,
MockMailConfiguration.class,
LayerTestConfiguration.class}
)
@ActiveProfiles("test")
public abstract class AbstractWorkerTest extends Test { ... }
If I have any @Inject statements in the above class they look fine in intellij. However, any tests that inherit from this class that have @Inject statements are highlighted as errors with the message "Could not autowire". The tests run fine, I just would like to get rid of this error WITHOUT disabling the inspection.
Also note that this error does not show up in any of my production classes in this package, only the tests classes that inherit from AbstractWorkerTest.
Any ideas? This was not previously the case.
R.
Gradle plugin not using newest dependency in transitive dependencies
Hi,
I am using IntelliJ 14.1.4 and I am using the gradle plugin for dependency management. I noticed that if there are conflicting versions of a dependency, intelliJ does not select the newest version. It picks the version that was build first. I know this is not a gradle issue, because if I run the project from the command line gradle picks the correct version of the jar. How can I configure IntelliJ to pick the newest version of conflicting dependencies ?
Thanks.
Where does IntelliJ pick the image for the artificats for JavaFX application
Where can I place native bundle image for a JavaFX application whose artifact is built using IntelliJ Idea.
I have tried placing the image in the following locations for DMG, without any success :
1. JavaFX Project - <Project-Name>.icns
2. JavaFX Project - src - <Project-Name>.icns
3. JavaFX Project - package - macosx - <Project-Name>.icns
4. JavaFX Project - src - package - macosx - <Project-Name>.icns
Can you please tell me the default location where IntelliJ Idea looks before bundling the application?
Maven Projects Tool Window is not available
I have been using Maven in my projects for several years, but since this morning I no longer have access to the built-in Maven utilities. The Maven-related options are no longer present under my Tool Buttons, I can no longer see the option to enable Maven Projects from my Tool Windows, ... It seems as if everything related to Maven has been removed from my installation. I already tried to reinstall IntelliJ, but the problem still remains.
Are there any other actions that I can take to resolve this issue?
I am working with IntelliJ 14.1.4 on Windows 7-64bit.
error while starting gwt debugger
Hi,
While starting gwt debugger, I'm getting following error:
00:12:37.499 [WARN] Server class 'javax.el.BeanELResolver' could not be found in the web app, but was found on the system classpath
00:12:37.507 [WARN] Server class 'com.google.gwt.dev.shell.jetty.JDBCUnloader' could not be found in the web app, but was found on the system classpath
login page is opening but I cant login to the ui. Though while running locally, ui login is happening.
Any idea why I'm getting this error?
Thanks
with two debugging sessions, each with multiple threads, should I be able to debug one (non-main) thread doing an accept() and another a connect() ?
I have two debugging sessions, each with multiple threads, in the same IDE .
Session #1's main Thread #0 does a connect() ( java.net.PlainSocketImpl.connectToAddress(InetAddress address, int port, int timeout) )
while a non-main Thread #3 of Session #2 , marked as a Daemon (detached) thread, is doing an accept() ( via poll() and select() ) , on a
socket bound to the address that Session#1's main thread is trying to connect() to .
But even though I have set a breakpoint just after the poll() in Session #2 , at the line marked with an asterisk in
sun/nio/ch/ePollArrayWrapper.class (decompiled source) :
int poll(long var1) throws IOException {
this.updateRegistrations();
this.updated = this.epollWait(this.pollArrayAddress, NUM_EPOLLEVENTS, var1, this.epfd);
* for(int var3 = 0; var3 < this.updated; ++var3) {
if(this.getDescriptor(var3) == this.incomingInterruptFD) {
and I step into Session#1's main thread, and see the doConnect() succeeds, and the 'netstat -nautp' command output shows that
Session#1 process has gained a new connection to the address on which Session#2's Thread #3 listens, and that Session#2's process
has gained a new connected socket to Session#1's socket address, the breakpoint is never reached , and both sessions just hang forever .
Is this scenario meant to work or not ?
Is there something I need to do to switch debugging focus from Session#2 Main Thread to its Thread #3 ? I can't seem to find any way of doing this.
Air Native Extension ANE packing for iOS app
Hi Im attemptingto use an ANE in my iOS air app. I have followed the instructions here regarding adding the ANE file to my build dependencies: https://confluence.jetbrains.com/display/IntelliJIDEA/Dependencies+Management+(Build+Path)#DependenciesManagement%28BuildPath%29-step3
The app compiles, but then throwing a 'Class could not be found' error when trying to use the ANE
I tried adding the ane to the iOS 'files and folders' to include within the project settings to no avail also.
The extension im attempting to use is https://github.com/myflashlab/videoPlayer-ANE, it states there should be no need to add the extensionID to the air manifest file.
So is there something I'm missing regarding adding the ANE to the build configuration/packaging?
See build settings screenshots attached
Appreciate the help
J
Scratch windows shortcuts?
Hi,
In a Java class I can type sout followed by <TAB> as a shortcut for System.out.println().
How can I enable this behavior for a scratch window?
Thanks!
sbt run task missing provided libraries
I add a provided library to my project, such as spark.
"org.apache.spark" %% "spark-streaming" % sparkVersion % "provided",
It works fine when I make the project.
But when I run some scala program depends on spark-streaming lib, it gives me following error message:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/spark/streaming/StreamingContext
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2444)
at java.lang.Class.getMethod0(Class.java:2687)
at java.lang.Class.getMethod(Class.java:1620)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:125)
Caused by: java.lang.ClassNotFoundException: org.apache.spark.streaming.StreamingContext
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
... 5 more
I tried to change this dependency to
"org.apache.spark" %% "spark-streaming" % sparkVersion,
It works.
It seems that sbt plugin does not support provided libbrary in Run task ?
My env:
IDEA 14 community edition with Scala plugin.
Thanks!
java compiler remove classes when compiling a few selected java files
I chose a few java files or a package in the left side project explorer and compile (using CRTL+ALT+F9 for instance) . the java files are compiled. But when I run the web container, it compains java class def not found error for some totally unrelated classes which was available before the compilation. I noticed some other classes are removed by the compile process.
Can somebody explain what's going on?
This is intelliJ 14