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

Error rendering preview of XML layout with

$
0
0

Hi,

I have Intellij 14.1,JDK 1.7, JDK 1.7.0_75.

I use Google Maps with fragment tag in layout.

I got the following error rendering preview of my XML layout:

Rendering problems.

Java.lang.stackoverflowError

The app runs okay on Emulator and device.

Other XML layout previews are okay.

My XML:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent"
              android:layout_height="match_parent"
              android:background="@color/backNormal"
              android:orientation="vertical"
        >

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:background="@color/backNormal"
                  android:orientation="horizontal"
                  android:layout_marginTop="5dp"
                  android:layout_marginBottom="5dp"
            >
        <Button
                android:id="@+id/buttonWay"
                android:gravity="center"
                android:text='Start'
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                style="@style/button_style_normal"
                android:layout_marginLeft="2dp"
                android:layout_marginRight="2dp"
                />
    </LinearLayout>
    <fragment
            android:id="@+id/map"
            android:name="com.google.android.gms.maps.MapFragment"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            tools:layout="@layout/page_one"/>
</LinearLayout>

My second question is how to place XML  layout preview
on the right side of screen and int's source  on the left side
simultaneously (just like in IntelliJ 12 version)

Thanks!


All settings gone after power failure??

$
0
0

Last Friday we had a power failure, while I was working with IntelliJ. Now I start the IDE, but every setting seems to be gone. Errors about "$ROOT_CONFIG$/colors" and "config/options" xml files, see attached logfile.

 

In .IntelliJIdea14\config\ there is a settings.jar, I will try to use that to restore, but I still miss all my projects.

 

Any idea how this is possible??

Always view code in one format, save in another

$
0
0

This is a feature request from a long time Idea user. It would be incredibly helpful if Idea had an option to always show your files formatted according to your local code formatting rules, but always save files in a different format. This is essentially 2 automatic Code/Reformat Code calls. Why? Because code formatting is a bit of a religious topic and people have strong views. Developers usually feel their preferred formatting makes them more productive. If you work on open source projects, each one often has their own code styles -- some even fail the build if you violate the styles. This option would allow developers to always deal with their preferred code formatting, but adhere to whatever standards their project has.


I realize there's several edge cases here where this gets tricky. You probably only want to save the reformatting for lines that have actually been changed just so source control doesn't show a bunch of changes that were merely automatic format changes.

 

Edit:

This is being flagged as "not a question". I wasn't aware discussions needed to be questions. Regardless, here's my question: where should I post this to become a feature request?

14.1 look & feel - too flat

$
0
0

Hi, I upgraded to the 14.1 yesterday and for the first time in 10+ year history of using IDEA I'm afraid of changes coming. Please don't go too far with getting rid of shadows, borders and backgrounds!

 

I understand that flat designs are very fashionable nowadays, but design should not win in comparison with convenience of use. To be the most handy and easy-to-use as well as full-featured dev tool was a main goal of IDEA all this time. Please stick to that going ahead. Design fashion is a subject to change, while the application is losing the usability following it.

 

Colors are really needed to distinguish semantically different areas of the IDE screen and the new marker bar doesn’t make me optimistic. It doesn’t react on theme switching staying flat and transparent; new pale marker colors are also a try to look modern instead of making a bright warning to the user about the line status (which is actually a main purpose of these markers).

 

I beg you to stop visually ruin the IDE for the sake of today’s design trends. Please don’t end up as MS Outlook 2013 which is now a chaotic set of letters and monochrome icons on white background.

 

To summarize, please:

1)     Do not remove backgrounds for the separate screen areas.

2)     Do not change colors that have to be semantically bright.

3)     Make design changes theme-dependent, so users who like the old L&F could continue use it.

 

Thank you.

 

 

P.S. Also I liked the eye icon checking my files :))

Keyboard shortcut for Open Recent no longer works in 14.1

$
0
0

Just upgraded to 14.1, and the keyboard shortcut I had assigned to the Open Recent (project) command is gone and it won't let me assign a new one. Here's another clue: if you search for "Recent" in the Keymap preferences, the "Open Recent" command doesn't even come up.

Buggy error panel when no licences available on licences server

$
0
0

Hello,

 

With IDEA 14.1, a co-worker installed the app like we're used to and put in the url of license server to register the copy. He then had a blank error panel, with no message but just a "OK" button.

 

The problem was that there were no license available.

 

Maybe a more explict error message would help

 

Cheers,

 

Sébastien

How I can use the Component Palette when creating JSF

$
0
0

How I can use the Component Palette when creating JSF (as well as for form)

There is not items in window "JSF" in "Components" .

I have created a JSF project with using ISE FACES components and without it.

Plugin for JSF is checked.

 

Message was edited by: Sergey Sokolov

 

Message was edited by: Sergey Sokolov

Can Intellij create class properties in ActionScript?

$
0
0

Is there a way to create or refactor a class property when I am writing a function? For example, if I want to have "someFlag" as a variable in my function, can IntelliJ create the declaration "private var _someFlag:Boolean"? Can I convert a function variable, "var someFlag:Boolean=false" to a class property?


Maven download sources: fails with NPE [SOLVED]

$
0
0

Hi guys,

 

We run into problems when we want to download our sources jars. They are available on the artifactory server but the download does not work. I've trace with wireshark no request is made/sent.

 

In de idea.log file I found a NPE (see below) but I can't figure out what cause the problem. The line where the NPE occurs is:

 

       File checkFile = new File(session.getLocalRepository().getBasedir(), session.getLocalRepositoryManager().getPathForRemoteMetadata(metadata, repository, request.getRequestContext()));

Is there any way to get more debugging information. This is a real problem for our team.
Best regards,
Johan

 

2015-03-31 11:21:18,713 [ 494026]   INFO -      #org.jetbrains.idea.maven -

java.lang.NullPointerException

at org.sonatype.aether.impl.internal.DefaultMetadataResolver.resolve(DefaultMetadataResolver.java:279)

at org.sonatype.aether.impl.internal.DefaultMetadataResolver.resolveMetadata(DefaultMetadataResolver.java:173)

at org.apache.maven.repository.internal.DefaultVersionResolver.resolveVersion(DefaultVersionResolver.java:225)

at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:272)

at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)

at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:193)

at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:286)

at org.jetbrains.idea.maven.server.embedder.CustomMaven3ArtifactResolver.resolveOld(CustomMaven3ArtifactResolver.java:206)

at org.jetbrains.idea.maven.server.embedder.CustomMaven3ArtifactResolver.resolve(CustomMaven3ArtifactResolver.java:152)

at org.jetbrains.idea.maven.server.embedder.CustomMaven3ArtifactResolver.resolve(CustomMaven3ArtifactResolver.java:139)

at org.jetbrains.idea.maven.server.embedder.CustomMaven3ArtifactResolver.resolve(CustomMaven3ArtifactResolver.java:518)

at org.jetbrains.idea.maven.server.Maven3ServerEmbedderImpl.resolve(Maven3ServerEmbedderImpl.java:753)

at org.jetbrains.idea.maven.server.Maven3ServerEmbedderImpl.doResolve(Maven3ServerEmbedderImpl.java:731)

at org.jetbrains.idea.maven.server.Maven3ServerEmbedderImpl.doResolve(Maven3ServerEmbedderImpl.java:725)

at org.jetbrains.idea.maven.server.Maven3ServerEmbedderImpl.resolve(Maven3ServerEmbedderImpl.java:637)

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:606)

at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)

at sun.rmi.transport.Transport$1.run(Transport.java:177)

at sun.rmi.transport.Transport$1.run(Transport.java:174)

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

at sun.rmi.transport.Transport.serviceCall(Transport.java:173)

at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:556)

at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:811)

at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:670)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:744)

Impossible to control which thread is stepped in debugger. Debugger rapidly oscillates between threads.

$
0
0

Hi folks,

 

When I have multiple threads hitting breakpoints, it's sometimes impossible to control which thread runs when you step over the code. When you step, it switches to another thread that is on a breakpoint and steps that instead. It seems to sometimes be possible to select the thread to step by the Frames or Threads tab, but it is unreliable. And sometimes the debugger rapidly oscillates (flickers) between threads on breakpoints so fast that it's unusable. This is IDEA 14.0.1 with suspend policy = Thread, not All. Let me explain how I expect it to behave: when a thread hits a breakpoint the debugger should switch context to that thread and show its stack and variables, even if you were looking at another thread on a breakpoint. It should be possible to switch context back to the original thread and resume stepping that. Either by selecting the thread in the Frames or Threads tab. The debugger should only switch to another stopped thread when you resume the thread (F9), or select another thread, or a new thread hits a breakpoint.

 

I had this problem with an earlier verison of IDEA (10?) and had a conversation with you guys at Jetbrains but I can't find a forum thread or Youtrack issue for it, so I think it must have been on email from a work email account I no longer have access to. IIRC it was fixed in a newer version of IDEA (11?) but seems to have reappeared in 14. There are these issues which describe it well:

 

https://youtrack.jetbrains.com/issue/IDEA-73165

 

https://youtrack.jetbrains.com/issue/IDEA-78016

 

Can anyone comment on whether this was fixed and has now regressed and whether you are aware of this issue?

 

Thanks a lot.

 

Alex

Why do import statements disappear, as soon as you press Enter

$
0
0

Hi,

 

In my Java project/Groovy Framework, I can't type in any import statements.  As soon as the import statement is typed, and Enter is pressed, it completely disappears.  There's nothing, not even a code folding situation; it just refuses to persist, in the source code file.

Terminal seems to be disabled in 14.1

$
0
0

Just installed the new 14.1

 

Terminal opens without prompt, it's really looks like it's been dsabled.

 

Any way to ressurect it? I'm on Linux Mint 17 xfce

 

thanks,

john

Disable highlighting in fxml code

$
0
0

Hello,

 

i have for example a button in my fxml file with a onAction event but no controller assigned inside the fxml.

because of that, IntelliJ IDEA colors the onActions red and gives me a lot of errors when i commit my code or in other situations (codeanalysis...)

 

how can i disable the coloring and turn off the errors

 

 

Thanks a lot

Navigate -> Class (ctrl-n) no longer shows packages in 14.1

$
0
0

In 14.0 ctrl-n would show the package for Java, JavaScript, etc. files which is very useful when you have several files with same name. In 14.1 it just shows the file name. Is there a way to get this very useful functionality back in 14.1?

Console Compile Errors not in order with main() calls ?

$
0
0

Have few lines which print to console, system.out

 

Calling a method which triggers an exception, like out of bounds for example, will make those errors appear at top in console, interupted by some system.outs...

Spamming the green arrow will randomly show those errors at bottom as it should be...

 

Setting or Bug ?


Is anyone else having trouble with 14.1 repeatedly reindexing?

$
0
0

Hi

 

Is anyone else having trouble with 14.1 repeatedly reindexing?

 

This typically happens to me once or twice per day.  I cannot be sure what triggers it, but once it starts I have to restart IDEA in order to stop it.

 

This started to happen with a late EAP version, certainly in 141.175.3 and perhaps a release or two earlier.  A clooeague today tells me he is seing the same in the released version.

 

We typically have open Play Framework version 2 projects in Scala and version 1 in Java, on OSX Yosemite using Oracle JDK 7 or 8.

 

I hesitate to raise a bug, because I'm so unsure of what might trigger it.

 

ATB

14.1: Project structure not imported correctly from 14.0.3 - anyone else experiencing issues?

$
0
0

Hi all,

 

I just installed IntelliJ 14.1, Community Edition. I didn't remove any of my previous installations, so still have 14.0.3 and 13.1.4 on my disk.

 

When I opened 14.1 up, it initially looked like it had imprted settings and projects automagically, but when I open my Java project, the Project Structure settings don't seem to be able to import my modules properly: There is no Content Root defined, and the dependency lists are empty.

 

Any idea what went wront? Is anyone else having these issues?

 

Kind regards,

 

Christian

14.0.3 SVN merge, revert, remerge issue

$
0
0
I'm asked regularly to merge XSD and WSDL files from an analysts branch on SVN.  Yesterday I met with a very strange problem.  I'll go over the steps, maybe someone can reproduce the issue.
1. Merge the xsd analysts branch with the trunk, using 'Subversion Working Copies Information', 'Merge from...', 'Branch....'.  I pressed cancel when the commit screen popped up in order to have an SVN changelist 'merge from <branch>'.  Then move one file to another changelist (is required for a different job).
2. After a little while part of the branch in my changelist is committed, one file kept seperately is not.  Meanwhile new changes on the BRANCH have been done to the file I kept seperate.  And I'm asked to do a new analysts xsd merge.
3. Same scenario as point 1, but one file got merged by IntelliJ smart merge, namely the file I kept locally.
4. An analyst tells me the changes he's made to the branch are not ok, so I revert the whole thing.  This includesthe file I used to keep in a seperate changelist.
5. Same scenario as point 1 BUT, the changes that were merged by IntelliJ are gone. Newer changes to that file are there, but the changes that were merged by IntelliJ are somehow 'forgotten'.  I assume IntelliJ still wrongly thinks that those changes are already on my local project, but that's just speculation.
Note: If I compare that file with the branch using 'SVN compare with branch' then the missing changes are registered.
This seems a very nasty bug, I would have broken the build on production day if I hadn't been paying attention closely and if I hadn't read that file before the ordeal.

Idea get into infinite sending request to my web app when web app start up

$
0
0

Idea version : 14.1

tomcat version: 7.0.47

java version: 1.7.0_51

OS: OS X 10.10.2

Default browser: chrome 41.0.2272.104 (64-bit)

 

I set up a simple web app sample of java servlet. But it get into infinite loop when I use the idea option "Run/Debug Configurations - Open browser - After launch".

 

My Code:

 

LogFilter.java

 

publicclass LogFilter implements Filter {     @Override    publicvoid init(FilterConfig filterConfig) throws ServletException {     }     @Override    publicvoid doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {        System.out.println("Test");        chain.doFilter(request, response);    }     @Override    publicvoid destroy() {     }} 

 

SimpleServlet.java

 

publicclass SimpleServlet extends HttpServlet {     privatefinalstatic String USERNAME = "test";    privatefinalstatic String PASSWORD = "root";     @Override    protectedvoid doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {        String user = req.getParameter("username");        String pass = req.getParameter("password");         resp.setHeader(HttpHeaders.CONTENT_TYPE, "text/html; charset=UTF-8");        if (user != null&& user.equals(USERNAME) && pass != null&& pass.equals(PASSWORD)) {            resp.getWriter().write("succ");        }else{            resp.getWriter().write("fail");        }    }}   

 

web.xml

 

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE web-app        PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN        http://java.sun.com/dtd/web-app_2_3.dtd><web-app>    <filter>        <filter-name>logFilter</filter-name>        <filter-class>com.qunar.fresh.zhenweiliu.servlet.LogFilter</filter-class>    </filter>    <filter-mapping>        <filter-name>logFilter</filter-name>        <url-pattern>/*</url-pattern>    </filter-mapping>    <servlet>        <servlet-name>controlServlet</servlet-name>        <servlet-class>com.qunar.fresh.zhenweiliu.servlet.SimpleServlet</servlet-class>        <!--<load-on-startup>1</load-on-startup>-->    </servlet>    <servlet-mapping>        <servlet-name>controlServlet</servlet-name>        <!--<url-pattern>/*</url-pattern>-->        <url-pattern>/login</url-pattern>    </servlet-mapping></web-app>

 

 

The thing is, when I click the debug button, the artifact deploy successfully.But the browser window never pop up, and the console keep infinite print "Test Test Test ...",

which means the filter is invoked infinitely.

 

If I uncheck the After Launch option in Run/Debug Configurations. Problem disappeard.

 

So I think there is something makes idea can not open the brower. And idea keep openning the browser, and keep sending a request "localhost:8080" and triger the Filter infinitely.

 

Is there something wrong with my code ? Or a bug of idea ?

 

Update :

 

I use tcpdump to grep some packet.

 

sudo tcpdump -X -i lo0 dst host localhost and dst port 8080

 

It shows there many packets like below:

 

22:45:50.208234 IP localhost.60174 > localhost.http-alt: Flags [P.], seq 0:219, ack 1, win 12759, options [nop,nop,TS val 452236887 ecr 452236887], length 219     0x0000:  4500 010f 0491 4000 4006 0000 7f00 0001  E.....@.@.......     0x0010:  7f00 0001 eb0e 1f90 a3ae 7690 cd4f 06b3  ..........v..O..     0x0020:  8018 31d7 ff03 0000 0101 080a 1af4 9657  ..1............W     0x0030:  1af4 9657 4745 5420 2f20 4854 5450 2f31  ...WGET./.HTTP/1     0x0040:  2e31 0d0a 5573 6572 2d41 6765 6e74 3a20  .1..User-Agent:.     0x0050:  496e 7465 6c6c 694a 2049 4445 410d 0a41  IntelliJ.IDEA..A     0x0060:  6363 6570 742d 456e 636f 6469 6e67 3a20  ccept-Encoding:.     0x0070:  677a 6970 0d0a 4361 6368 652d 436f 6e74  gzip..Cache-Cont     0x0080:  726f 6c3a 206e 6f2d 6361 6368 650d 0a50  rol:.no-cache..P     0x0090:  7261 676d 613a 206e 6f2d 6361 6368 650d  ragma:.no-cache.     0x00a0:  0a48 6f73 743a 206c 6f63 616c 686f 7374  .Host:.localhost     0x00b0:  3a38 3038 300d 0a41 6363 6570 743a 2074  :8080..Accept:.t     0x00c0:  6578 742f 6874 6d6c 2c20 696d 6167 652f  ext/html,.image/     0x00d0:  6769 662c 2069 6d61 6765 2f6a 7065 672c  gif,.image/jpeg,     0x00e0:  202a 3b20 713d 2e32 2c20 2a2f 2a3b 2071  .*;.q=.2,.*/*;.q     0x00f0:  3d2e 320d 0a43 6f6e 6e65 6374 696f 6e3a  =.2..Connection:     0x0100:  206b 6565 702d 616c 6976 650d 0a0d 0a    .keep-alive....

Download 14.1.1 without custom jdk

$
0
0

Hi all,

 

in the download page I can download only the custom jdk version with JDK 1.8.0_40.

This configuration in my Mac Book Pro 17″ mid 2009, OS 10.10.2 requires the fast GPU that drain the battery very fast and use a lot of CPU.

 

The 14.1.1 can be used also with JDK 1.6?

If yes, where I can download the 14.1.1 without custom jdk?
If no, how can I fix the battery drain or don’t use the fast GPU?

 

Moreover, if I want to start Intellij with JDK 1.8 there is a way to tell it to not use the Fast GPU?

 

Thanks.
Stefano

Viewing all 5661 articles
Browse latest View live


Latest Images

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