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

Is IDEA-122691 fix present in 13.1.2


Cannot 'run all tests...' anymore

$
0
0

Hi,

 

I have been frequently running all the tests in a package/directory by right clicking the directory or module and selecting 'Run all tests'. At some point though this has stopped working - intellij simply reports '0 test class found in package...'.

Its something thats happened to this one project. If I create a new maven module in the same project, I'll have the same problem - but if I create a new project and add a new maven module, it works.

 

If I run 'mvn install' my tests run fine.

 

Anyone have any suggestions how I debug and fix this?

 

Thanks.

Use single quote instead

$
0
0

The default in the editor is in Double Quote.  Is it possible to set it to single quote?

 

For example, if I type color="", the double quote is automatically inserted.  How to set it to single quote instead?

 

Thx,

Branch Coverage Percentage

$
0
0

I was wondering if there was any way to get the percentage of branch coverage when using the IDEA code coverage runner. I can see what branches are covered in my file, but I didn't see any way to get the overall percentage of branches covered for a file / package / etc.

increase memory

$
0
0
        Runtime rt = Runtime.getRuntime();        long totalMem = rt.totalMemory();        long maxMem = rt.maxMemory();        long freeMem = rt.freeMemory();        double megs = 1048576.0;         System.out.println ("Total Memory: " + totalMem + " (" + (totalMem/megs) + " MiB)");        System.out.println ("Max Memory:   " + maxMem + " (" + (maxMem/megs) + " MiB)");        System.out.println ("Free Memory:  " + freeMem + " (" + (freeMem/megs) + " MiB)");

 

If i run the above i get:

 

Total Memory: 85000192 (81.0625 MiB)

Max Memory:   129957888 (123.9375 MiB)

Free Memory:  76973192 (73.40735626220703 MiB)

 

If i run the same in processing, a very limited pde i get:

 

Total Memory: 65011712 (62.0 MiB)

Max Memory:   1908932608 (1820.5 MiB)

Free Memory:  57761176 (55.085350036621094 MiB)

 

Now how can i increase the available memory?

 

I tried so many things, in intelliJ i get:

 

Exception in thread "Animation Thread" java.lang.OutOfMemoryError: Java heap space

 

please help

How do I move / drag tabs from one group to another?

$
0
0

Hello,

 

I often work on 2 source files at the same time, so I split the view up in 2.

However, quite often I need to move tabs from one split pane to another. I have tried dragging and dropping the tabs but it does not work. Is this seemingly easy functionality possible in IJ?

 

Thanks

consistency

$
0
0

I wish Intellij would use a traditional red x in the upper right

corner as the close icon.  I squint at the existing icons and try to

guess if they truly mean close.

--

Roedy Green Canadian Mind Products http://mindprod.com

Computers are like Old Testament gods; lots of rules and no mercy.

~ Joseph Campbell (born: 1904-03-26 died: 1987-10-31 at age: 83)

 

v13.1.2 unstable? (lost cursor and then ignore keystrokes)

$
0
0

Hi,

 

Since I updated to IJ 13.1.2 CE (on XUbuntu 13.04), I often experience a lack of responsiveness which eventually (after a few hours) makes the cursor disappear and few keystroke later, the editor ignores all keystrokes. What I do is basic editing and Shift-Ctrl-F9 to compile. If I exit IJ and restart it again, the issue disappears and will come back later.

 

Now go back to 13.1.1 where this issue didn't exist. Sorry for the vague report, if you need anything other info, please show me how to get that info.

 

Thanks


Sorting Methods and Declarations

$
0
0

Rearranger has stopped sorting methods and declarations.

 

I wrote a primitive Rearranger.

 

It parses declarations or method headers, and passes the fields to a

comparator.

 

It then can decide what order it wants the declarations methods

based on the

 

private/public  static/non-static

type(int/void/String/Double/SomeClass) name

 

While it is at it, it complains about caps violations.

 

It would be nice if the new arranger let you write a custom

comparator on some objects with the information about a given block

encoded as strings or enums, then it would be trivial for a Java

programmer to knock off his own comparator, one each for

classes/interfaces, methods/constructors, declarations/static blocks.

You would not need to invent some elaborate specification language

that would never cover everything. Doing it that way would save you a

lot of work, and would give complete flexibility to programmers.

 

The program is mostly a mess of switch statement assigning keywords

and primitives to sorting priorities.

 

e.g.

private static char calcTypeOrder( final String typeName )

        {

        if ( ST.isEmpty( typeName ) )

            {

            return 'z';

            }

        switch ( typeName )

            {

            case "":

                return 'z';

 

            case "boolean":

                return '0';

 

            case "byte":

                return '1';

 

            case "char":

                return '2';

 

            case "short":

                return '3';

 

            case "int":

                return '4';

 

            case "long":

                return '5';

 

            case "float":

                return '6';

 

            case "double":

                return '7';

 

            case "Boolean":

                return '8';

 

            case "Byte":

                return '9';

 

            case "Character":

                return 'A';

 

            case "Short":

                return 'B';

 

            case "Integer":

                return 'C';

 

            case "Long":

                return 'D';

 

            case "Float":

                return 'E';

 

            case "Double":

                return 'F';

 

            case "String":

                return 'G';

 

            default:

                // we should have a class name of some sort e.g.

HashMap

                if ( Character.isUpperCase( typeName.charAt( 0 ) ) )

                    {

                    return 'H';

                    }

                else

                    {

                    err.println( "Class name should start with a

capital letter: " + typeName );

                    return 'I';

                    }

 

            } // end switch

 

You might do your own variant where byte, char, int, long all sort

mixed together by assigning them the same ordering letter.

 

--

Roedy Green Canadian Mind Products http://mindprod.com

Computers are like Old Testament gods; lots of rules and no mercy.

~ Joseph Campbell (born: 1904-03-26 died: 1987-10-31 at age: 83)

 

run/debug configuration location

$
0
0

Where are the run/debug configurations hidden?

 

I looked in:

C:\Users\Roedy\.IntelliJIdea13

F:\Program Files (x86)\JetBrains\IntelliJ IDEA 13.1

and the registry, no joy

 

Are they is some sort of encrypted or binary format?

 

The reason I want to find out is the "classpath of module"

mysteriously disappeared on every entry the I clicked a *.java program

not part of my projects outside of IntelliJ.  It is quite tedious

putting them back manually. I wanted to do a bulk search replace to

repair the damage.

 

 

I would also like to sort them alphabetically.

--

Roedy Green Canadian Mind Products http://mindprod.com

Computers are like Old Testament gods; lots of rules and no mercy.

~ Joseph Campbell (born: 1904-03-26 died: 1987-10-31 at age: 83)

 

13.1.2 Regression in Tomcat logs view filter?

$
0
0

Anybody else seeing problems with the container logs view in 13.1.2? Seems the filter on the right is no longer filtering as-you-type.

 

It was always a bit flaky as it refreshes with every keypress but it seems its working even less well in 13.1.2 and now you need to toggle the left-hand server, logs tabs back & forth before the filtering widget has any effect. The as-you-type filter seems broken?

What plugins do I need to get WebStorm functionality in IDEA?

$
0
0

My company (Java + AngularJS shop) is evaluating both IDEA and WebStorm. Based on some Googling, it looks like IntelliJ IDEA is a superset of the *Storm editors, assuming you install the proper plugins:

 

Practically, if we purchased IntelliJ IDEA 13.1, what plugins would we need to get these WebStorm features:

  • Grunt integration
  • AngularJS integration
  • Bower integration
  • Karma integration
  • JavaScript auto-complete/navigation

 

Some of these might be available out of the box - I'm just not familiar, so any advice would be great. Thanks!

hope idea can support wildcard support with find in path operation

$
0
0

as same as the title, the regular option is not very convenient, hope "find in path" can support wildcard such as * and ?, so we can use "insert into*document" as the text to such

running offline inspections: license needed?

$
0
0

Hello,

 

I was thinking of running IntelliJ inspections offline, as part of the CI build. I understand this can be done by running a shell script as described here: http://www.jetbrains.com/idea/webhelp/running-inspections-offline.html

 

Obviously, IntelliJ needs to be installed on the CI build server. My question is: do I need a separate full license for the CI server?

 

Thanks,

Cristian Vasile Mocanu

IntelliJ 13 hangs frequently

$
0
0

I'm using build 135.480 on Ubuntu 12.4.  IntelliJ seems great when it works, but it seems to be rather fragile.  I find that several times / day I have to restart the IDE, as it hangs doing background tasks.  As I write this there is a hang during Make on "Executing pre-compile tasks...", and I often also get hangs during "Writing classes..." that force a restart.  In some cases, the GUI remains responsive to input commands, in other cases, not so much.

 

I have dumped the threads during this current background task, which I've attached.  I'm hoping someone can help me debug what's happening.  If you have a few minutes to help, I appreciate your time.

 

      Thanks,

       Eric


end markers

$
0
0

Eyeball Blocking

 

One of my big complaints with the Java computer language is you can’t

tell where some source code group ends without a detailed analysis of

every {} inside the group. The } is overloaded for so many purposes.

Is each inside a comment or String or char literal? If so, it

does not count in balancing. The eye cannot analyse such complicated

and deep nesting. You must to use a code-tidying tool to indent, which

the eye can understand, but often the indentation and {} nesting are

out of sync, at the very time you need the indentation most — when the

{} are unbalanced.

 

I hope some day the IDE (Integrated Development Environment) will mark

the ends of ifs, loops, methods, classes… with some subtle but

distinct visual clue in addition to indentation.

 

Possibilities:

 

sizes of {} {} {} {} {}, with bigger pairs on outer blocks.

colours of {}.

synthetic comments e.g.

// end method isReady

// endif

// end for int i

// end class Bonsai

These synthetic comments are not really in the code, and the text

shows in pale grey. You don’t even have to include the //.

icons: if icon loop icon When you configure them as small as a small

as a single letter, they still should be distinct, mainly via colour

than shape.

 

Later on today I will upload a formatted version of this post to

http://mindprod.com/

--

Roedy Green Canadian Mind Products http://mindprod.com

Computers are like Old Testament gods; lots of rules and no mercy.

~ Joseph Campbell (born: 1904-03-26 died: 1987-10-31 at age: 83)

 

Impossible to set global SDK after upgrade to 13.1.2

$
0
0

Upgraded on Apr 24 from 13.1.1 to 13.1.2

IntelliJ comes up without Global SDK set (why?!) and any attempts to set it result in errors

 

- errors go in idea.log only, without any explanation in the IDE itself

- errors look like below, with various class names

- per suggestion of Serge Baranov I disabled all plug-ins except IDEAIvy, which I need for builds, but that did not help, although particular class that was "NotFound" has changed

- I downloaded a fresh JDK from Oracle, it's the same that is used by Windows 7 OS, Chrome and other software on this machine, I don't think the SDK itself is a problem

- Upgraded to lates 13.1.2 build on Apr 28 - no difference

 

Can one do anything withour a global SDK? the answer is NO

 

2014-04-28 18:56:36,181 [ 483317]  ERROR - llij.ide.plugins.PluginManager - Could not initialize class com.intellij.openapi.vfs.impl.jar.JarHandler$CacheLibraryInfo

java.lang.NoClassDefFoundError: Could not initialize class com.intellij.openapi.vfs.impl.jar.JarHandler$CacheLibraryInfo

 

at com.intellij.openapi.vfs.impl.jar.JarHandler.getMirrorWithContentHash(JarHandler.java:117)

 

at com.intellij.openapi.vfs.impl.jar.JarHandler.getMirrorFile(JarHandler.java:94)

 

at com.intellij.openapi.vfs.impl.jar.JarHandlerBase.createJarFile(JarHandlerBase.java:102)

 

at com.intellij.openapi.vfs.impl.jar.JarHandlerBase.getJar(JarHandlerBase.java:88)

 

at com.intellij.openapi.vfs.impl.jar.JarHandlerBase.convertToEntry(JarHandlerBase.java:282)

 

at com.intellij.openapi.vfs.impl.jar.JarHandlerBase.getAttributes(JarHandlerBase.java:348)

 

at com.intellij.openapi.vfs.impl.jar.JarFileSystemImpl.getAttributes(JarFileSystemImpl.java:363)

 

at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.getId(PersistentFSImpl.java:392)

 

at com.intellij.openapi.vfs.newvfs.impl.VirtualDirectoryImpl.doFindChild(VirtualDirectoryImpl.java:231)

 

at com.intellij.openapi.vfs.newvfs.impl.VirtualDirectoryImpl.findChild(VirtualDirectoryImpl.java:108)

 

at com.intellij.openapi.vfs.newvfs.impl.VirtualDirectoryImpl.findChild(VirtualDirectoryImpl.java:656)

 

at com.intellij.openapi.vfs.newvfs.impl.VirtualDirectoryImpl.findChild(VirtualDirectoryImpl.java:61)

 

at com.intellij.openapi.vfs.newvfs.VfsImplUtil.findFileByPath(VfsImplUtil.java:55)

 

at com.intellij.openapi.vfs.impl.jar.JarFileSystemImpl.findFileByPath(JarFileSystemImpl.java:326)

 

at com.intellij.openapi.vfs.impl.VirtualFileManagerImpl.findFileByUrl(VirtualFileManagerImpl.java:135)

 

at com.intellij.openapi.projectRoots.impl.JavaSdkImpl.findInJar(JavaSdkImpl.java:543)

 

at com.intellij.openapi.projectRoots.impl.JavaSdkImpl.findSources(JavaSdkImpl.java:517)

 

at com.intellij.openapi.projectRoots.impl.JavaSdkImpl.findSources(JavaSdkImpl.java:504)

 

at com.intellij.openapi.projectRoots.impl.JavaSdkImpl.setupSdkPaths(JavaSdkImpl.java:320)

 

at com.intellij.openapi.projectRoots.SdkType.setupSdkPaths(SdkType.java:85)

 

at com.intellij.openapi.roots.ui.configuration.projectRoot.ProjectSdksModel.setupSdk(ProjectSdksModel.java:284)

 

at com.intellij.openapi.roots.ui.configuration.projectRoot.ProjectSdksModel.access$200(ProjectSdksModel.java:48)

 

at com.intellij.openapi.roots.ui.configuration.projectRoot.ProjectSdksModel$5.consume(ProjectSdksModel.java:275)

 

at com.intellij.openapi.roots.ui.configuration.projectRoot.ProjectSdksModel$5.consume(ProjectSdksModel.java:269)

 

at com.intellij.openapi.projectRoots.impl.SdkConfigurationUtil$7.consume(SdkConfigurationUtil.java:303)

 

at com.intellij.openapi.projectRoots.impl.SdkConfigurationUtil$7.consume(SdkConfigurationUtil.java:298)

 

at com.intellij.openapi.fileChooser.ex.FileChooserDialogImpl.choose(FileChooserDialogImpl.java:133)

 

at com.intellij.openapi.fileChooser.FileChooser.chooseFiles(FileChooser.java:111)

 

at com.intellij.openapi.fileChooser.FileChooser.chooseFiles(FileChooser.java:89)

 

at com.intellij.openapi.projectRoots.impl.SdkConfigurationUtil.selectSdkHome(SdkConfigurationUtil.java:298)

 

at com.intellij.openapi.roots.ui.configuration.projectRoot.ProjectSdksModel.doAdd(ProjectSdksModel.java:269)

 

at com.intellij.openapi.roots.ui.configuration.projectRoot.ProjectSdksModel$3.actionPerformed(ProjectSdksModel.java:251)

 

at com.intellij.ui.popup.PopupFactoryImpl$ActionPopupStep$1.run(PopupFactoryImpl.java:733)

 

at com.intellij.ui.popup.AbstractPopup$18.run(AbstractPopup.java:1248)

 

at com.intellij.openapi.wm.impl.FocusManagerImpl.flushRequest(FocusManagerImpl.java:649)

 

at com.intellij.openapi.wm.impl.FocusManagerImpl.flushNow(FocusManagerImpl.java:630)

 

at com.intellij.openapi.wm.impl.FocusManagerImpl.flushIdleRequests(FocusManagerImpl.java:600)

 

at com.intellij.openapi.wm.impl.FocusManagerImpl.access$200(FocusManagerImpl.java:60)

 

at com.intellij.openapi.wm.impl.FocusManagerImpl$7.run(FocusManagerImpl.java:496)

 

at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:2053)

 

at com.intellij.openapi.wm.impl.FocusManagerImpl.doWhenFocusSettlesDown(FocusManagerImpl.java:474)

 

at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.doWhenFocusSettlesDown(IdeFocusManagerImpl.java:59)

 

at com.intellij.ui.popup.AbstractPopup.dispose(AbstractPopup.java:1254)

 

at com.intellij.ui.popup.WizardPopup.dispose(WizardPopup.java:153)

 

at com.intellij.ui.popup.list.ListPopupImpl.dispose(ListPopupImpl.java:290)

 

at com.intellij.ui.popup.WizardPopup.disposeAllParents(WizardPopup.java:256)

 

at com.intellij.ui.popup.list.ListPopupImpl.handleNextStep(ListPopupImpl.java:407)

 

at com.intellij.ui.popup.list.ListPopupImpl._handleSelect(ListPopupImpl.java:367)

 

at com.intellij.ui.popup.list.ListPopupImpl.tryToAutoSelect(ListPopupImpl.java:129)

 

at com.intellij.ui.popup.list.ListPopupImpl.beforeShow(ListPopupImpl.java:92)

 

at com.intellij.ui.popup.AbstractPopup.show(AbstractPopup.java:673)

 

at com.intellij.ui.popup.WizardPopup.show(WizardPopup.java:199)

 

at com.intellij.ui.popup.AbstractPopup.show(AbstractPopup.java:432)

 

at com.intellij.ui.popup.AbstractPopup.showUnderneathOf(AbstractPopup.java:426)

 

at com.intellij.openapi.ui.MasterDetailsComponent$MyActionGroupWrapper.actionPerformed(MasterDetailsComponent.java:936)

 

at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:164)

 

at com.intellij.openapi.actionSystem.impl.ActionButton.actionPerformed(ActionButton.java:170)

 

at com.intellij.openapi.actionSystem.impl.ActionButton.performAction(ActionButton.java:133)

 

at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:313)

 

at java.awt.Component.processEvent(Component.java:6270)

 

at java.awt.Container.processEvent(Container.java:2229)

 

at java.awt.Component.dispatchEventImpl(Component.java:4861)

 

at java.awt.Container.dispatchEventImpl(Container.java:2287)

 

at java.awt.Component.dispatchEvent(Component.java:4687)

 

at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)

 

at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)

 

at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)

 

at java.awt.Container.dispatchEventImpl(Container.java:2273)

 

at java.awt.Window.dispatchEventImpl(Window.java:2719)

 

at java.awt.Component.dispatchEvent(Component.java:4687)

 

at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)

 

at java.awt.EventQueue.access$200(EventQueue.java:103)

 

at java.awt.EventQueue$3.run(EventQueue.java:694)

 

at java.awt.EventQueue$3.run(EventQueue.java:692)

 

at java.security.AccessController.doPrivileged(Native Method)

 

at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)

 

at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)

 

at java.awt.EventQueue$4.run(EventQueue.java:708)

 

at java.awt.EventQueue$4.run(EventQueue.java:706)

 

at java.security.AccessController.doPrivileged(Native Method)

 

at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)

 

at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)

Groovy enum errors being flagged by the IDE

$
0
0

I have a groovy project with an enumeration, and I'm getting spurious errors that seem to indicate that IntelliJ is attempting to parse the file as a Java file rather than a groovy file.

 

';','}' or new line expected.

 

I've pasted the entirety of the enum definition below.  I'm getting this error on each of the enumerated value lines.

 

enum Token {
     NUMBER(/^[+-]?[0-9]*\.?[0-9]*([Ee][+-]?[0-9]+)?$/)
    ,STRING(/^\S+$/)   
    ,SOLID(/^solid$/)
    ,ENDSOLID(/^endsolid$/)
    ,FACET(/^facet$/)
    ,ENDFACET(/^endfacet$/)
    ,NORMAL(/^normal$/)
    ,OUTER(/^outer$/)
    ,LOOP(/^loop$/)
    ,ENDLOOP(/^endloop$/)
    ,VERTEX(/^vertex$/)
   
    String pattern
    Token(String pattern) {
        this.pattern = pattern
    }
}

 

Any ideas how to get around this?

 

Thanks,

David Sharp

Rspec 2.9.0 in IntelliJ

$
0
0

Hello,

 

I'm trying to run my Rspec tests from within IntelliJ.

This is not a Ruby on Rails project, but a base Ruby project with Sinatra. I am using bundler however to manage the gems I use.

The structure is pretty similar to a RoR project to make it easier on using gems such as Rspec and Cucumber.

 

However when I try to run the Rspec tests, I receive the following error:

 

Error running base_talker_spec:

RSpec support is disabled because 'rspec-rails' gem or RSpec Rails plugin are missing. Install and activate gem at first.

 

Why do I need this gem suddenly? It was working fine in Rubymine, but since upgrading to IntelliJ with the plugin, alot of things are working totally different.

Can I get rid of the "Compilation completed successfully" popup?

$
0
0

Whenever I compile (or launch, with a pre-launch "Make") my Flex project, I get the following popup:

compilationCompletedSuccesfully.png

 

In Settings -> Notifications, I have "Compiler" and "Flash Compiler" set to "No popup":

 

notificationSettings.png

 

What am I doing wrong?

 

Thanks!

Rob

Viewing all 5661 articles
Browse latest View live


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