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

graphical full editor for JavaFX and you ?

$
0
0

Hello everybody,

 

What do you think about a graphical editor for JavaFX and FXML in Intellij IDEA ?

Ok there is SceneBuilder but in Intellij IDEA with JetBrains integration and wonderful is just here.


How to change popup font?

$
0
0

Hello. I am using Idea 11.1.5 on Windows 7. I enabled popup window with JavaDoc during auto-complete. The same window appears when I press CTRL+Q on a class/method name. Unfortunately font familly in this popup window seems to be Courier, when in all other places, especially in editor, I am using DejaVu Monospaced. How do I change popup window fonts to DejaVu Monospaced? Thanks for any help.

Ctrl F to find in a list of Debugger Variables

$
0
0

Anyone who has looked at the list of random stuff in a Result Set has been annoyed looking for the right variable.

In thinking about this I was wondering if there was a quick search similar to CTRL-F to do a search in the Debugger Variables?

Best Practices for Non-Java Setup in IntelliJ?

$
0
0

This is my first post after purchasing Intellij IDEA and I'd welcome any guidance.  After install, I feel like a learner pilot sitting in a 747 cockpit instead of a cessna

 

Background.  I'm a beginner programmer who is doing basic web development (html/css/js) and learning both Ruby and Python as a hobby.  I'm not using any of the other languages/frameworks available in IntelliJ (e.g. Java/Clojure/etc).  I purchased IntelliJ Ultimate because I wanted the flexibility to use both Python and Ruby and the ultimate edition seems to be exactly what I needed (in that the alternative was to purchase both Pycharm and Rubymine). When I installed it, I was met with a wizard which showed a number of plugins and bundled features (most of which I did not recognize or understand).  As I don't have a workhorse pc and I'm just a beginner, I just want functionality that the rubymine/pycharm plugins offer/need.  I downloaded the requisite plugins, SDK's and set that up, but when I open the application or a new project, it does feel like a 747 Cockpit. 

 

Here's the questionAre there any best practices for a minimal config/setup when you install the application for the first time when you're only using Html/Css/Js/Ruby/Python?  I'm worried by not selecting or keeping certain options, I will be turning off functionality I need later.  Not sure what dependencies exist that I might be getting rid of. 

 

I looked last night for keywords here and on google like "minimal setup for intellij", "intellij setup for python" etc etc... and didn't find very much other than "install the python and ruby plugins".  Anyway, I appreciate any help I can get.  Feeling a little overwhelmed as a learner.

 

Thanks!

TestNG test does not pass

$
0
0

Hi,

 

this test passes, but not in Intellij; I have the TestNG plugin enabled

 

package test2;

 

/**
* Created with IntelliJ IDEA.
* User: mic
* Date: 18/05/13
* Time: 08:24
* To change this template use File | Settings | File Templates.
*/
import java.util.ArrayList;
import java.util.Collection;
import org.testng.Assert;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;

 

public class Test2 {

 

    private Collection collection;

 

    public Test2() {
    }

 

    @BeforeClass
    public static void setUpClass() throws Exception {
    }

 

    @AfterClass
    public static void tearDownClass() throws Exception {
    }

 

    @BeforeMethod
    public void setUpMethod() throws Exception {
        collection = new ArrayList();
        System.out.println("@BeforeMethod - setUp");
    }

 

    @AfterMethod
    public void tearDownMethod() throws Exception {
        collection.clear();
        System.out.println("@AfterMethod - tearDown");
    }

 

    @Test
    public void testOneItemCollection() {
        collection.add("itemA");
        Assert.assertEquals(collection.size(), 1);
        System.out.println("@Test - testOneItemCollection");
    }


###

 

Inside test2 package I have testng.xml

 

<!DOCTYPE suite SYSTEM "http://beust.com/testng/testng-1.0.dtd" >
<suite name="My Suite">
    <test name="Simple Test">
        <classes>
            <class name="test2.Test2"/>
        </classes>
    </test>
</suite>

 

###

 

The stack trace indicates a problem with the parameter -usedefaultlisteners but there are none in the testng run/configuration (see attached png)

 

/home/mic/local/jdk1.6.0_41/bin/java -ea -Didea.launcher.port=7532 -Didea.launcher.bin.path=/home/mic/idea-IU-129.400/bin -Dfile.encoding=UTF-8 -classpath /home/mic/idea-IU-129.400/plugins/testng/lib/testng-plugin.jar:/home/mic/local/jdk1.6.0_41/jre/lib/jsse.jar:/home/mic/local/jdk1.6.0_41/jre/lib/plugin.jar:/home/mic/local/jdk1.6.0_41/jre/lib/rt.jar:/home/mic/local/jdk1.6.0_41/jre/lib/deploy.jar:/home/mic/local/jdk1.6.0_41/jre/lib/jce.jar:/home/mic/local/jdk1.6.0_41/jre/lib/resources.jar:/home/mic/local/jdk1.6.0_41/jre/lib/management-agent.jar:/home/mic/local/jdk1.6.0_41/jre/lib/charsets.jar:/home/mic/local/jdk1.6.0_41/jre/lib/javaws.jar:/home/mic/local/jdk1.6.0_41/jre/lib/ext/sunjce_provider.jar:/home/mic/local/jdk1.6.0_41/jre/lib/ext/dnsns.jar:/home/mic/local/jdk1.6.0_41/jre/lib/ext/localedata.jar:/home/mic/local/jdk1.6.0_41/jre/lib/ext/sunpkcs11.jar:/home/mic/IdeaProjects/HibSQL/out/production/HibSQL:/home/mic/IdeaProjects/HibSQL/lib/hibernate-core-4.1.1.Final.jar:/home/mic/IdeaProjects/HibSQL/lib/hibernate-jpa-2.0-api-1.0.1.Final.jar:/home/mic/IdeaProjects/HibSQL/lib/hibernate-commons-annotations-4.0.1.Final.jar:/home/mic/IdeaProjects/HibSQL/lib/antlr-2.7.7.jar:/home/mic/IdeaProjects/HibSQL/lib/dom4j-1.6.1.jar:/home/mic/IdeaProjects/HibSQL/lib/javassist-3.15.0-GA.jar:/home/mic/IdeaProjects/HibSQL/lib/jboss-logging-3.1.0.GA.jar:/home/mic/IdeaProjects/HibSQL/lib/jboss-transaction-api_1.1_spec-1.0.0.Final.jar:/home/mic/local/glassfish-3.1.2.2/glassfish/modules/javax.servlet.jsp-api.jar:/home/mic/local/glassfish-3.1.2.2/glassfish/modules/javax.ejb.jar:/home/mic/local/glassfish-3.1.2.2/glassfish/modules/javax.servlet-api.jar:/home/mic/IdeaProjects/HibSQL/lib/jsf-api.jar:/home/mic/IdeaProjects/HibSQL/lib/jsf-impl.jar:/home/mic/IdeaProjects/HibSQL/lib/jstl-1.1.0.jar:/home/mic/IdeaProjects/HibSQL/lib/icefaces.jar:/home/mic/IdeaProjects/HibSQL/lib/icefaces-ace.jar:/home/mic/IdeaProjects/HibSQL/lib/icefaces-compat.jar:/home/mic/IdeaProjects/HibSQL/lib/icepush.jar:/home/mic/IdeaProjects/HibSQL/lib/poi-3.7.jar:/home/mic/IdeaProjects/HibSQL/lib/commons-beanutils.jar:/home/mic/IdeaProjects/HibSQL/lib/commons-collections.jar:/home/mic/IdeaProjects/HibSQL/lib/commons-digester.jar:/home/mic/IdeaProjects/HibSQL/lib/commons-logging.jar:/home/mic/IdeaProjects/HibSQL/lib/el-api.jar:/home/mic/IdeaProjects/HibSQL/lib/jxl.jar:/home/mic/IdeaProjects/HibSQL/lib/krysalis-jCharts-1.0.0-alpha-1.jar:/home/mic/IdeaProjects/HibSQL/lib/portletfaces-bridge-2.0.2-ice-7875.jar:/home/mic/IdeaProjects/HibSQL/lib/FastInfoset.jar:/home/mic/IdeaProjects/HibSQL/lib/el-api-2.2.1-b03.jar:/home/mic/IdeaProjects/HibSQL/lib/javax.annotation.jar:/home/mic/IdeaProjects/HibSQL/lib/javax.servlet.jar:/home/mic/IdeaProjects/HibSQL/lib/javax.servlet.jsp.jar:/home/mic/IdeaProjects/HibSQL/lib/portlet2-api.jar:/home/mic/IdeaProjects/HibSQL/lib/jstl.jar:/home/mic/IdeaProjects/HibSQL/lib/ApacheLICENSE-2.0.txt:/home/mic/IdeaProjects/HibSQL/lib/CDDL-1.0.txt:/home/mic/IdeaProjects/HibSQL/lib/MIT-LICENSE.txt:/home/mic/IdeaProjects/HibSQL/lib/NOTICE.txt:/home/mic/IdeaProjects/HibSQL/lib/openfaces.jar:/home/mic/IdeaProjects/HibSQL/lib/sac.jar:/home/mic/IdeaProjects/HibSQL/lib/jfreechart.jar:/home/mic/IdeaProjects/HibSQL/lib/jcommon.jar:/home/mic/IdeaProjects/HibSQL/lib/cssparser.jar:/home/mic/IdeaProjects/HibSQL/lib/commons-collections_2.jar:/home/mic/IdeaProjects/HibSQL/lib/openfaces-license.txt:/home/mic/IdeaProjects/HibSQL/lib/redistribution.txt:/home/mic/IdeaProjects/HibSQL/lib/commons-codec-1.3-license.txt:/home/mic/IdeaProjects/HibSQL/lib/cssparser-0.9.4-license.txt:/home/mic/IdeaProjects/HibSQL/lib/dojo-license.txt:/home/mic/IdeaProjects/HibSQL/lib/jdom-1.0-license.txt:/home/mic/IdeaProjects/HibSQL/lib/jfreechart-license.txt:/home/mic/IdeaProjects/HibSQL/lib/json-license.txt:/home/mic/IdeaProjects/HibSQL/lib/myfaces-license.txt:/home/mic/IdeaProjects/HibSQL/lib/richfaces-core-api.jar:/home/mic/IdeaProjects/HibSQL/lib/richfaces-core-impl.jar:/home/mic/IdeaProjects/HibSQL/lib/richfaces-components-ui.jar:/home/mic/IdeaProjects/HibSQL/lib/richfaces-components-api.jar:/home/mic/IdeaProjects/HibSQL/lib/lgpl.txt:/home/mic/IdeaProjects/HibSQL/lib/primefaces-3.4.1.jar:/home/mic/IdeaProjects/HibSQL/testng-5.0.jar:/home/mic/idea-IU-129.400/plugins/testng/lib/testng.jar:/home/mic/idea-IU-129.400/lib/idea_rt.jar com.intellij.rt.execution.application.AppMain org.testng.RemoteTestNGStarter -port 52862 -d /home/mic/IdeaProjects/HibSQL -usedefaultlisteners false -socket52885 -temp /tmp/idea_testng2564164976076482919.tmp
Unknown option: -usedefaultlisteners
Usage:
[-d output-directory]
        default output directory to : test-output
[-testclass list of .class files or list of class names]
[-sourcedir a source directory]
[-target 1.4 or 1.5]
        used only with JDK1.5 to specify the annotation type used in test classes; default target: 1.5
[-groups comma-separated list of group names to be run]
        works only with -testclass
[-excludegroups comma-separated list of group names to be excluded]
        works only with -testclass
[-testrunfactory list of .class files or list of class names implementing org.testng.ITestRunnerFactory]
[-listener list of .class files or list of class names implementing org.testng.ITestListener and/or org.testng.ISuiteListener]
[suite definition files*]

 

For details please consult documentation.

 

Process finished with exit code 0

 


###

 

Thanks for any help

Error visibility/handling in IDEA vs. Eclipse

$
0
0

I've been using IntelliJ IDEA now for a while and I really like it. But compared to Eclipse, which I used to use, I find that the way IDEA presents errors and warnings is less productive.

 

Two reasons for this:

 

1. I really miss the vertical bar that Eclipse has next to the line numbers on the left-hand side of the editor, showing error and warning symbols for visible lines. IDEA has a similar line on the right-hand side, but it's more of an outline showing for the entire buffer all of the time, so for visible lines, it's hard to make the connection between the location of the symbols and the location of the line they refer to. Also just the fact that it's on the right-hand side is not good - my display is quite wide, so there is often quite a distance between the actual code and these symbols, making it harder to notice. So, basically, I want what Eclipse has in this case.

 

2. If there is an error on the line I'm at, I have to move the cursor to the error in order to get its error message up in the status bar, and to be able to do Alt-Enter. This rather tedious task shouldn't be necessary, and in Eclipse, you can invoking its "Quick Fix".

 

3. I miss the "Problems" pane in Eclipse, which lists all the issues (errors, warnings, and TODOs) in the project at any time. IDEA has the "Inspect Code" feature, which is great, but it's only snapshot - if you fix an issue, it doesn't disappear from the list, and if you introduce a new issue it doesn't show up - for this you have to manually re-run inspection, which I guess I can do, but it's just one more thing to keep in mind. If it could update continuously like in Eclipse, it would be great.

 

I don't know if anyone else is bothered by any of this, and I suspect not, but any input on what is possible would be great.

 

I'm using IntelliJ IDEA 12, languages include Python, PHP, Java and Scala.

 

Thanks!

Changing config directory not working

$
0
0

I have separate logical drives for system stuff and development, and I want my Intellij settings and such to be on my development drive.  According to every search I've tried, I should just need to adjust the idea.properties file.

I went into idea.properties and uncommented/modified (what I thought were) the appropriate properties:

 

idea.config.path=D:/configs/.IntelliJIdea12/config

idea.system.path=D:/configs/.IntelliJIdea12/system

idea.plugins.path=D:/configs/.IntelliJIdea12/config/plugins

idea.log.path=D:/configs/.IntelliJIdea12/system/log

 

I then copied the .IntellijIdea12 folder from it's location in C:\Users\... etc to D:/configs.

I then restarted IntelliJ.

 

Expected behavior:

changes are invisible within IJ, it hums merrily along and reads/writes config information to the new folder

 

Actual behavior:

The folder under c:\Users\... is recreated and I get the post-install wizard to import settings.

 

What am I missing?

Error running grails 2.2.2 app

$
0
0

Intellij EAP 130-555 Mac OS X

Can't find any jrebel stuff on the classpath..

 

/Library/Java/JavaVirtualMachines/jdk1.7.0_17.jdk/Contents/Home/bin/java -Dgrails.home=/Developer/java/grails/grails-2.2.2 -Dbase.dir=/Users/sigge/Project/nf -Dtools.jar=/Library/Java/JavaVirtualMachines/jdk1.7.0_17.jdk/Contents/Home/lib/tools.jar -Dgroovy.starter.conf=/Developer/java/grails/grails-2.2.2/conf/groovy-starter.conf -Xmx768M -Xms768M -XX:MaxPermSize=256m -XX:PermSize=256m -javaagent:/Developer/java/grails/grails-2.2.2/lib/org.springsource.springloaded/springloaded-core/jars/springloaded-core-1.1.1.jar -noverify -Dspringloaded=profile=grails -Didea.launcher.port=7533 -Didea.launcher.bin.path=/Applications/Cardea-IU-130.555.app/bin -Dfile.encoding=UTF-8 -classpath /Developer/java/grails/grails-2.2.2/lib/org.codehaus.groovy/groovy-all/jars/groovy-all-2.0.8.jar:/Developer/java/grails/grails-2.2.2/dist/grails-bootstrap-2.2.2.jar:/Applications/Cardea-IU-130.555.app/lib/idea_rt.jar com.intellij.rt.execution.application.AppMain org.codehaus.groovy.grails.cli.support.GrailsStarter --main org.codehaus.groovy.grails.cli.GrailsScriptRunner --conf /Developer/java/grails/grails-2.2.2/conf/groovy-starter.conf run-app

 

| Error java.lang.reflect.InvocationTargetException

| Error at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

| Error at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

| Error at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

| Error at java.lang.reflect.Method.invoke(Method.java:601)

| Error at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1243)

| Error at org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(GrailsStarter.java:234)

| Error at org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStarter.java:262)

| Error at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

| Error at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

| Error at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

| Error at java.lang.reflect.Method.invoke(Method.java:601)

| Error at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1243)

| Error at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)

| Error Caused by: java.lang.NoClassDefFoundError: com/zeroturnaround/javarebel/AD

| Error at org.codehaus.groovy.ast.ClassNode.<init>(ClassNode.java:243)

| Error at org.codehaus.groovy.ast.ClassNode.<clinit>(ClassNode.java:121)

| Error at org.codehaus.groovy.ast.ClassHelper.makeCached(ClassHelper.java:125)

| Error at org.codehaus.groovy.ast.ClassHelper.<clinit>(ClassHelper.java:62)

| Error at org.codehaus.groovy.runtime.callsite.CallSiteGenerator.<clinit>(CallSiteGenerator.java:35)

| Error at org.codehaus.groovy.reflection.CachedMethod.createStaticMetaMethodSite(CachedMethod.java:284)

| Error at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.createStaticMetaMethodSite(StaticMetaMethodSite.java:111)

| Error at groovy.lang.MetaClassImpl.createStaticSite(MetaClassImpl.java:3028)

| Error at groovy.lang.ExpandoMetaClass.createStaticSite(ExpandoMetaClass.java:1296)

| Error at org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallStaticSite(CallSiteArray.java:74)

| Error at org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallSite(CallSiteArray.java:159)

| Error at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)

| Error at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)

| Error at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)

| Error at grails.util.BuildSettings.<init>(BuildSettings.groovy:793)

| Error at grails.util.BuildSettings.<init>(BuildSettings.groovy:789)

| Error at org.codehaus.groovy.grails.cli.GrailsScriptRunner.main(GrailsScriptRunner.java:164)

| Error ... 13 more

| Error Caused by: java.lang.ClassNotFoundException: com.zeroturnaround.javarebel.AD

| Error at org.codehaus.groovy.tools.RootLoader.findClass(RootLoader.java:175)

| Error at java.lang.ClassLoader.loadClass(ClassLoader.java:423)

| Error at org.codehaus.groovy.tools.RootLoader.loadClass(RootLoader.java:147)

| Error at org.codehaus.groovy.grails.cli.support.GrailsRootLoader.loadClass(GrailsRootLoader.java:52)

| Error at java.lang.ClassLoader.loadClass(ClassLoader.java:356)

| Error ... 30 more

 

Process finished with exit code 1


best xanax online cheap no prescription

$
0
0

best online cheap

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Benzodiazepines valium klonopin xanax xanax purchased no prescription in New York. Buy discount xanax online in Iowa order xanax without prescription in London. Fascts about drug abuse xanax xanax (alprazolam) side effects. Get xanax in findlay ohio normal daily dosage of xanax. Buy xanax online pharmacy in Florida overnight xanax without prescription. Risperdal and xanax interaction celexa vs xanax. Xanax free standart shipping in Maine order xanax no creditcard in Connecticut. Discount overseas no prescription xanax benzoylecgonine otc zoloft xanax. Buy xanax on line no prescription buy xanax online for cod in Western Australia. Ask your pharmacist if you gain questions about What one. medicines are depressants. Check with your Instructor before you Settle the dose of your diabetes medicine or make some ~ in. See alter your parliament. Use xanax as directed by your doctor. Preservation and effectiveness in this age clump gain not been confirmed. Contact 1-800-222-1222 (the american guild of poison control centers), your local poison manage center (aapcc. Org), or emergency room just now. Buy xanax mail order in Vermont fatal dose of xanax. Buy xanax online for cod in Louisiana lasix xanax side effects. Recommended online pharmacy adipex amp xanax risperidone xanax drug interactions. Buy cheap xanax free fedex shipping in Montana drug testing xanax ativan. Buy xanax no prescription cod in Sacramento buy 2 mg xanax bars. Cheap non prescription xanax ativan klonopin valium xanax which best. Is xanax good for dental appointments buy xanax online for cod in Liverpool. Xanax cheap buy xanax and no prescription. Order klonipin and xanax chlorpheniramine like a xanax.  Is xanax klonopin stronger buspar xanax medication side effects. Xanax online no perscription sustiva xanax drug interactions. Diazepam and xanax drug interactions order xanax without a presription. Buy cheap xanax free fedex shipping in Virginia xanax yellow school bus. Cheap overnight xanax what herbal medicine compares to xanax. Buy xanax cod payment lasix xanax side effects. Xanax without prescription in Mississippi ativan vs xanax vs klonopin. Xanax purchased no prescription in Edinburgh do i need xanax. Xanax drug no prescription in New Hampshire valtrex and xanax. Buy cheap xanax pharmacy online klonopin xanax ativan. Pics of a 3mg xanax xanax cod delivery next day in Belfast. Buy xanax and ambien onlie vicoprofen and xanax taken together. Purchase xanax online no prescription alprazolam xanax side effects. Xanax without prescription in Oregon buy xanax visa. Order xanax no creditcard in Florida xanax and prozac death. Online pharamacy by us mail xanax buy discount xanax online in Maine. Buy xanax online pharmacy in Sacramento zyrtec xanax drug interactions. Xanax cod delivery next day in Tennessee cephalexin nexium and xanax together. Buy xanax mail order in Ontario ways to abuse xanax. Xanax without prescription in Sacramento cheap xanax without rx in Glasgow. Cheap xanax without rx in United Kingdom how to smoke xanax.

Help. Can't resolve maven dependency.

$
0
0

Problem is that even if I put the reference into the pom, it still  doesn't resolve. Worse: It builds fine from the commandline with no  changes at all.
Sure could use a clue or at least a methodology for getting one. Environment is Windows 7 + Cygwin.

 

The error is:

 

Couldn't find a version in [1.0.0.2, 2.0.0.1, 2.0.0.3, 2.0.0.4] to match range [1,2)
  net.collings.service.schema:Currency:tar.gz:null

 

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  nexus (http://central),
  thirdparty (http://mvnrepo.collings.net:6666/nexus/content/repositories/thirdparty),
  snapshots (http://mvnrepo.collings.net:6666/nexus/content/repositories/snapshots)

 

Path to dependency:
    1) com.collings.royalty:retardsApeAbility:jar:2.0-SNAPSHOT
    2) com.collings.royalty:royaltyApeAbilityInterface:jar:2.0-SNAPSHOT
    3) net.collings.service.retards:LZRetardsService:jar:1.0.0.6
    4) net.collings.service.retards:LZRetardsServiceTypes:tar.gz:model:1.0.0.6. Couldn't find a version in [1.0.0.2, 2.0.0.1, 2.0.0.3, 2.0.0.4] to match range [1,2)
  net.collings.service.schema:Currency:tar.gz:null

 

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  nexus (http://central),
  thirdparty (http://mvnrepo.collings.net:6666/nexus/content/repositories/thirdparty),
  snapshots (http://mvnrepo.collings.net:6666/nexus/content/repositories/snapshots)

 

Path to dependency:
    1) com.collings.royalty:retardsApeAbility:jar:2.0-SNAPSHOT
    2) com.collings.royalty:royaltyApeAbilityInterface:jar:2.0-SNAPSHOT
    3) net.collings.service.retards:LZRetardsService:jar:1.0.0.6
    4) net.collings.service.retards:LZRetardsServiceTypes:tar.gz:model:1.0.0.6.

Running xml file from commandline

$
0
0

When working in IntelliJ 12 to write selenium webdriver tests I uses a suite xml file to run some tests and I just right click on the file and select Run to run the xml file. How do we run the same file from command line?

 

My suite file looks like this -

 

<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">

<suite name="Suite" parallel="methods">

    <test name="Images in featured rotator block" parallel="false">

        <parameter name="BROWSER" value="FF" />

        <parameter name="VERSION" value="21" />

        <parameter name="PLATFORM" value="MAC" />

        <classes>

            <class name="imageTest.featuredRotator"/>

        </classes>

    </test>

</suite>

 

the parameters from the suite file are passed to a base class which sets the desired capabilites and the command I am using to run the suite file is mvn test -DsuiteFile=resources/test-suites/audioSuite.xml. The test runs but nothing happens

Groovy Shell doesn't support any commands?

$
0
0

IntelliJIDEA 12.1.3 Community Edition
Windows 7 64bit

 

I just started using IntelliJ and wanted to be able to use the Groovy Shell to interactively try various java (and Groovy) things, but the Groovy Shell doesn't support any commands?

 

If I start groovysh from the command line, I can enter the "help" command to see all sort of commands that the Groovy Shell supports:

 

    Available commands:
      help      (\h ) Display this help message
      ?         (\? ) Alias to: help
      exit      (\x ) Exit the shell
      quit      (\q ) Alias to: exit
      import    (\i ) Import a class into the namespace
      display   (\d ) Display the current buffer
      clear     (\c ) Clear the buffer and reset the prompt counter.
      show      (\S ) Show variables, classes or imports
      inspect   (\n ) Inspect a variable or the last result with the GUI object browser
      purge     (\p ) Purge variables, classes, imports or preferences
      edit      (\e ) Edit the current buffer
      load      (\l ) Load a file or URL into the buffer
      .         (\. ) Alias to: load
      save      (\s ) Save the current buffer to a file
      record    (\r ) Record the current session to a file
      history   (\H ) Display, manage and recall edit-line history
      alias     (\a ) Create an alias
      set       (\= ) Set (or list) preferences
      register  (\rc) Registers a new command with the shell

 

It would be nice to be able to use the following commands in IntelliJ's version of the Groovy Shell: show, inspect, purge, alias, set, register.

 

However, when I use Tools -> Groovy Shell from within IntelliJ I get:

 

    groovy.lang.MissingPropertyException: No such property: help for class: ideaGroovyConsole
            at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)
            at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49)
            at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231)
            at ideaGroovyConsole.run(ideaGroovyConsole.groovy:1)
            at groovy.lang.GroovyShell.runScriptOrMainOrTestOrRunnable(GroovyShell.java:257)
            at groovy.lang.GroovyShell.run(GroovyShell.java:481)
            at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:601)
            at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:231)
            at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.call(PogoMetaMethodSite.java:64)
            at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
            at console.run(console.txt:25)
            at groovy.ui.GroovyMain.processReader(GroovyMain.java:531)
            at groovy.ui.GroovyMain.processFiles(GroovyMain.java:441)
            at groovy.ui.GroovyMain.run(GroovyMain.java:341)
            at groovy.ui.GroovyMain.process(GroovyMain.java:329)
            at groovy.ui.GroovyMain.processArgs(GroovyMain.java:118)
            at groovy.ui.GroovyMain.main(GroovyMain.java:98)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:601)
            at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:106)
            at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:128)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:601)
            at com.intellij.rt.execution.CommandLineWrapper.main(CommandLineWrapper.java:121)

 

Why doesn't this work?

Groovy Shell can't see imported classes without explicitly specifying entire package?

$
0
0

IntelliJIDEA 12.1.3 Community Edition
Groovy Version: 2.1.3 JVM: 1.7.0_21 Vendor: Oracle Corporation OS: Windows 7
Windows 7 64bit

 

I can do the following with a Groovy Shell started from the command line:

 

    groovy:000> import java.nio.ByteBuffer
    ===> [import java.nio.ByteBuffer]
    groovy:000> b = [0,1,2,3,4,5] as byte[]
    ===> [B@50c82a01
    groovy:000> bb = ByteBuffer.wrap(b)
    ===> java.nio.HeapByteBuffer[pos=0 lim=6 cap=6]
    groovy:000> bb.get(1)
    ===> 1
    groovy:000> bb.get(5)
    ===> 5
    groovy:000> bb
    ===> java.nio.HeapByteBuffer[pos=0 lim=6 cap=6]
    groovy:000> bb.get()
    ===> 0
    groovy:000> bb
    ===> java.nio.HeapByteBuffer[pos=1 lim=6 cap=6]

 

However, when I use Tools -> Groovy Shell from within IntelliJ, and try the same thing I get:

 

    > import java.nio.ByteBuffer
    > b = [0,1,2,3,4,5] as byte[]
    [0, 1, 2, 3, 4, 5]
    > b
    [0, 1, 2, 3, 4, 5]
    > bb = ByteBuffer.wrap(b)
    groovy.lang.MissingPropertyException: No such property: ByteBuffer for class: ideaGroovyConsole
            at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)
            at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49)
            at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231)
            at ideaGroovyConsole.run(ideaGroovyConsole.groovy:1)
            at groovy.lang.GroovyShell.runScriptOrMainOrTestOrRunnable(GroovyShell.java:257)
            at groovy.lang.GroovyShell.run(GroovyShell.java:481)
            at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:601)
            at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:231)
            at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.call(PogoMetaMethodSite.java:64)
            at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
            at console.run(console.txt:25)
            at groovy.ui.GroovyMain.processReader(GroovyMain.java:531)
            at groovy.ui.GroovyMain.processFiles(GroovyMain.java:441)
            at groovy.ui.GroovyMain.run(GroovyMain.java:341)
            at groovy.ui.GroovyMain.process(GroovyMain.java:329)
            at groovy.ui.GroovyMain.processArgs(GroovyMain.java:118)
            at groovy.ui.GroovyMain.main(GroovyMain.java:98)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:601)
            at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:106)
            at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:128)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:601)
            at com.intellij.rt.execution.CommandLineWrapper.main(CommandLineWrapper.java:121)

 

I have to do the following to get this to work:

 

    > bb = java.nio.ByteBuffer.wrap(b)
    java.nio.HeapByteBuffer[pos=0 lim=6 cap=6]

 

Is this a bug?

Always open file in new editor window?

$
0
0

I really want a double click on a file in the project window (or favorites window, etc) to always open the file in a new editor window, unless it is already open (then it should bring that window to the front). I've been using the Mac a long time and I'm used to each file being in its own window so I can see them all at once.

 

Is there a way I can set this up?

 

Thanks,

 

Howard

Primefaces layout not rendering in xhtml

$
0
0

Hi,

 

the standard "Welcome to Primefaces" north/south/west page does not render in index.xhtml (belowe, see attached).

 

The "JSF Support" plugin is enabled.

 

Any ideas?

 

Thanks

 

 


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

 

<f:view contentType="text/html">
    <h:head>
        <f:facet name="first">
            <meta content='text/html; charset=UTF-8' http-equiv="Content-Type"/>
            <title>PrimeFaces</title>
        </f:facet>
    </h:head>

 

    <h:body>

 

        <p:layout fullPage="true">

 

            <p:layoutUnit position="north" size="100" resizable="true" closable="true" collapsible="true">
                Header
            </p:layoutUnit>

 

            <p:layoutUnit position="south" size="100" closable="true" collapsible="true">
                Footer
            </p:layoutUnit>

 

            <p:layoutUnit position="west" size="175" header="Left" collapsible="true">
                <p:menu>
                    <p:submenu label="Resources">
                        <p:menuitem value="Demo" url="http://www.primefaces.org/showcase-labs/ui/home.jsf" />
                        <p:menuitem value="Documentation" url="http://www.primefaces.org/documentation.html" />
                        <p:menuitem value="Forum" url="http://forum.primefaces.org/" />
                        <p:menuitem value="Themes" url="http://www.primefaces.org/themes.html" />
                    </p:submenu>

 

                </p:menu>
            </p:layoutUnit>

 

            <p:layoutUnit position="center">
                Welcome to PrimeFaces
            </p:layoutUnit>

 

        </p:layout>

 

    </h:body>

 

</f:view>
</html>


IDEA Cannot resolve library

$
0
0

IDEA v.12.1.3.

I’ve got a maven dependency with some Faces tag library descriptor.

It contains something like:

<?xml version="1.0" encoding="UTF-8"?>

<facelet-taglib version="2.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaeehttp://java.sun.com/xml/ns/javaee/web-facelettaglibrary_2_0.xsd">

     <namespace>http://abc.com/core</namespace>

     <composite-library-name>abc/core</composite-library-name>

</facelet-taglib>

 

When the corresponding namespace (http://abc.com/core) is defined in my faces xhtml file, IDEA says: URI is not registered.

<html

      xmlns:abc="http://abc.com/core"

      xmlns:abcb=”http://abc.com/b”

 

But it doesn’t complain about http://abc.com/b namespace which is defined in the same library in another descriptor file.

 

The only difference between these 2 descriptor files is <composite-library-name>, which is not in the second one.

 

When I open this "problem" descriptor file in my project, IDEA colors "abc/core" in red and says: Cannot resolve library. But if I create such project with these tag library descriptor files in IDEA, everything can be resolved and even I can navigate to this abc/core directory.

 

The question is, why this namespace which contains <composite-library-name> tag is considered to be not registered URI?

Android R files from external libraries Intellij (not as jar!)

$
0
0

I have a problem of being use resoure file from the external library on Intellij. On runtime when I tried to get a view from resource from the external Library layout and its wrote "Class not loaded : packege_name.lib.R".

This problem goes only on runtime on Intellij when I call to Activity from the external library that I added it decleration on the main project manifest file.

Any help?

Thanks.

java.lang.ClassNotFoundException: com.intellij.rt.execution.junit.JUnitStarter

$
0
0

Hi, I'm using the latest beta version of intellij (Build 90.193) and I'm trying to run my unit tests, but I can't do it because I get this error:

 

Exception in thread "main" java.lang.ClassNotFoundException: com.intellij.rt.execution.junit.JUnitStarter     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)     at java.security.AccessController.doPrivileged(Native Method)     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)     at java.lang.ClassLoader.loadClass(ClassLoader.java:252)     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)     at java.lang.Class.forName0(Native Method)     at java.lang.Class.forName(Class.java:169)     at com.intellij.rt.execution.application.AppMain.main(AppMain.java:102)

 

I added the reference to the idea_rt.jar in my classpath but the error still appears and make sense because the class JUnitStarter is not longer on this jar, so the question is, why is not longuer in the jar?, there is another libs I should/can use in order to find that "old" JUnitStarter?, please help me, I'm runing my test using ant, it works, but I want to do it with IntelliJ.

By the way, I'm using JUnit 4.4 and jdk 1.6.0.16.

 

Thanks in advance.

IDEA plays dumb on Typescript types

$
0
0

I've had a Typescript web project working fine on my home computer. I was auto-compiling, deploying to Tomcat and everything was cool.

 

I tried to import the project on my work machine and Intellij doesn't seem to have any clue what to make of my Typescript. It knows some of the syntax, but it doesnt know what "window" is, nor what string, number, or Object are.  I have set up Filewatchers etc.. I know my TSC is set up because some files will compile fine.

 

I'm not sure what I did wrong when I imported my existing project.. any ideas?  thanks.

No copyright added for new files in IntelliJ 12.1.3

$
0
0

Even if I have a default copyright profile set, no copyright is generated when a java new file is created.

 

I've tried adding an "All" scope for this profile and does not work either.

Viewing all 5661 articles
Browse latest View live


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