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

IntelliJ Open-Source Platform Documentation

$
0
0

Hi,

 

There is plenty of documentation around creating a single plugin that 'adds' functionality to IntelliJ but can someone point me to information on how to create an application (with branding) using the intellij open-source platform?

 

Something along the lines of a tutorial starting with a bare-bones application and then how to insert your plugins and dependencies on the different aspects of the IntelliJ platform you might need.

 

The only information I've found so far was a video that briefly explained ***ApplicationInfo.xml and ***Plugin.xml and how to start using it based on a JVM parameter passed in.

 

Thanks,

Keith


Module compiles, but editor shows compilation issues

$
0
0

Since I reorganized my environment today (New project, clean checkout of code from SVN), I have not been able to edit code without the editor showing 'compilation issues' for code that does actually compile.

 

I have a bunch of Maven modules that compile file using Maven (both from command line and from IDEA) and compilation from IDEA (Build -> Compile/Make) works as well.

But when opening one of the java files, all referenced types that do not originate from my Maven module itself (types from dependencies) are marked as compilation problems ('Cannot resolve symbol XYZ') in the editor. Code completion only reveals types from dependencies when I type the fully qualified name, but a type entered this way is still displayed as a compilation problem (red).

 

I have no clue what is going wrong here. Has any encountered this behaviour before? I am using IDEA 13.1.1.

Switching from Darcula back to ... color scheme

$
0
0

I have tried that Dracula that many ppl are raving about and decided not to use it.

However, when simply switching back to either my custom or default one most of the screen elements are still in "Dracul'ed" style.

As far as I can tell on the editor pane and the console pane are back to "normal". I'd hate to just reinstall the whole app. Please advise. Thanks.

Code arrangement - blank lines? comments between sections?

$
0
0

I've got two questions about Code Style -> Arrangement:

 

First, is it possible to inject a blank line between sections?  For example, I'd like to have an arrangement like this:

 

...

[var] [public]

[blank line]

[var] [protected]

[blank line]

[var] [package private]

[blank line]

[var] [private]

...

 

 

Second, is it possible to inject comments between sections?  For example, I'd like something like this:

 

[constructor]

///////////////////////////////////

// Properties

//////////////////////////////////

[property] [public]

[property] [public] [override]

[property] [protected]

...

/////////////////////////////////////

// Functions

/////////////////////////////////////

[blank line]

//-------------------------

// Public functions

//-------------------------

[method] [public]

[blank line]

//-------------------------

// Public overrides

//-------------------------

[method] [public] [override]
...
and so on.
Are either of these possible?

Newbie Help Gui Forms

$
0
0

Hi:

 

I am new to intellij and java (formerly used c++) and am having difficulty getting a simple gui form to run using the visual layout editor.  My form is a simple one as you can see belowHelloWorldGui.tiff

 

Code generated by IntelliJ is

 

public class SimpleForm {

    private JButton clickMeButton;

    private JPanel panel1;

 

    public static void main(String[] args) {

        JFrame frame = new JFrame("SimpleForm");

        frame.setContentPane(new SimpleForm().panel1);

        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        frame.pack();

        frame.setVisible(true);

    }

}

code copiles and generates the following errors
/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/bin/java -Didea.launcher.port=7534 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 13.app/bin" -Dfile.encoding=UTF-8 -classpath "/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/lib/javafx-doclet.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/htmlconverter.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/javaws.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/jfxrt.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/management-agent.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/plugin.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/ext/sunec.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/ext/sunjce_provider.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/ext/sunpkcs11.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre/lib/ext/zipfs.jar:/Users/Ian/IdeaProjects/HelloWorldGui/out/production/HelloWorldGui:/Applications/IntelliJ IDEA 13.app/lib/idea_rt.jar" com.intellij.rt.execution.application.AppMain SimpleForm
Exception in thread "main" java.lang.NoClassDefFoundError: com/jgoodies/forms/layout/FormLayout
at SimpleForm.$$$setupUI$$$(SimpleForm.java)
at SimpleForm.<init>(SimpleForm.java:6)
at SimpleForm.main(SimpleForm.java:12)
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 com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Caused by: java.lang.ClassNotFoundException: com.jgoodies.forms.layout.FormLayout
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 8 more
from what I can tell it does not like the "SimpleForm" part of the statement JFrame frame = new JFrame("SimpleForm");
Not sure what to do about it though.  Have generated this GUI using the FlowLayout object and it works just fine.
Any help would be appreciated.

Double clicking bookmarks.

$
0
0

Show bookmarks lets you see a window into the code where the bookmarks

are. It is read only.

 

you then want to go to that place in the code where you can edit.

 

F4 should work, or clicking the bookmark name should.

 

Double clicking works SOMETIMES. It is such an unreliable mechanism,

there needs to be an alternate for double clicking whereever it is

used.

 

Perhaps you could accept a middle-mouse click as an alternative to a

double click anywhere you now use double click.

 

--

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

"Don't worry about people stealing an idea; if it's original, you'll

have to shove it down their throats."

~ Howard Aiken (born: 1900-03-08 died: 1973-03-14 at age: 73)

 

connecting to jdbc driver issue (Still a newbie to java)

$
0
0

I've established a connection through a BASIS JDBC driver using the database window by adding the driver.  This has allowed me to generate my ORM maps etc.

 

I am now trying to connect to the database via java code and keep getting the following message

 

java.sql.SQLException: No suitable driver found for jdbc:basis:east3.ihmsweb.com:2001?DATABASE=BBJ_IHMS_WEG

 

I am assuming it is a CLASSPATH issue, but I have no idea how to add the driver to the project.  I did try adding the drivers jar file in the Project Structure dialog to the module dependencies as well as the library.  This action did not change the outcome.

 

Any help would be greatly appreciated.

 

Ian

How do I externally build an index ?

$
0
0

Is there a way to build the index externally without launching IDEA ?

 

Thanks

-Rohit


Add one-shot Java EE libraries to project

$
0
0

Hello,

 

I get validation and compile errors for all of my javax.* classes in the project (mostly imports and annotations on the entities).

 

I know I can add each JAR to the path manually, like the libs provided from JBoss Wildfly, which I'm using, but then I need to add the JPA 2.1 JAR, the JSF JAR, the CDI JAR etc., that is one for each javax subpackage - yawn.

 

Example: http://devnet.jetbrains.com/thread/453942?tstart=0

 

Isn't there any one-shot "add all Java EE libs" library setting, much like adding the JDK? Of course, I only need this for building the project and I don't want to download any JARs into the project's lib dir nor do I want any of these deployed to the server.

 

So, what is the best to solve this (using IntelliJ 13.1.1)?

 

Thanks

How to execute compass transpiler on project rebuild/make

$
0
0

We have setup the Compass SCSS compiler using a file watcher as normal, but I have noticed that even though our SCSS files get compiled when they are changed, they do not get compiled if I do a "Rebuild" or "Make".

 

So, for example, say I go to the command line and do a mvn clean to wipe out everything, if I then do a "Rebuild Project" in IntelliJ, Compass does not execute -- is there a way to get a particular file watcher to run when you do a Make or Rebuild?

 

Thanks.

Does IntelliJ support high resolution displays?

$
0
0

Hi there,

 

I'd really like to buy a Lenovo Yoga 2 Pro Convertible with its awesome high resolution display of 3200x1800. I know that Eclipse does not support high resolutions and I consider to switch to an other IDE. So, does support Intellij high resolution desktops on Windows?

 

As an example, how it should NOT be here is a screenshot with Firefox and Eclipse on the Yoga 2 Pro: http://imgur.com/PruxghL

 

Can somebody attach a screenshot maybe?

 

Thank you!

System.out.println -> out.println + import static, Novice Tip

$
0
0

Let’s say you wanted to convert all your System.out.println to

out.println with an import static java.lang.System.out; at the top.

How do you get all the imports only in the files where needed? Just

use a bulk regex search replace to insert imports just after the

package statement on all files. Then do a bulk Optimise

Imports/Reformat code to tidy the imports. The optimise discards the

unneeded imports, sorts and aligns them.

--

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

"Don't worry about people stealing an idea; if it's original, you'll

have to shove it down their throats."

~ Howard Aiken (born: 1900-03-08 died: 1973-03-14 at age: 73)

 

Gradle "cannot resolve symbol 'task'"

$
0
0

Hi,

I've just started working with Gradle - wrote the "hello world"

 

task helloWorld {

  println 'Hello World'

}

 

The symbols "task" and "helloWorld" are coming up cannot resolve.

+ when i try to create an new project or module, the "Gradle" option is not available as per http://www.jetbrains.com/idea/webhelp/creating-a-gradle-project.html

 

Some env. info:

  • IntelliJ IDEA ultimate 12.1.6
  • Windows O/S
  • Gradle 1.11
  • Groovy 1.8.6
  • I have the bundled Gradle  & Groovy plugins installed, and the Gradle is configured to the install folder
  • I can run the script from the IDE & command line

 

How do i get IJ to recognise the syntax?

 

~gilbert

File permissions problems accessing .Idea12 folder on Windows

$
0
0

I have to work in a Virtual Machine provided to me by a client. I have some strange problems with file permissions on the .Idea12 settings folder.

 

Intellij creates files in this folder owned by my user id D607522, but with read/write permissions only for this user. It is then unable to read these files! It seems strange the IntelliJ would be able to create these files, but not be able to read them.

 

I have adminsitrator access on this machine, so I just repermissions everything under .Idea12, so that it can be read/write by any user. However, I constantly have to do this, and often IntelliJ will lock up when some file it wants cannot be accessed.

 

The problem is partly due to a badly confiugured VM (the client VM screw ups have been many), partly due to my ignorance of how file/security permissions work on Windows (I'm a Unix user).

 

Has anybody encountered such a problem before? I'm thinking of trying to move the settings folder location in idea.properties, perhaps putting it somewhere other than under my profile might help...

 

Rupert

vocabulary question

$
0
0

If a file is known on the web as

http://mindprod.com/jgloss/jdk.html

 

and locally as

E:\mindprod\jgloss\jdk.html

 

Does the following format have an official name?

 

jgloss\jdk.html

 

If not, what name would you coin?

--

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

"Don't worry about people stealing an idea; if it's original, you'll

have to shove it down their throats."

~ Howard Aiken (born: 1900-03-08 died: 1973-03-14 at age: 73)

 


Flex projects: streamlining the make/compile process?

$
0
0

On my team at work, we're just starting to switch over to IntelliJ IDEA (13.1.1, Build #IU-135.480) from FlashBuilder for Flex development, and are having some trouble understanding the make/compile model.  I'm hoping someone here can help us out.  We've got a set of IntelliJ modules that look roughly like this:

 

main-module

  flex-app-1.swf

  flex-app-2.swf

  flex-app-3.swf

library-module-1

  library1.swc

library-module-2

  library2.swc

library-module-3

  library3.swc

library-module-4

  library4.swc

 

The dependencies look like this:

 

flex-app-1.swf ----> library1.swc -----> library2.swc -----> library4.swc

                                   `---> library3.swc ---'

 

And the same for each of the other flex apps (let's say for now, anyway).  All dependecies are of type "merged".

 

As far as I can tell, there are three make/compile variants:

 

  • Make Project seems to unconditionally rebuild all of the IntelliJ modules
  • Make Module 'foo' rebuilds 'foo' and everything it depends on.  So in the case of Make Module 'main-module', it'll uncondtionally rebuild the library modules and all three SWF's in main-module
  • Compile 'foo' compiles the IntelliJ module containing the file 'foo' IF anything in it has changed.  Or possibly only if 'foo' has changed.  I'm not really clear on that.  And if 'foo' is one of the SWF mxml files, it appears to only compile that particular SWF, not all three of them.  I think.

 

So, some questions about all this:

 

  1. Have I got it right?
  2. Suppose I change a file in library2.swc and ONLY want to compile library2.swc, library1.swc, and flex-app-1.swf, since I'm going to run and monkey-test flex-app-1.  Is there an easy way to do that?  Right now, it feels like I have to select flex-app-1.mxml in the Project window, hit "Compile" from there, and then hit Run or Debug.  That's kind of a pain in the neck.  I know that I can add "Make" to my launch config, but that seems to do either "Make Project" or "Make Module", which does all IntelliJ modules and takes longer (not as long as it did in FlashBuilder, mind you, and it doesn't run out of memory and crash and burn every 4 or 5 times like it did in Flash Builder, but it still takes longer.  now that I've got the moon, I want the stars!)
  3. Could we get what I'm looking for if we changed from "Merged" dependencies to something else?  What's the downside to changing?

 

Note: our project structure is actually much deeper and more complex than this, but the same ideas should hold true.

 

Thanks in advance!

SQL Insert Statements data extractor does not wrap text values with quotes

$
0
0

When I run the SQL Insert Statement data extractor for data inside an MS SQL Server table, the text values are not wrapped with quotes.  Is there a way to configure this data extractor to wrap all text values with quotes?

TestNG - logging by thread

$
0
0

Hi -- when running multiple threads via TestNG (for example, setting a TestNG suite file to parallel="tests" and thread-count="3"), all of the thread runs are listed on the Test Results window pane, but clicking on a failed test doesn't show any console output or assertion/exception associated with the test.  What I'm usually left with is to slog through the whole console output to locate the relevant information. This works as how I would expect in Eclipse; is there a way to configure IntelliJ as such?

 

Many thanks,

 

Ken

Debugging nested Actionscript functions - see outer scope?

$
0
0

Suppose I have an Actionscript function like the following (line numbers included for reference):

 

1     private function foo() : void

2     {

3       var outerVar : Number;

4    

5       outerVar = 3;

6

7       doSomething();

8

9       return;

10

11      function doSomething() : void

12   {

13        var innerVar : Number;

14

15      innerVar = outerVar * 2;

16

17      trace(innerVar);

18    }

19  }

 

If I'm debugging along, and I hit line 15, the debugger will not show me the value of outerVar.  I suspect that's because it's not declared in the current scope.  However, it is visible in the current scope, because doSomething() is nested within foo().

 

Is there a setting I can change to make the debugger see this variable?  I know I can click up the call stack to see outerVar, but then I can't see innerVar - I often need to be able to see them at the same time.  We use a lot of nested functions for asynchronous RPC callbacks, so it's making debugging pretty difficult.

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?

Viewing all 5661 articles
Browse latest View live


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