Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all 5661 articles
Browse latest View live

Descriptor for Adobe AIR Mobile App Gets Deleted by IntelliJ when Compiling!?

$
0
0

Hello. I am using IntelliJ IDEA for a flash mobile application built on starling. Everything was just fine, but then I pulled the latest code on a different computer. I had done this before, and everything worked fine, but now every time I make the project the descriptor xml disappears! what the hell?? I begin by ensuring the xml file is in the correct spot and looks fine. Then I hit "Make", "Debug", or "run'. I can see the xml file disappearing in the project window! Then Intellij spits out this error:

 

Error:[HeadExploderIntelliJ]: AIR descriptor file not found:

/PATH/HeadExploder-app.xml

 

I keep reverting back to when the xml file was not deleted, but it doesn't help. I also tried to hit the "Create" button and generate an xml, but intellij delete that too. god, this is awful! Does anyone know what the heck is happening and how I can get my starling project to compile again?

 

Thanks,

AS


Error during EJB.ear artifact deployment to Glassfish 3.1.2 Application Server from within IntelliJ Idea 14

$
0
0

I am getting this error during EJB.ear artifact deployment to  Glassfish 3.1.2 Application Server from within IntelliJ Idea 14.0.3

 

 

Connected to server
[2015-09-04 10:13:21,527] Artifact MyAppEar:ear: Error during artifact deployment. See server log for details.
[2015-09-04 10:13:21,528] Artifact MyAppEar:ear: java.io.IOException: com.sun.enterprise.admin.remote.RemoteFailureException: Error occurred during deployment: Exception while deploying the app [MyAppEar] : Invalid ejb jar [MyAppEjb-3.2.0.jar]: it contains zero ejb.
Note:
1. A valid ejb jar requires at least one session, entity (1.x/2.x style), or message-driven bean.
2. EJB3+ entity beans (@Entity) are POJOs and please package them as library jar.
3. If the jar file contains valid EJBs which are annotated with EJB component level annotations (@Stateless, @Stateful, @MessageDriven, @Singleton), please check server.log to see whether the annotations were processed properly.. Please see server.log for more details.

 

The order of deployment also matters as it is MyAppEar.ear and then other 2 wars dependent on it.

 

I am able to deploy the EJB.ear, and the other war files successfully externally via Glassfish Admin console.

 

I have to check the compatibility check-box while deployment from Glassfish Admin console.

 

See attached screenshot below and then it installs successfully.

 

Capture.JPG

 

How to achieve this same compatibility check for EAR deployment from within IntelliJ Idea ?

 

Please help!

Problem with Spring exception in Intellij editor

$
0
0

Hi,

 

I am a complete newbie to IntelliJ attempting to make a switch from Eclipse.

 

I created a basic Spring project to get started. I am stuck at a point where IntelliJ is reporting an unhandled exception during Spring context creation even though I have attached a throws clause to the method:

 

SpringContextError.png

 

I also tried surroung the block with a try-catch but same problem persists. I am on version 14.1.4. Is this a known problem with IntelliJ or is there some kind of Intellij knowledge gap here?

 

Thanks.

Debug tool window setting: All / Auto Variables Mode

$
0
0

In the Debug tool windowsettings, what exactly is the difference between "All-Variables Mode" & "Auto-Variables Mode"?

 

Also, when the Debug tool windowsettings menu shows "All-Variables Mode", does that mean that "All-Variables Mode" is enabled, or that, by clicking on it, you switch to "All-Variables Mode"?

 

e.g., "Stop watching method return values" means that you currently are watching method return values, and that, by clicking on it, you will no longer watch method return values.

Using SBT plugins with 14.1 Community Edition

$
0
0

Hi!

 

I transitioned from Eclipse for Scala/SBT/Github development and I am estatic! I will probably never go back.

 

I need to use certain SBT plugins from the SBT console, in particular the sbt-assembly plugin. I have set them up properly and they work from a terminal window. However, I am wondering if it is possible to make the SBT console in Idea work with them. I haven't been able to at this point.

 

If anyone could point me to the right place for this, I would be grateful.

 

Thanks,

Hadil G. Sabbagh, Ph. D.

SSH connection fails with error: java.security.InvalidAlgorithmParameterException

$
0
0

Hello,

 

I'm using IntelliJ IDEA 14.1.4 Buid #IU-141.1532, running on a Debian 8 (LMDE 2) platform.

When trying to set up a remote PHP interpreter using Settings > Languages and Frameworks > PHP > Interpreters, I always get the following error, although all connections are verified to work:

 

Session.connect: java.security.InvalidAlgorithmParameterException: Prime size must be multiple of 64, and can only range from 512 to 1024 (inclusive)

 

The same applies when trying to establish a new SFTP remote host connection, pretty much anything involving a remote ssh connection seems affected.

 

I've read the following thread that seems to acknowledge the problem in PHPStorm/WebStorm:

https://devnet.jetbrains.com/message/5541806

 

The recommended solution is to use the EAP version of PHPStorm, what's the situation regarding IntelliJ IDEA?

 

What is surprising is that "old" configurations, that were created on my previous Debian 7 (LMDE 1) platform, are perfectly functionnal. Could anyone shed some light on the underlying reasons of the problem, as my understanding of the origins of this situation is pretty blurred ?


Not to say a working solution, or even a temporary workaround, would be more than welcome.

 

Thanks.

Useless Error When Packaging Adobe AIR Application

$
0
0

I have been trying to build and adobe air android application. Everything was fine (except for a few other wonky bugs in intellij) until this happened. Out of nowhere when I try to test on android device it says this error right after creating the application. This "error" that seems like just a dialog popup actally prevents the app from running. I am starting to think intellij is not really a good program after all, especially the mac version.

 

Screen Shot 2015-09-05 at 1.11.08 PM.png

 

 

Anyway, does anyone now why this is happening and how to fix it?

 

thanks.

Is there complete 'autosave disable' in IntelliJ (Android Studio)?

$
0
0

I would have sworn that last year when I was doing trial use of Android Studio, that it was

ASKING me about each file-tab that had unsaved changes (before it would go off and

do a build, etc.

 

But, now the best I can configure is so i will show an asterisk on modified tabs.

But, it still auto-saves changes (without asking/telling me).

 

[Jeez...do I even need to try to convince anyone that this really NEEDS to be

one choice of a configurable behavior?]

 

So, am I just missing HOW to get this behavior (my first guess was that maybe

Google only changed the DEFAULT setups, when they shipped their official

version 1.x, and that I'd be able to re-configure to what I had before.)

 

I've read the manuals and played with the buttons that googling this issue mentions,

but I still don't see anyway to get rid of auto-save before building...ask-me-instead.

 

[ I hope I've just not understood what diff between 'synchronize' and other phrasing

of what the various config-options mean with their terminology. ]

 

So...what's the scoop?

 

[If this is not possible, this would be grounds bailing out of IntelliJ/AndroidStudio

and going back to Eclipse or whatever.  Please say it isn't so.]


aewfwqft

Actionscript files and folders to package not working.

$
0
0

Hi,

 

I'm using the 30 day edition to evaluate IDEA to use as the new IDE for my Actionscript games. I'm coming from Flash Builder - where all projects etc. are working, checked that.

 

I've added libraries okay to a rather complex project I've imported from FB4.7 and they seem to be found and working.

 

Where I'm having trouble is with packaging files and folders.

 

For example, in the Project Structure/Modules/Android screen I've added a folder called 'D:\Users\Gray\Documents\flash\BrainTeaserShapePuzzle\assets\textures' with a relative file in package of 'textures'. In the compiler options I've got 'Copy resource files to output folder' checked with 'all except *.as and *.mxml' selected. Yet when I build the project no /textures folder appears in my output folder (called 'out').

 

This appears to be the only thing stopping my project from working when I run it on the emulator. Interestingly when run on an actual device this folder *is* being created and the textures are loaded by the app as I'd expect.

 

Could really do with some help with this as it's already taken up several hours and I seem to be getting nowhere. Thanks in advance.

Naming convention for IntelliJ project & module names?

$
0
0

A simple question:

 

Is there any recommended naming convention for the names of IntelliJ projects and their modules?

For example, is "my-project" preferred over "my_project" for project or module names?

 

Thanks.

Import a project using command line

$
0
0

I have manually created gradle project for some reasons and I want to import it to android studio. Is there a way to do this using command line? I am posting here to get some idea as android studio is powered by intellij.

Generate toString with parent member variables?

$
0
0

Maybe I am missing something obvious, but I can't seem to make toString generation include parent member variables.

 

For instance for with the following to classes Foo and Bar, the Intellij IDE generates Bar.toString() which includes b but not a.  How do I fix this?

 

public class Foo {
    private String a;

    public String getA() {
        return a;
    }

    public void setA(String a) {
        this.a = a;
    }
}

public class Barextends Foo {
    private String b;

    public String getB() {
        return b;
    }

    public void setB(String b) {
        this.b = b;
    }

    @Override
    public String toString() {
        return "Bar{" +
                "b='" + b + '\'' +
                '}';
    }
}

RemoteMavenServer using 20-30% cpu constantly

$
0
0

Hi.... I  have noticed something while using Idea 14.1.4 CE.  There is a java process running the class RemoteMavenServer that is using between 20-30% cpu (on my MacBook Pro) all the time.  I have one project opened in Intellij that is using maven... but it is not the active window.  The project builds fine.

 

Is there any way to see what the RemoteMavenServer is doing?   I check the Idea14 Logs but found nothing.  I have removed my local maven repository in order to reduce the size in case it was indexing.  Basically it is now a clean maven repository.

 

 

Any help will be appreciated!

tjhaz

Add final modifier upon reformatting

$
0
0

I'm surprised Code Style has no option to add the 'final' modifier upon formatting (ctrl+alt+L). I just see it for generated code but not for already existing code.

There are two plugins available but neither of them works.

 

Inspections > 'Field may be final' and 'Local variable or parameter can be final' are not as handy as just have it formatted like the other Code Style options.

 

Could you please add this as a feature in an upcoming version of IntelliJ? Eclipse has this already implemented for ages I think. 

 

Thank you very much and best regards


Code coverage with JaCoCo appears not to show lines as partially covered?

$
0
0

Hi!

 

When I run code coverage with the JaCoCo engine, I think I get partially covered lines (like if statements) displayed as fully covered. When I run the same test on our CI server, SONAR (using JaCoCo) flags them correctly as partially covered.

Has anyone else experienced the same issue?

 

Kind regards,

Christian

How to copy lines from an effective POM?

Problem running node with maven inside IntelliJ

$
0
0

Hi all,

 

I have a problem with my project. I have a pom.xml that runs some node.js task (grunt, bower). I have Ubuntu instaled in my laptop, and I instaled node.js via nvm. When I  maven clean install from the console everything runs ok, but when I do the same inside IntelliJ, I get the following error: "/usr/bin/env: node : File or directory does not exist". I also installed node.js plugin in IntelliJ, but sitll getting same error.

 

Any help?

 

Thank you in andvance for your comments.

Regards,

 

Dani,

How to set environment variables for test config?

$
0
0

In IDEA 14.1.4 running on CentOS 7, I have set an environment variable in a test run config:

 

IDEA_Test_RunConfig.png

 

But it seems the variable isn't being passed into the environment the test is running under. This is easily demonstrated with the following test:

 

package demo

import spock.lang.Specification

class ReadEnvVarSpec extends Specification {

    void "when I read environment variables those set in IDEA run configuration should be available"() {
        given:
            // test run configuration in IDEA has env var 'FOO' set to 'BAR' (without quotes)

            // Dump them all out for manual verification of issue
            System.getenv().sort().each {k,v -> println "$k = $v"}
        when:
            String result = System.getenv('FOO')
        then:
            result == 'BAR'
    }
}

 

This test fails and the environment variables I printed out do not include FOO.  If I run the same test from the command line after doing an export FOO=BAR, the test passes. So clearly, whatever environment IDEA is putting the FOO variable into isn't the environment seen by the test.

 

I'm sure there's something I didn't configure properly, but I'm not sure what it is.

 

Any help is appreciated.

 

--

jack

How to close tasks in Android Studio

$
0
0

I am having problems getting the tasks feature in Android Studio to work. I connected to our Redmine Server and switching to new tasks works very well.

However, when I select 'Close Active Task' I get a menu where 'Commit  changes' is selected and greyed out/not editable. When I click OK  nothing happens. Is there something additional to properly close the  task and commit?

Viewing all 5661 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>