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

GWT project works fine in Eclipse but not IntelliJ Idea.

$
0
0

Is there any document that defines how to migrate a GWT project from Eclipse to IntelliJ?

 

I have setup the GWT run configuration and when my project launches it seems the GTW bootstrap just doesn't happen right.

 

onModuleLoad() threw an exception

Exception while loading module package.name.MainEntryPoint. See Development Mode for details.

java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:406) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.RuntimeException: Deferred binding failed for 'package.name.MainService' (did you forget to inherit a required module?) at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53) at com.google.gwt.core.shared.GWT.create(GWT.java:57) at com.google.gwt.core.client.GWT.create(GWT.java:85) at package.name.MainService$Util.getInstance(MainService.java:31) at package.name.MainEntryPoint.onModuleLoad(MainEntryPoint.java:20) ... 9 more Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries) at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:605) at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:465) at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49) ... 13 more


Annoying freezes on Intellij 13.1.2

Intellij 12.x VM options contains -Dlog4j.d

$
0
0

Howdy, my Intellij 12.x VM options contains -Dlog4j.d

 

I'm fairly sure this is connected to my slf4j configuation governing the log4j logging.

 

However, I have Googled this to pieces and have found no indication of this option existing anywhere.

 

Any ideas or outright knowledge of what this option can do and/or what does it mean?

 

Regards.

new feature: sublime multiple selection in 13.1

$
0
0

I was reading the new features in 13.1 and could not understand this one at all - is there a user manual that describes the feature in detail. I haven't used sublime and should not be expected to know its features. This feature does not seem to be in the help menu either - I searched in various ways for it.

Split Editor - indicate which tab is active?

$
0
0

If I split my editor into multiple tab groups, is there any way to configure things so that the active one is highlighted (or otherwise visually designated) in some way?  Notice that in the following, other than the cursor, there's no way to tell which of the three windows is active:

splitEditorWindow.png

 

One idea (but by no means the only one) is to grey out the other windows.  Something like this:

 

splitEditorWindow-activeHighlighted.png

 

Is there any way to do something like this?

Changing specific lines' color change

$
0
0

In my files I have some debugging codes, most of them 1 line per method.

Although they are useful for debugging, I want them to be shown in a different way.

Is it possible with intellij idea 13 beta, to change line color regarding to keywords ?

 

For example:

- if line starts with MyClass

- if line has "MyClass" word inside

then line color or font color will be changed ?

Missing libraries - how to import?

$
0
0

I'm a new user, and am starting with v13.1.2.  I am able to pull a previously-existing project from version control and import it into IDEA by either File->New Project or File->Import Project.  In either case, the actual files appear, but the Libraries tab in the Project Structure dialog box is empty.  Looking in the .ipr file, I see all of the appropriate libraries.  For some reason, IDEA isn't loading that information from the file.  (My team members are still using v12, so I don't know if that is part of the issue.)

 

Has anyone seen this issue before, and has some advice?  Or do I need to manually (and tediously) set up these libraries?

IntelliJ Not Searching Maven Central Repo

$
0
0

Hello,

 

I'm trying to get started using IntelliJ and Gradle.  I created a new Gradle project and I want to add Spock support.  However, when I open build.gradle and hit CTRL+N -> Add maven artifact dependency I don't see spock or groovy in my list.  It looks like the Maven Central Repository isn't being queried.  I've tried clicking update on the remote Maven repository under Preferences->Maven->Repositories, but it didn't change anything. I'm on OS X 10.9 and have maven 3.1.1 instelled via brew. 

 

Thanks in advance for the help.


Running groovy script that uses AntBuilder (via right click / 'Run') results in NoClassDef org/apache/tools/ant/BuildLogger

$
0
0

Hi.

 

I have a groovy  script that works fine when i run  it from the command line (on linux using groovy 2.3.0). 

 

but when i try to run the same script in intellij  [ 12.1.6  Build: #IU-129.1359 ]  i get the following error:

 

Caught: java.lang.NoClassDefFoundError: org/apache/tools/ant/BuildLogger

at Fio.class$(Fio.groovy)

at Fio.$get$$class$groovy$util$AntBuilder(Fio.groovy)

at Fio.run(Fio.groovy:1)


Process finished with exit code 1

 

Here is the script.  it's a very simple one..

 

def ant = new AntBuilder()



def zipfile = 'test.zip'

def current = '.'

ant.zip(destfile: zipfile) {

    fileset(dir: current) {

        include(name: '**/*.txt')

    }

}

How to have the debugger step into the code of another IDEA project

$
0
0

I have a repository that consists of several IDEA projects.

 

One project creates a jar file which is used by several others.

 

I need to be able to run the debugger and step into the code of a jar file which is created in an IDEA project from a different IDEA project.

 

Combining projects is out of the question.  Creating a temporary project consiting of both is also out of the question.

 

A similar thread from 2009 is at http://devnet.jetbrains.com/message/5252897#5252897, Re: Two Projects - One Tomcat - One debugger?

 

I hope in the years since then this has been made easy but I can not find any documentation on how to do it.

 

Note: I am not using maven

Problems compiling Android SBT project

$
0
0

I've posted this message before in the Scala plugin forum, but no answer.  So, as it is an Android specific issue, I post it also here.

 

IDEA 13.1.2 with latest Scala plugin cannot compile a SBT Android project that uses android-sdk-plugin.

SBT is a tool similar to Gradle or Maven, very used in the Scala world.

 

The cause is that it cannot compile resources, because in the build.sbt I've declared to use a library that contains Android resources.

 

This is the error I receive:

Error:(41, -1) android-apt-compiler: [incidencias] /home/david/android/MyProject/src/main/AndroidManifest.xml:41: error: Error: No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').

 

Of course, SBT can compile the code with no errors.

 

I'd like to IDEA able to compile also the project, in order to launch tests and see graphically the result of them.

 

I'm using Scala 2.10.4.

 

Is there any workaround?

 

The only workaround I've found is to create a fake AndroidManifest.xml.

 

Thanks in advance for any tip.

Java sources not in classpath into multi-module project (maven)

$
0
0

Hi,

I have this scenario:

I have a project (maven) that has it's own dependencies.

From project structure, I added two projects (maven) as modules, I deleted old maven dependencies  and moved up the modules in the dependencies list.

It correctly compile and work, but I have a problem when I make a unit test with gwt test. Running the test it gives this error:

 

2014-05-15 01:00:23 ERROR GwtTreeLogger:58 - Unable to find type 'my.package.MyClass'

2014-05-15 01:00:23 ERROR GwtTreeLogger:58 - Hint: Check that the type name 'my.package.MyClass' is really what you meant

2014-05-15 01:00:23 ERROR GwtTreeLogger:58 - Hint: Check that your classpath includes all required source roots

 

Looking at the classpath it doesn't seem to include src path, and gwt test needs the sources.

I added the dir to classpath manually copying the classpath from junit output, in run configuration for the test, and it works, but it's not so confortable.

Is there a way so IDEA includes sources in classpath by itself?

 

Thanks for help

Android Gradle-Project and Unit-Testing

$
0
0

Hi, can anyone help me getting Unittesting working for my Android-Project within Intellij?

I just need normal unit tests for my code - no UI-Testing. After hours of research I got it working from the shell via gradlew, but it would be very nice to use the IDE's Testrunner to run my unit-tests.

 

Thanks

SVN basic auth issue (1U-135.815)

$
0
0

Hey Folks,

 

Any time I attempt to commit to my company's internal svn repo, I receive the following:

 

Error:svn: E170001: Commit failed (details follow):

svn: E170001: MKACTIVITY of '/repos/rollbase/!svn/act/a0c95f29-4942-4e76-810e-bfed5fe68abe': authorization failed: Could not authenticate to server: rejected Basic challenge (http://redacted.com)

 

No username/password dialog is displayed, it just fails.

 

I have no issues from the command line.

 

I've cleared my auth cache, but there was no change.

 

Any ideas?

GIT and Mercurial integration - UI changes needed?

$
0
0

Git and Mercurial have the concept of a local code repository, and a remote one. The user interface model doesn't work so well for me, with how these popular VCS are architected.

 

It seems like what is happening should be more obvious. I often need to commit my working copy changes to my local repo a bunch of times, rebase from remote to my local, and then push my local to the remote. Perhaps I don't fully understand the interface, but this involves several menu dives, to find the "push". Perhaps some different buttons would help.


After create android project - AndroidManifest.xml file not found

$
0
0

Hi

I using simple project without Ant, Maven or Gradle and after building, get punch with this message "Error:Android Source Generator: [PickerAndroid] AndroidManifest.xml file not found".

 

I have check "Generate sources automaticaly" but this generator not generate Why?

wrong-generate.png

How to launch a JUnit Robolectric test

$
0
0

Hi,

In a SBT project, I can launch correctly Robolectric tests with this setting:
managedClasspath in Test <++= (platformJars in Android, baseDirectory) map {
   case ((j,_), b) =>
      Seq(Attributed.blank(b / "bin" / "classes"), Attributed.blank(file(j)))
}
In order to debug it with IDEA, I create a Run/Debug configuration of type JUnit.
The problem is that I get this exception:
java.lang.NoClassDefFoundError: android/content/Context
This doesn't happen when launching using: "sbt test".
How can I tell IDEA to use the correct classpath?.
I've set a standard JRE 7 as the alternative JRE of the Run/Debug configuration.
Any help, please?
David

Browser error: Unable to find application named 'open'. Play framework 2.0

$
0
0

when I start the Play Framework 2.0, the server runs fine, but a popup appears with

the "Unable to find application named 'open'.

 

When you click the button it brings you to the supported browsers.

 

I did find one item on the NET talking about a host name issue with MAC.

 

I'm on MAC 10.8.5 - IntelliJ 13.1.2 Ultimate

 

Thanks

Turn off "really undo?" Confirmation popup?

$
0
0

Pressing ctrl-z in Windows causes Intellij to present a confirmation dialog which needs to be confirmed before it will undo typing.  I am experiencing  this while editing javadoc. It's extremely annoying since it prevents me from ctrl -z ing backwards through any amount of typing greater than a few letters. It makes swift, iterative editing of javadoc- thinking, rethinking, rephrasing etc. all but impossible. At leat I am looking for a checkbox with something like " don't show this dialog again". I don't see any option for this under settings.

 

Am I missing something somewhere?

 

TIA...

Turn off "really undo?" Confirmation popup?

$
0
0

Pressing ctrl-z in Windows causes Intellij to present a confirmation dialog which needs to be confirmed before it will undo typing.  I am experiencing  this while editing javadoc. It's extremely annoying since it prevents me from ctrl -z ing backwards through any amount of typing greater than a few letters. It makes swift, iterative editing of javadoc- thinking, rethinking, rephrasing etc. all but impossible. At leat I am looking for a checkbox with something like " don't show this dialog again". I don't see any option for this under settings.

 

Am I missing something somewhere?

 

TIA...

Viewing all 5661 articles
Browse latest View live


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