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

How often new features from AS are merged to Intellij IDEA

$
0
0

Hi, I am using Intellij IDEA for Android Development.

 

So I am wondering how often new features from Android Studio are merged to Intellij IDEA?

 

And where I can check which AS features are available in certain Intellij IDEA version?


Somehow I disabled the "add javadoc" quick fix. How can I re-add it to the quick fix context menu?

$
0
0

Using II 14.1.5, W7 Pro.

 

I make heavy use of the "Declaration has Javadoc problems" inspection to ensure I comment everything.

 

I used to be able to ALT+ENTER -> Add javadoc to quickly add a pre-formatted comment block, but I must have done something to disable this.

 

All other quick-fixes still work fine.  I don't see any options for this in Inspection Settings.

 

How can I get this back?

 

Thanks.

IntelliJ and Tomee 7 snapshot (tomcat 8)

$
0
0

Hi guys,

 

I was previously running tomee 1.7.2 in intellij without any problems. It was running with myfaces 2.2.8 (api & core) jars in the library. Today I downloaded the 7-snapshot.

 

After setting up the application server, run configuration and running there is no application running. Files appear in the out directory. Upon stopping the server I get the following error message:

 

'Application Server was not connected before run configuration stop, reason: javax.naming.NamingException: Cannot lookup '/openejb/DeployerBusinessRemote'

 

Also, a difference I have noticed is the intellij folder. The 1.7.2 app server outputs a folder named 'TomEE_7_0_62_AppDI' whereas the 7 app server outputs a folder named 'Unnamed_AppDI_4'. It is the 'Unnamed_' that looks suspicious as it is not unnamed (unless I'm missing something).

 

Further to this, I tested the server outside of IntelliJ and it works.

 

Do you have any suggestions?

 

I have included the output from the log:

 

C:\apache-tomee-plus-7.0.0\bin\catalina.bat run
[2015-11-30 05:07:58,724] Artifact idaccessweb:war exploded: Server is not connected. Deploy is not available.
Using CATALINA_BASE:   "C:\Users\Mark\.IntelliJIdea15\system\tomcat\Unnamed_AppDI_4"
Using CATALINA_HOME:   "C:\apache-tomee-plus-7.0.0"
Using CATALINA_TMPDIR: "C:\apache-tomee-plus-7.0.0\temp"
Using JRE_HOME:        "C:\Program Files (x86)\Java\jdk1.8.0_65"
Using CLASSPATH:       "C:\apache-tomee-plus-7.0.0\bin\bootstrap.jar;C:\apache-tomee-plus-7.0.0\bin\tomcat-juli.jar"
INFO - Server version:        Apache Tomcat (TomEE)/8.0.29 (7.0.0-SNAPSHOT)
INFO - Server built:          Nov 20 2015 09:18:00 UTC
INFO - Server number:         8.0.29.0
INFO - OS Name:               Windows 10
INFO - OS Version:            10.0
INFO - Architecture:          x86
INFO - Java Home:             C:\Program Files (x86)\Java\jdk1.8.0_65\jre
INFO - JVM Version:           1.8.0_65-b17
INFO - JVM Vendor:            Oracle Corporation
INFO - CATALINA_BASE:         C:\Users\Mark\.IntelliJIdea15\system\tomcat\Unnamed_AppDI_4
INFO - CATALINA_HOME:         C:\apache-tomee-plus-7.0.0
INFO - Command line argument: -javaagent:C:\apache-tomee-plus-7.0.0\lib\openejb-javaagent.jar
INFO - Command line argument: -Dcom.sun.management.jmxremote=
INFO - Command line argument: -Dcom.sun.management.jmxremote.port=1099
INFO - Command line argument: -Dcom.sun.management.jmxremote.ssl=false
INFO - Command line argument: -Dcom.sun.management.jmxremote.authenticate=false
INFO - Command line argument: -Djava.rmi.server.hostname=127.0.0.1
INFO - Command line argument: -Djava.util.logging.config.file=C:\Users\Mark\.IntelliJIdea15\system\tomcat\Unnamed_AppDI_4\conf\logging.properties
INFO - Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
INFO - Command line argument: -Djava.endorsed.dirs=C:\apache-tomee-plus-7.0.0\endorsed
INFO - Command line argument: -Dcatalina.base=C:\Users\Mark\.IntelliJIdea15\system\tomcat\Unnamed_AppDI_4
INFO - Command line argument: -Dcatalina.home=C:\apache-tomee-plus-7.0.0
INFO - Command line argument: -Djava.io.tmpdir=C:\apache-tomee-plus-7.0.0\temp
INFO - The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files (x86)\Java\jdk1.8.0_65\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Skype\Phone\;.
INFO - Initializing ProtocolHandler ["http-nio-8080"]
INFO - Using a shared selector for servlet write/read
INFO - Initializing ProtocolHandler ["ajp-nio-8009"]
INFO - Using a shared selector for servlet write/read
INFO - Using 'openejb.jdbc.datasource-creator=org.apache.tomee.jdbc.TomEEDataSourceCreator'
INFO - ********************************************************************************
INFO - OpenEJB http://tomee.apache.org/
INFO - Startup: Mon Nov 30 17:08:02 GMT 2015
INFO - Copyright 1999-2015 (C) Apache OpenEJB Project, All Rights Reserved.
INFO - Version: 7.0.0-SNAPSHOT
INFO - Build date: 20151130
INFO - Build time: 04:07
INFO - ********************************************************************************
INFO - openejb.home = C:\apache-tomee-plus-7.0.0
INFO - openejb.base = C:\Users\Mark\.IntelliJIdea15\system\tomcat\Unnamed_AppDI_4
INFO - Created new singletonService org.apache.openejb.cdi.ThreadSingletonServiceImpl@1dc8ecb
INFO - Succeeded in installing singleton service
INFO - openejb configuration file is 'C:\Users\Mark\.IntelliJIdea15\system\tomcat\Unnamed_AppDI_4\conf\tomee.xml'
INFO - Configuring Service(id=Tomcat Security Service, type=SecurityService, provider-id=Tomcat Security Service)
INFO - Configuring Service(id=Default Transaction Manager, type=TransactionManager, provider-id=Default Transaction Manager)
INFO - Using 'openejb.deployments.classpath=false'
INFO - Creating TransactionManager(id=Default Transaction Manager)
INFO - Creating SecurityService(id=Tomcat Security Service)
INFO - Creating ServerService(id=cxf)
INFO - Creating ServerService(id=cxf-rs)
INFO -   ** Bound Services **
INFO -   NAME                 IP              PORT  
INFO - -------
INFO - Ready!
INFO - Initialization processed in 3243 ms
INFO - Importing a Tomcat Resource with id 'UserDatabase' of type 'org.apache.catalina.UserDatabase'.
INFO - Creating Resource(id=UserDatabase)
INFO - Starting service Catalina
INFO - Starting Servlet Engine: Apache Tomcat (TomEE)/8.0.29 (7.0.0-SNAPSHOT)
INFO - Starting ProtocolHandler ["http-nio-8080"]
INFO - Starting ProtocolHandler ["ajp-nio-8009"]
INFO - Server startup in 87 ms
INFO - Deploying web application directory C:\apache-tomee-plus-7.0.0\webapps\manager
INFO - ------------------------- localhost -> /manager
INFO - Configuring enterprise application: C:\apache-tomee-plus-7.0.0\webapps\manager
INFO - Configuring Service(id=comp/DefaultManagedExecutorService, type=Resource, provider-id=Default Executor Service)
INFO - Auto-creating a Resource with id 'comp/DefaultManagedExecutorService' of type 'javax.enterprise.concurrent.ManagedExecutorService for 'manager'.
INFO - Configuring Service(id=comp/DefaultManagedScheduledExecutorService, type=Resource, provider-id=Default Scheduled Executor Service)
INFO - Auto-creating a Resource with id 'comp/DefaultManagedScheduledExecutorService' of type 'javax.enterprise.concurrent.ManagedScheduledExecutorService for 'manager'.
INFO - Configuring Service(id=comp/DefaultManagedThreadFactory, type=Resource, provider-id=Default Managed Thread Factory)
INFO - Auto-creating a Resource with id 'comp/DefaultManagedThreadFactory' of type 'javax.enterprise.concurrent.ManagedThreadFactory for 'manager'.
INFO - Enterprise application "C:\apache-tomee-plus-7.0.0\webapps\manager" loaded.
INFO - Assembling app: C:\apache-tomee-plus-7.0.0\webapps\manager
INFO - using context file C:\apache-tomee-plus-7.0.0\webapps\manager\META-INF\context.xml
INFO - Deployed Application(path=C:\apache-tomee-plus-7.0.0\webapps\manager)
INFO - At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
INFO - Deployment of web application directory C:\apache-tomee-plus-7.0.0\webapps\manager has finished in 1,556 ms

update not working

$
0
0

I try to update Idea to 14.1.5, the patch file is loaded, the program is restarted, but still the same version (14.1.4). I tried this several times.

In between, a new PHP plugin is installed, but that is not compatible with 14.1.4, so I get an error message and have to disable the plugin.

 

1) what is the name and the location of the patchfile?

2) how can I start it myself

 

For now, I downloaded and installed the complete new version of Idea, but that is a bit of a waste: 304Mb vs. 12 Mb.

error "valide index.jsp file"

$
0
0
Hello.

I created a simple maven project that contains a basic index.jsp file with the IDE IntelliJ IDEA
when I click on "valide index.jsp file"

I get the error:

 

Error:org.apache.jasper.JasperException: The -uriroot option must specify a pre-existing directory

 

1) what is the operation " valide index.jsp file" ?
2) that caused the error and how to fix this ?

Thank you

High DPI Support on Linux in IntelliJ 15.0.1 (idea-IU-143.382.35)

$
0
0

So I used IntellJ 14 with the vm options -Dis.hidpi=true. According the the following blog post, IntelliJ 15 has native high dpi support for UHD/4k monitors:

 

http://blog.jetbrains.com/idea/2015/07/intellij-idea-15-eap-comes-with-true-hidpi-support-for-windows-and-linux/

 

So I booted up IntelliJ 15 today and everything is super tiny again. I don't see anything in settings for either "dpi" or "scaling." So the automatic high-dpi obviously isn't working. How do I set it manually? How is IntelliJ supose to auot-detect it? I'm on Gentoo Linux running the i3 window manager.

bug: ctrl-shift-tabbing to previous editor view detaches editor tab

$
0
0

Hi,

 

I'm on Win10 and I have eclipse default keymaps set with a custom keymap setting "select next tab" to ctrl-tab and "select previous tab" to ctrl-shift-tab. This matches the tab cycling experience in many apps including most web browsers.

 

It works great, however there is one weird little bug I noticed:

When hitting ctrl-shift-tab when also moving the mouse (even a very small amount) the editor tab will detach into its own window. It seems like somehow the mouse movement plus the ctrl-shift-tab keys pressed at once triggers the detach window command (which is normaly evoked by itself through shift-f4). It's kinda annoying when you are cycling through tabs really fast, you have to be conscious not to move the mouse at all when going backwards. I looked to disable the shift-f4 shortcut, but there doesn't seem to be a way to do this in the keymap prefs.

 

Anyone else seen this or have a solution?

Incorrect Java Indentations in IDEA 15.0.1

$
0
0

I've recently switched to 15.0.1 and have found that some of the Java indentations are incorrect, or at least don't match that of prior versions.

 

I have the Java code style set to use a tab character as indentation with tab size, indent, and continuation indent all set to 1.

 

There are at least two areas I've noticed unexpected behavior.  When first creating a Javadoc, an indentation is used before each line's asterisk when I'd like a space there instead.  Also, when I attempt to put method arguments or chained method calls on newlines, it uses two indentations when I'd prefer it only use one.  The attached incorrect indentation image shows these issues as they are now with the current settings, and the desired indentation image shows how they should appear.

 

Are these problems with IDEA and indentations, or are there some style or other settings that I can change to get the desired behavior?  These didn't seem to be issues in 14 (though in 14 I did noticed that altering Javadocs sometimes added an indentation right before the asterisk, which didn't seem correct).  I tend to use them often, so I'd prefer to have them automatically handled rather than manually editing them to look correct.


License server: How to deal with offline clients?

$
0
0

Hello!

 

Does anyone has expericences with License Server and offline clients?

Most of our developers stay in their office, but sometimes they are onsite and do not have a network connection to our lan.

 

Does the license server support that? How does that work? I tried to find some hints on the homepage to did not find anything!

 

Thanks for your replies!

 

BR

Markus

Cannot reformat pasted comments with code

$
0
0

When I paste code that has comments into Intellij (Java), it will correctly reformat the code, but it appears to not recognize that the comments (line or block) should be kept with that code segment (it does not auto-indent and reformatting manually doesn't help)

 

i.e.

If the code I'm pasting inside a function is is

 

//My first line Calendar comment
Calendar mycal = Calendar.getInstance();
//My second line Calendar comment
Calendar mycal = Calendar.getInstance();

/**
* My block calendar comment
*/
Calendar myOtherCal = Calendar.getInstance();

 

I end up getting

 

public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        new AsyncTask<Void, Void, Void>() {

            @Override
            protected Void doInBackground(Void... params) {
                //My first line Calendar comment
                Calendar mycal = Calendar.getInstance();
//My second line Calendar comment
Calendar mycal = Calendar.getInstance();

/**
* My block calendar comment
*/
Calendar myOtherCal = Calendar.getInstance();

 

 

Is there a way to resolve this or is this just a bug?  I looked through the formatting options and didn't see anything.

 

Thanks

Long compile time compared to Flash builder

$
0
0

Hi,

 

I'm currently trying out IntelliJ for AIR developpement, coming from Flash builder.

I'm experiencing unusually long compile times for my modules.

 

For example, a project containing 5 modules takes around 19 seconds to compile compared to 4 seconds with Flash builder. Parallel compiling does not seem to change anything.

 

What kind of settings can I change to get acceptable compile times ?

 

Cheers,

Intellij appends semicolon to TypeScript enums

$
0
0

It seems that TypeScript thinks there should be a semicolon after the last item in an enum, like this:

 

const enum EsNumeros {
   kUno = 1,
   kDos, 
   kTres;
}

 

The typescript compiler doesn't like that terminating semicolon. So I remove it to get rid of the compilation error. Next time I commit to VCS, IntelliJ dutifully puts them right back. Presumably by the "Before Commit: Cleanup" action.

 

Is there some configuration that controls this behavior that I could flip?

 

Mike

The "Apply Non-conflicting Changes" is missing in Intellij 15

Copy Paste and SVN Problem

$
0
0

Hey,

 

I'm having the following problems using IntelliJ IDEA 14:

 

1. Copy Paste between IDEA and other Windows Applications, like Notepad++ etc. stops working all of a sudden. Strange enough copy pasting from IDEA to IDEA works, as does copy pasting between the other Windows Applications.
    A restart of IDEA helps, but a few hours later the problem might occur again. I'm not sure the exceptions in the log file have anything to do with it, because i don't remember anything being logged there the last times this problem occured, but who knows..

 

2. I often get this PTY error you can see in the log, when trying to commit to SVN. Again a restart helps. What does not work at all is the annotate function, for whatever reason (used to work in IDEA 12..).

 

Anyone has an idea about how to fix this stuff?

So far i tried it with different Java versions (1.7.x,1.8.x, 32 and 64 bit) and the 32 and 64 bit IDEA launcher..nothing helped :/

Can I process/parse output (to make it look different?)

$
0
0

I'm using Intellij 14.1.5 (but would not mind to update if that fixes hings).

 

My project is using Node.JS and coffeescript. I have a corresponding Node.JS run configuration, which starts the application just fine. There is one downside: my application uses bunyan for logging. As a result, my output window is now full with highly structured, but quite unreadable log statements, like this:

 

/usr/bin/node index.js
{"name":"queue","hostname":"laptop-guus","pid":24735,"level":20,"msg":"[CONFIG] Current log level: DEBUG","time":"2015-12-03T09:59:28.868Z","v":0}
{"name":"queue","hostname":"laptop-guus","pid":24735,"level":20,"msg":"[DATASTORE] Connecting to require databases","time":"2015-12-03T09:59:32.601Z","v":0}
{"name":"queue","hostname":"laptop-guus","pid":24735,"level":30,"msg":"[SOCKET] Socket server started. Now accepting connections...","time":"2015-12-03T09:59:34.888Z","v":0}
{"name":"queue","hostname":"laptop-guus","pid":24735,"level":20,"msg":"[SOCKET] Setup Redis cluster adapter to 127.0.0.1:6379","time":"2015-12-03T09:59:34.891Z","v":0}
{"name":"queue","hostname":"laptop-guus","pid":24735,"level":20,"msg":"[DATASTORE] All databases ready. Waking up the janitor","time":"2015-12-03T09:59:35.070Z","v":0}
{"name":"queue","hostname":"laptop-guus","pid":24735,"level":20,"msg":"[ELASTICSEARCH] Connecting to localhost:9200","time":"2015-12-03T09:59:32.601Z","v":0}
{"name":"queue","hostname":"laptop-guus","pid":24735,"level":20,"msg":"[COUCHDB] Connecting to localhost:5984","time":"2015-12-03T09:59:32.606Z","v":0}

 

(things get progressively worse when more complex log statements are being created)

 

If i'd start Node from the commandline, I'd simply pipe the bunyan executable:

 

$ /usr/bin/node | /usr/bin/bunyan

 

That would give me something like this:

 

[2015-12-03T09:59:28.868Z] DEBUG: queue/24735 on laptop-guus: [CONFIG] Current log level: DEBUG
[2015-12-03T09:59:32.601Z] DEBUG: queue/24735 on laptop-guus: [DATASTORE] Connecting to require databases
[2015-12-03T09:59:34.888Z]  INFO: queue/24735 on laptop-guus: [SOCKET] Socket server started. Now accepting connections...
[2015-12-03T09:59:34.891Z] DEBUG: queue/24735 on laptop-guus: [SOCKET] Setup Redis cluster adapter to 127.0.0.1:6379
[2015-12-03T09:59:35.070Z] DEBUG: queue/24735 on laptop-guus: [DATASTORE] All databases ready. Waking up the janitor
[2015-12-03T09:59:32.601Z] DEBUG: queue/24735 on laptop-guus: [ELASTICSEARCH] Connecting to localhost:9200
[2015-12-03T09:59:32.606Z] DEBUG: queue/24735 on laptop-guus: [COUCHDB] Connecting to localhost:5984

 

Somehow, I'd like Intellij to parse the output of node using bunyan. Any thoughts on how to do this? I've been playing with the run configuration, but it dislikes the | character...


IntelliJ IDEA 15 Community Edition and Osmorc Plugin

$
0
0

I was running IntelliJ IDEA 14.1.5 Community Edition with the Osmorc v1.4.6 plugin, but when I upgraded to IntelliJ IDEA 15.0.1 the only Osmorc plugin that will load is v1.3.2.

 

Unfortunately, the Osmorc v1.3.2 plugin disables key IntelliJ 15.0.1 Community Edition functionality. For example, in IntelliJ 15.0.1 Community Edition with Osmorc v1.3.2 plugin enabled, you cannot view the project structure (File -> Project Structure... or Ctrl-Alt-Shift-S). Disable the plugin and this functionality works as expected.

 

Does anyone know when the Osmorc v1.4.6 plug-in will be certified for IntelliJ IDEA 15 Community Edition?

 

Note that the Osmorc v1.4.6 plugin is pre-installed in the IntelliJ IDEA 15 Ultimate Edition, but I need to use the Community Edition.

 

Thanks for your help!

Losing customized Keymap on startup

$
0
0

I have on several occasions lost my keymap.

 

I load IntelliJ (14.1.4) and will get this error message:

"Cannot read scheme Default copy.xml  from '$ROOT_CONFIG$/keymaps': Cannot parse first-keystroke: 'alt left'; Action's id=Back; Keymap's name=Default copy"         

 

When I start using it, my customized  keymap is all gone.

Configuring IntelliJ 14 to debug an externally deployed Glassfish app

$
0
0

Hi All IntelliJ IDEA experts,

 

I seek help (if possible please with screenshots) on how to configure

IntelliJ IDEA 14 to just debug a Glassfish 3.1 EAR and WAR

App deployed externally. I mean mvn build and deploy via Glassfish

Admin console and only debug from IntelliJ .

 

I go to set a local debug config in Glassfish and it insists on

deployment of artifacts (which I do not want to do via IntelliJ)

 

Reason for not deploying via IntelliJ is that 2 WAR files  depend on

EAR to be deployed before hand and currently I think IntelliJ does not let you

juggle the deployment order and sorts deployment artifacts by namewise in the

natural sort order (A limitation)

 

Please help with externally configured artifacts based debug configuration help!

DebuggerSupport deprecated - why+alternatives?

$
0
0

Hi,

 

For a plugin that I'm developing I need to keep track of the addition, removal or modification of breakpoints by the IntelliJ user.

Currently, I've accomplished this using the class DebuggerSupport in the package com.intellij.xdebugger.impl.

This class allows me to be notified whenever breakpoints are changed by adding a BreakpointsListener through

getBreakpointPanelProvider().addListener.

 

However, the class DebuggerSupport is marked as deprecated. Therefore, I have the following two related questions:

1) why is this class marked as deprecated?

2) is there an alternative to accomplish the same result without using the deprecated class?

 

Thanks in advance.

Niels

Project Symbol not found in Navigate Symbol or Search Everywhere

$
0
0

Sure I'm doing something dumb...

 

I am using Android Studio 2.0 pr 2 (143.2461418).  This also reproduced in Alpha1.

 

When I do either a search everywhere or navigate to symbol, I methods and fields do not seem to be indexed.  Am I missing a setting somewhere?

 

Thanks!

Viewing all 5661 articles
Browse latest View live


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