Quantcast
Channel: JetBrains Developer Community : All Content - IntelliJ IDEA Users
Viewing all 5481 articles
Browse latest View live

Finding project files under webapp folder fails and look wrong(intellij idea 12)

$
0
0

Good evening!

I often use ctrl+[shift]+n to navigate in project. But now after using and test Intellij Idea 12, i find issue(in 11.1.4 all seems ok). Before submit into issue tracker, ask advice.

I checkout multi module maven project, and when try to find file under webapp dir(such as webapp/js/*.js or **/*.jsp) a get something like this:

finding file.png

As you can see it looks like maven-surefire-plugin. Yeah, we use this plugin, but what connection it has with webapp files?

also when use ctrl+space, get the same message.

ctrl_space.png

Ok, i work with this, but  its annoying, cause results not seems first and shown last. Also i can't use some refactor methods, like extract to method and etc, hit says that this file is a part of sdk or library(wtf?).

I try to find settings, project properies, but i cant find anything, where i can disable this, and say to idea about this files.

Thank you for help and advice


i have error "exit code is 1" what happen?

$
0
0

im use win 7 64bit, my editor is intellij idea 3

 

i get log like this:

 

Information: 1 error

 

Information: 0 warnings

 

Information: java.lang.ClassNotFoundException: -verbose

 

Information:     at java.lang.Class.forName0(Native Method)

 

Information:     at java.lang.Class.forName(Class.java:140)

 

Information:     at com.intellij.rt.compiler.JavacRunner.main(JavacRunner.java:24)

 

Information: Exception in thread "main"

 

Error:  line (0) The compiler did not terminate normally. Exit code is 1

 

what i must to do for fix it,

 

nead help

Build 123.45 keeps shutting down, says eval. expired

$
0
0

Just downloaded the latest release which installs and starts fine, it tells me the evaluation is good until Dec. 30th then shutsdown 5 minutes later saying the evaluation expired? I had plenty of time left on the previous build as well.

 

If this is broken can someone provide a link to the previous version, I deleted the copy I had and obv. I can't work with this build.

 

Thanks

Unable to compile Java8 file in IDEA12

$
0
0

I'm trying to compile some sample Java 8 code, but I'm getting this error:

 

 

java: lambda expressions are not supported in -source 1.8

  (use -source 8 or higher to enable lambda expressions)

 

 

I've set the Project SDK to 1.8 (java v3ersion "1.0.0-ea") and the Project language level to "8.0 - Lambda, type annotations etc." in the Project Structure settings.  What am I doing wrong?

Tomcat deployment directory

$
0
0

Hi,

 

I have a webapp which is deployed to a local Tomcat (6.0.x), located in R:\programs\apache-tomcat-6.0.36.

I want IntelliJ IDEA to deploy the webapp to the \webapps subdirectory of the aforementioned one instead of the default

 

C:\Documents and Settings\bdusausoy\.IntelliJIdea12\system\tomcat\Unnamed_Coordleg

 

When Tomcat is launched, it prints its environment variables :

 

Using CATALINA_BASE:   "C:\Documents and Settings\bdusausoy\.IntelliJIdea12\system\tomcat\Unnamed_Coordleg"
Using CATALINA_HOME:   "R:\bdusausoy\programs\apache-tomcat-6.0.36"
Using CATALINA_TMPDIR: "R:\bdusausoy\programs\apache-tomcat-6.0.36\temp"

 

So basically I want IntelliJ IDEA to deploy to

R:\bdusausoy\programs\apache-tomcat-6.0.36\webapps

 

How can I achieve this ?

 

Regards.

IDEA 12: Setup Frameworks

$
0
0

http://dl.dropbox.com/u/8792466/x_xml_files.png

What's that about "n xml files"? Shouldn't it show exact file names?

Still stuck on version 10.5.4 until JSP editing performance in version 11 improves...

$
0
0

I gave up on version 11 on it's initial release due to unusably slow JSP editing performance earlier in the year.

 

I just checked back using version 11.1.3 8 months later and it's still unusably slow.

 

Making minor white space or single character edits causes the eye to pop up and editing to freeze for 30 seconds to a minute.

 

I'm using the exact same idea.exe.vmoptions memory settings on 11.1.3 that I'm using on 10.5.4, and 10.5.4 has an initial shorter freeze first analyzing this JSP but nothing like this during editing the file!

 

I'm editing an 866 line long JSP using the following taglibs:

http://java.sun.com/jsp/jstl/functions
http://www.springframework.org/tags/form
http://java.sun.com/jsp/jstl/core
http://www.springframework.org/tags

 

Any suggestions on anything I can do here? (Besides just wait for version 12 to see if this is ever fixed? Heh.)

 

Thanks,

-Alex

Formatting If Statements

$
0
0

Has anyone found a combination of formatting options that will turn:

 

        if (2 < 3) {            return;        }elseif (2 > 3) {            return;        }else{            return;        }

 

Into

 

        if (2 < 3)             return;        elseif (2 > 3)            return;        else            return;        

 

Of course never this:

 

        if (2 < 3)             if (2 > 3)                 return;             else                 return;            

 

Which should always be bracketed

 

        if (2 < 3) {             if (2 > 3)                 return;             else                 return;        }    

Need advice: How to integrate Git & Github with IDEA on Windows

$
0
0

I've had so many problems using Git on Windows, it's really rather tragic.  I thought Github for Windows would be the most mainstream way to get Git installed on Windows. But I cannot get it to reliably work with IDEA.

 

It seems that it cannot find git.cmd/git.exe.. even though Git's shell works fine. I think this may be because it injects the Git paths when the shell gets launched, NOT by putting them into the system paths. I tried to fool this by adding the "portableGit" paths manually to my system path. But after an auto-update of git, these paths all changed and I am left again without IDEA being able to find git.exe.

 

Is using the git.exe provided with git for windows a hopeless cause? What distribution of Git works the best for people?

 

I BELIEVE I am using https authentication to connect to github. SSH keys are more of a pain so although I used them early on with Git, I am not currently. Should I give in and just make SSH keys for all my git uses?

 

Sorry to ramble but life was so much easier before the git bandwagon came to town. I haven't really enjoyed any of these promised workflow improvements but it might just be my particular use case.  I'm either working solo or else needing to keep pretty tightly synced with the others in my team and it just feels like a convoluted Subversion imitation to me in these scenarios.

 

Any help is appreciated.

Eclipse Compiler ProceedOnError

$
0
0

It states that "Proceed on Error" feature of Eclipse will be supported in version 12:

 

Integration with Eclipse Java compiler will enable better errors highlighting for the project and even running Java applications containing compilation errors.

 

and there is an option under Eclipse compiler, but after enabling that, nothing happened. I still can not run my main class with some irrelavent errors in other classes.

 

Do you have the same problem or it is a configuration problem of my own?

 

Alright, this is a rather old topic, and each time people start to talk about this, there would be a debate, but honestly, this is just the feature I need, and it promised to bring this feature to version 12.

intelij ignore maven update policy

$
0
0

Hi

we are using intelij version :11.1.3

it seems that intelij ignores repository update policy that was set in our pom  :

we set:

<repository>
            <id>horizon</id>
            <url>http://somerepo:8081/nexus/content/groups/some-group</url>
            <snapshots>
                <enabled>true</enabled>
                <updatePolicy>never</updatePolicy>
            </snapshots>
        </repository>  

this configuration should prevent maven from updating snapshots in the local .m2 repository.

but when we are using the reimport button in intellij we see in our local .m2 repository artifacts that where updated from nexus.

in order to prevent this we tried to set the maven settings of intellij to "never update" see attached screenshot.

 

how can we inforce intellij to to use our pom definition without using offline mode ?

 

Thanks!

visualize xsd/wsdl

$
0
0

Hi,

 

Is there any way to get xsd/wsdl structure visualized in idea?

 

Best regards, Eugene.

Problem with IDEA 12 Ultimate and starting PHPUnit tests on Ubuntu 12.04

$
0
0

Hi,

Yestreday I upgraded my IntelliJ IDEA 10.5.4 Ultimate to IntelliJ IDEA 12.0 Ultimate. I use it for Java/PHP development. I have manualy install the PHP plugin in v.12.0 because it is no more bundled. The version of the installed PHP plugin is 123.66.

Since yesterday I cannot start my PHP Unittests anymore in v.12.0. In v.10.5.4 they run without any problems.

Now I get this message

 

"/usr/bin/php /tmp/ide-phpunit.php --no-configuration ApiAllTestsSuite /home/projects/development/dms/classes/test/api/ApiAllTest.php

Testing started at 11:06 AM ...

PHP Fatal error:  Interface 'PHPUnit_Framework_TestListener' not found in /tmp/ide-phpunit.php on line 258

 

Process finished with exit code 255"

 

I looked in the autogenerated starter script ide-phpunit.php and founded that there are some missing "require_once"-declarations for some PHPUnit classes (first of them is PHPUnit_Framework_TestListener).

My include_path points correctly to the PHPUnit installation folder (as I said in IDEA 10 runs without problems)

 

How can I solve the problem?

 

Regards

Remote Run plugin

$
0
0

Hi.

 

I stumbled upon new pluginh in IDEA 12. But i could not find who to use it. Also i could not  find any information in Web help. Could anyone put here some info about that plugin.

 

Thanks in advanced.

ByteCode view for debugging?

$
0
0

ByteCode view: awesome. But. I can't get it to display bytecode for the code I'm looking at in a library I don't have source code for. I just happen to have a P1 bug that this would really help.

 

How do I display ByteCode for the current method on the stack?

 

jamie


changesets and partial changes

$
0
0

is there a way to separate changes to a file into two separate changesets? similar to git's ability to commit/stage only parts of the changes in a file...

Controlling checkin when multiple branches in same project

$
0
0

Where I currently work we have a new branch of svn for each release cycle, so I need to work on multiple branches of the same project. This has caused me problems because sometimes I edit the file in the wrong branch and commit against the wrong branch which I want to avoid.

 

Currently I create a new module for each branch and remove the other module branch from the project to avoid the above problem. Can I avoid having to delete and add the module when I switch branches.

I have tried: Using contexts - I saved a context, swapped the module then saved another context but when I switch between the contexts they are the same it doesn't switch the module.

 

A nice solution would be to put each module on a sparate changelist

 

EDIT 1:

Forgot to mention this question has been posted here http://stackoverflow.com/questions/13572548/managing-multiple-branches-in-one-project-intellij#comment18610238_13572548 without a satisfactory answer.

Display SVN revisions from a reintegrated branch

$
0
0

Is there any way in IDEA 12 to display the revisions that were included when a branch is reintegrated? Something similar to "svn log -g" command line or the "Include merged revisions" option in TortoiseSVN. For example, let's say I create a branch (my_branch) from the trunk at revision 100. I perform two commits to my_branch at revisions 103 and 108. Then, I reintegrate my_branch into the trunk at revision 110.

 

An 'svn log -g' on the trunk would show me something similar to:

 

------------------------------------------------------------------------

r110| foo@bar | 2012-12-05 18:45:19 -0600 (Wed, 05 Dec 2012) | 1 line


Merge all from my_branch at 109 (reintegration)

------------------------------------------------------------------------

r108| foo@bar | 2012-12-05 18:41:01 -0600 (Wed, 05 Dec 2012) | 1 line

Merged via: r110


My change #2.

------------------------------------------------------------------------

r103| foo@bar | 2012-12-05 18:41:01 -0600 (Wed, 05 Dec 2012) | 1 line

Merged via: r110


My change #1.

 

TortoiseSVN with the "Include merged revisions" option selected shows something like:

 

110     foo@bar     Wednesday December 5, 2012 6:45:19 PM     Merge all from my_branch at 109 (reintegration)

108    foo@bar     Wednesday December 5, 2012 6:45:19 PM     My change #2.

103    foo@bar     Wednesday December 5, 2012 6:45:19 PM     My change #1.

 

Thanks in advance for any info.

i have error "exit code is 1" what happen?

$
0
0

im use win 7 64bit, my editor is intellij idea 3

 

i get log like this:

 

Information: 1 error

 

Information: 0 warnings

 

Information: java.lang.ClassNotFoundException: -verbose

 

Information:     at java.lang.Class.forName0(Native Method)

 

Information:     at java.lang.Class.forName(Class.java:140)

 

Information:     at com.intellij.rt.compiler.JavacRunner.main(JavacRunner.java:24)

 

Information: Exception in thread "main"

 

Error:  line (0) The compiler did not terminate normally. Exit code is 1

 

what i must to do for fix it,

 

nead help

Any way to exclude individual .java files?

$
0
0

Putting them in Settings | Compiler | Excludes is only able to make the compiler happy but searching for an compiler-excluded .java file still shows that file.

Viewing all 5481 articles
Browse latest View live