Quantcast
Channel: JetBrains Developer Community : All Content - IntelliJ IDEA Users
Viewing all 5481 articles
Browse latest View live

How can I change svn repository update depth in Idea?

$
0
0

Greetings!

 

There is a panel called Changes in Idea. There are several tabs: Local, Repository, Incoming and others. I tried to update Repository tab to see the new commits. But while doing this I have set the depth of update to 5 instead of default 500. Now there are always 5 last commits there and I dont know how to change it. Please show me the way to change that setting of depth to 500 back.


Problem with creating domain classes in Grails plugin in IDEA 11.1.4

$
0
0

I haven't tried to create my own plugin before and have created Grails applications successfully but not recently so this may apply to any "New Grails Domain Class".

 

In summary while IDEA goes through the motions and does correctly create the class.goovy files they are not visible in the IDEA Grails View nor Project View.

I ran the New Project to create the plugin, using Grails 2.1.1, it seems to work correctly

 

I then created a domain class, this also appeared to work correctly and says it creates the .groovy file in the console log but nothing is displayed in the Grails View nor Project View (Left hand panes). After this first failure I checked in the actual files and there is a correct, blank domain class file there. I then created a second class and while it seemed to accept the entry it didn't show anything on the Console log after a few lines. I left it for a few minutes and repeated the same New Grails Domain Class, using the same name, and it worked, well it went through the motions and said it had created it but again nothing shows on the IDEA views. However as before the files are there. Interestingly the test files which are created during the create domain class process  are both visible in the Views

 

I closed IDEA and reloaded it but still no class showing.

 

I did note this problem with package names a few months ago (although no one responded)

http://devnet.jetbrains.net/message/5461667#5461667

 

Of course now Grails does insert a package statement at the start of the domain class.

 

The files were created in a directory ../domain/pckgname so I copied them up one level and removed the 'package' statment' still IDEA could not find them.

 

I then went back into IDEA and went through the  New Grails Domain Class and attempted to re-create one of the existing classes. Correctly it said it "...already exists, do you want to overwrite ?" I replied "No" and then suddenly all of the classes (the original pair and the pair I had copied) were shown.

 

I then created a completely new Grails Domain Class and it immediatley appeared as it should and presented itself in the right hand pane to be edited (the previous missing ones had not so done when they were created.

This is IDEA 11.1.4 (but I believe the same happens with 11.1.3 - I did a quick test when I first noticed the the problem) on Xubuntu 12.10, Grails 2.1.1.

 

I have to say that like the previous problem I noted it is rather irritating and has wasted a good few hours of my time.

 

I would welcome some comments

 

 

graham

Can't run IntelliJ after installing Java 7 on Mountain Lion

$
0
0

I just got a new laptop, and I'm trying to get it all setup. Here is what I've done:

  1. Installed Java 1.6 from Apple, because it no longer comes with Mountain Lion.
  2. Installed Java 1.7 from Sun, because I need it for my dev project.
  3. Since IntelliJ requires Java 1.6 to run, I changed the sym links in /System/Library/Frameworks/JavaVM.framework/Versions/ as follows:
    1. CurrentJDK -> /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents
    2. Current -> CurrentJDK
  4. Downloaded and installed IntelliJ 11.1.4

 

However, when I try to run IntelliJ it stalls and won't startup. There is no error message, it never shows the splash screen, it just sits there. So I tried to run it from the command line and got the follow errors:

 

2012-11-23 15:01:50.002 idea[1841:707] Apple AWT Startup Exception : -[__NSCFString appendString:]: nil argument

2012-11-23 15:01:50.003 idea[1841:707] Apple AWT Restarting Native Event Thread

Any help will be greatly appreciated.

Display Oracle XMLTYPE in Data Source

$
0
0

I can add a DB Data Source via Oracle JDBC driver and I see tables and data in table editor correctly. Even the CLOB columns are displayed with their content, which can be "Saved as CLOB". But columns with type XMLTYPE are displayed with value e.g. "oracle.sql.OPAQUE@30dac89a" and "Save as CLOB" is not accessible for them. Does any configuration exist, which would display content of this type? It is possible to create a SQL select command, where will be these columns "casted" to CLOB via getClobVal(), but it is not as simple as open data editor on table in Data Sources.

 

Thanks a lot

 

Idea 11.1.3, Oracle JDBC ojdbc6-11.2.0.1.0

J2EE projects on Glassfish using GWT changes are not updating

$
0
0

Hi guys,

 

I have created a J2EE app that makes use of the SmartGWT libraries. This toolkit is based off the GWT. When I make a change to the GWT files they are recompiled. The out is part of an exploded WAR. This WAR is deployed to a locally running glassfish server. For the life of me I have on idea why the changes to the GWT files are not getting reflected when I choose to "Update classes and resources". Even the "Redeploy" does not show my changes. The only thing that seams to work is a complete project rebuild and then redeploy. What am I doing wrong? Is there a specific spot of configuration that I need to change to get Glassfish to see the updated files, is it not deploying correctly, etc.

 

Let me know if you have seen the same problems. Rebuilding the project each time is very time consuming with GWT source so I would like to get this running as soon as possible!

 

Thanks

Patrick

Java JDK on OSX Mountain Lion

$
0
0

I am trying to run la Clojure that requires the JDK I have downloaded and installed sun version 7 on OSX Mountain Lion (OSX 10.8.2) this is what I have;

 

brooke  java -version

java version "1.7.0_09"

Java(TM) SE Runtime Environment (build 1.7.0_09-b05)

Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)

➜  brooke  whereis java

/usr/bin/java

 

When I go to settings project General for project SDK it show <no SDK> and it opens finder for the new one which doesn't allow me to select /usr/bin/java

 

How do I set up JDK?

Code folding conditional blocks?

$
0
0

hi..

 

is there a way to specify that there should be code folding for conditional blocks?

 

one of the reasons i'm asking is that there are numerous if (_logger.isDebugenabled) boiller plate statments, so i thought if there's a way to hide them, no to mention other long else and if blocks.

Switching location of Gradle user home for IDEA

$
0
0

For reasons of improving our anti-virus slowdown, we've moved all of our code and caches into directories exlucded by the corporate anti-virus software.

 

Gradle lets us do that by specifying $GRADLE_USER_HOME.  However, I notice that IDEA does not use this variable, and still puts all of it's Gradle cache stuff in the default location (~/.gradle).  There isn't any way of setting this when you select what version of Gradle you're using.

 

It'd be nice to put this in the same place as our command-line scripts, so things in IDEA will run faster (I've already moved my IDEA caches there, too), as well as share cached jars with the command-line version of Gradle.

 

Any ideas?

 

Thanks,

 

Douglas Bullard


Run dialog/configuration

$
0
0

Dear Sir,

 

I have 2 questions:

 

is it possible to display process id of the java proces that is currently running in the run dialog?

 

how can I copy run configuration in the team of developers? Let's say I've created configuration to run my server. How can I share that configuration?

 

Thanks

Sergiy

Maven version in file template ?

$
0
0

I'd like to have the javadoc for new files contain the tag @since. Each with the File Templates.

 

However, is it possible to have it automatically filled-in with the current version of the Maven project ?

Error installing and launching the Hello World Android App from IDEA

$
0
0

Folks,

 

I am a newbie to Android developement on IDEA.

I am tryint to write a Hello World Android App on IDEA.

And I get the follwing error when trying to run/launch the app on an emulaor device from IDEA.

Is this a known issue and what could be wrong with my configuration.

 

I am running the 11.1.4 version and JDK 1.6 and android 4.2.

Let me know if you need additional debugging info.

 

I appreciate your help!

 

Thanks,

Ajay

 

Uploading file

local path: C:\Users\atodimal\IdeaProjects\android_hello_world\out\production\android_hello_world\android_hello_world.apk

remote path: /data/local/tmp/com.example

Installing com.example

DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.example"

pm: 1: Syntax error: "(" unexpected

 

 

Launching application: com.example/com.example.MyActivity.

DEVICE SHELL COMMAND: am start -n "com.example/com.example.MyActivity"

am: M����/�ҽ �UP�=�#N�n: not found

:�� � �� ����u�k z ��x� �

���y  � T� �q�j � A� ŹKZ?;Uq tx 6wc�����U �#� �Q ��q�� : not found

am: 4: Syntax error: EOF in backquote substitution

Error installing and launching the Hello World Android App from IDEA

$
0
0

Folks,

 

I am a newbie to Android developement on IDEA.

I am tryint to write a Hello World Android App on IDEA.

And I get the follwing error when trying to run/launch the app on an emulaor device from IDEA.

Is this a known issue and what could be wrong with my configuration.

 

I am running the 11.1.4 version and JDK 1.6 and android 4.2.

Let me know if you need additional debugging info.

 

I appreciate your help!

 

Thanks,

Ajay

 

 

Uploading file

local path: C:\Users\atodimal\IdeaProjects\android_hello_world\out\production\android_hello_world\android_hello_world.apk

remote path: /data/local/tmp/com.example

Installing com.example

DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.example"

pm: 1: Syntax error: "(" unexpected

 

 

Launching application: com.example/com.example.MyActivity.

DEVICE SHELL COMMAND: am start -n "com.example/com.example.MyActivity"

am: M����/�ҽ �UP�=�#N�n: not found

:�� � �� ����u�k z ��x� �

���y  � T� �q�j � A� ŹKZ?;Uq tx 6wc�����U �#� �Q ��q�� : not found

am: 4: Syntax error: EOF in backquote substitution

How to set keymap to close the VCS difference window in OS X

$
0
0

I want to set RubyMine/IntelliJ to close the "compare with latest repo version" window on OSX.

 

You guys should really think your OSX keystrokes, but that's your call I guess.

 

In OS X the standard would be to close editor tabs and pop up windows via cmd-w.  You guys don't follow that convention so I've re-mapped most things to work that way.

 

The one I haven't been able to get right is close the VCS "compare with latest repo version" pop up window.  ESC works, but I can't figure out how to make cmd-w to work.  Any hints?

 

thanks

Left right slide opens up a pop menu in Java Editor

$
0
0

Hi All,

 

I have been using Intellij Idea IDE for more than couple of years and see its superiority on other IDE.  At the same time when I slide left or right when in Java editor it opens up the pop menu (the one which opens on right click) which some time are very annoying. I may have set this up in some settings but have completely forgotten and now I want to undo it, any help will be appreciated.

 

 

Thanks & Regards,

Irfan

Haxe Debugging from the Browser?

$
0
0

Hey All,

 

I am using Intellij as my Haxe editor to build a large project with an ANT build.  It is not realistic with the scale of this project to use the debugger that launches immediately after compilation.

I am looking for some way through Intellij to debug my swf once it is in the browser, similar to how FDT or Visual Studio can attach to process and begin debugging.

Is this possible through Intellij?


Advanced code styling rules for JS

$
0
0

Hi guys,

 

Before I start opening feature requests, I really wanted to know what's the oppinion on this matter.

I am trying to achieve a set of code formatting rules for javascript that is the closest possible to the npm guidelines.

 

Should I open feature requests for the individual options that we can't set at the moment, or is it something that JetBrains will only provide a very wide base set, and everything needs to be manual?

 

Thanks in advance.

Java EE Documentation (JavaDoc) on OS X

$
0
0

Hi,

 

I am trying to get IntelliJ show me the JavaDoc for Java EE classes. I have installed the Apple Java Development stuff, since then I have JavaDocs for the SE packages. But i.e. everything within javax.persistence is not working so far.

 

Does anybody know how to get it to work?!

 

Many thanks,

Tobias

PHP Module Keeps disappearing

$
0
0

Not sure how to troubleshoot this problem.  I have an IntelliJ11  Ultimate Edition, used in 64-bit, which I use for a PHP project with several modules.  This project has 3 modules, but every time I close Intellij 11, when I open IntelliJ again, I find that the module has disappeared.

 

Steps that I have used to add this PHP module:

File->Add Module->Create Module From Existing Sources and I select the directory with the module.

or

File->Add Module_>Import Module from IML  (I've tried importing the module-level IML file for the disappearing module), but regardless of which I try, I still fail to retain the 3rd module on the restart of my IntelliJ and I end up having to add the module again.  (If I added the IML, I get a message on the restart that it cant add my module because the module is already in the project).

 

The workaround that I came up with was to import the root IML file into my project, and thus have access to the entire directory tree in my project view.  This isn't ideal, and frankly it's a bit disappointing from such a good product.

 

Feature Request Liferay support

$
0
0

Liferay support similar to or superior to that available for Eclipse at the Eclipse Marketplace.

 

USAAC G6 Web Team is fundamentaly a IntelliJ shop, however we have to use ant / Eclipse because of the Liferay support.

 

Can anything  be done about this? I don't like Eclipse much at all and we spent a fair pile of money on our IntelliJ licenses.

Idea git integration

$
0
0

Hi. I am using idea version 11.1.2. And We are using git project

 

I have 5 modules in it all modeules are tracked by git.

 

But idea only knows 2 modules as git other 3 modules it does not know as git project, so i can not see any changes made for them using idea. Is there any way to tell idea that this is git project?

 

And sometimes When I change files with idea then When I see changes using gitk(git command to see what changes have been made), it shows entire file changed, like all lines removed and added back even thougjh i changed only 1 line code.

 

Why does idea change all lines? it is giving hard time to find out why this is happening.

 

 

Can you guys help me to fix those?

 

Thanks.

Viewing all 5481 articles
Browse latest View live