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

Gradle is kind of a mess... is it just me?

$
0
0

We're moving from an old sui generis build process to using gradle. I'm a big fan of IntelliJ, but the gradle integration is really, I guess, not up to the quality I've come to expect from IntelliJ development.

 

As an example, my gradle build files are nothing but warnings about unresolved symbols and "assignment is not used" (e.g. the sourceCompatibility flag is marked with that):

 

simple.gradle.png

The Gradle Tasks window shows the tasks well enough, but there's no equivalent display to the dependencies list in the Maven Projects view, which is very handy.

 

On top of this, I've reported an issue when you try to import Gradle build files (http://youtrack.jetbrains.com/issue/IDEA-122323).

 

Oooo... I just noticed that, when I create a new Gradle module through IntelliJ, it doesn't get added to the Gradle Tasks window automatically! I had to add it myself and when I did I no longer got those warnings on repositories, mavenCentral(), etc. But then I got other warnings:

 

simple.gradle.2.png

 

Is it just me? Is anyone else having the kind of trouble working with Gradle files in IntelliJ that I'm having? I'd really like the Gradle DSL to be fully supported so that I can type "tar", hit Ctrl-Enter, and see "targetCompatibility" as a suggested completion. That is not happening now.

 

Or is this a Gradle version issue? If so, fine I can roll to whatever Gradle version is supported, but I can't find this documented anywhere. If there is a dependence on some particular version, that ought to be a little clearer.

 

Anyway, any help on getting this stuff working better would be greatly appreciated and I'm more than willing to do whatever I can to help understand these problems. But at least from my viewpoint here, it's making me nervous about doing this level of development without full support from our toolkit.


Debugging Web Client Applications

$
0
0

Is there a way in IntelliJ to proxy calls to rest services to a different web context than the war file containing the actual html and js? The war file containing our html and js code is named 'webui'. However, the REST calls made from within the java script code are in a separate war file called 'managers'. So, when I launch the browser from within IntelliJ (by clicking the appropriate browser icon in the upper right of the html page), my browser opens appropriately pointing to my index.html. However, any backend call displays a 404 since it tries to use the same context to call the REST call. Here is the error I see:

 

Failed to load resource: the server responded with a status of 404 (Not Found)http://localhost:63342/managers/PlatformConfiguration/security/authenticate

 

The problem is that IntelliJ expects every server call to be made within the same war context. I would like to be able to proxy these calls to the backend server. The only way we get this to work right now is to use 'grunt serve' to proxy the calls. This means we are stuck using the debugger inside the browser, which is less than optimal.

 

Rick

Cannot resolve symbol

$
0
0

Hey, I just started using IntelliJ IDEA a few days ago and I have fell in love with it.

 

However, I can't seem to fix this one error. On package names, varables, and imports I'm getting a error that says: "Cannot resolve symbol '<insert thing here>'".

Here are some images:

screenshot.17.png

screenshot.18.png

Yet when I export my jar it works fine. And yes, I have tried to invalidate the cache, and also deleting the ".IntelliJIdea13". Again, to no avail D:

If someone knows how I could fix this, that would be great.

 

Thanks.

Intellij IDEA 13.1 crashes frequently

$
0
0

Hi

 

I am using 13.1, build# 135.480 on mac os X 10.9.2.

It keeps crashing frequently/randomly...

 

Any known issues?

 

Anand

Font problem with Intellij 13.1 and Java 7 on OS X

$
0
0

It seems that font rendering works differently between Java 6 and Java 7 on Mac OS X.  The problem is, that I want to use Wildfly from Intellij wich gives me a warning in the run configuration dialog that  Intellij at least want's Java 1.7. I changed the plist file to use 1.7. But that gives me that ugly font rendering ?

 

Any ideas how to solve this ?

 

Regards

  Roger

IntelliJ IDEA 13. How i can remove "Destination Repositores URL"

$
0
0

I hope you can help me.

 

In the new Idea 13, i found myself that when i try to push my commit to Bitbucket ( I use Mercurial ), In te dialog box appers a lot of old repositories that does not exist, or I simple i don't want to appear. This repositories does not appear in IDEA 12.

 

I just want to know how i can remove this extra remositories destinations from the dialog.

 

The tool i use is "VCS -> Mercurial -> Push...". 

 

I hope you can help me.

Label decoration ala eclipse in Project Window

$
0
0

anyone know if its possible to get the subversion label decoration like they have in eclispe?  The one that shows SVN specific information on resources in projects under SVN control. Information includes the revision number, branch or version name, etc.  the one right next to the file.  it usually shows rev, time of last checkin and who checked it in.  i find this useful and havent been able to find the same functionality in intellij.

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


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!

Shelve files but keep them checked out?

$
0
0

We're using Perforce as our VCS.  Its Shelve feature has the ability to shelve the files in a changelist but keep them checked out, which is very nice - I can shelve files when I'm about to do a big refactoring, and my workspace stays in the state it was in before I shelved.

 

As far as I can tell, when I shelve using IntelliJ IDEA, the files I shelved are reverted.  So in order to do what I desc ribed above, I have to shelve them, then unshelve them, THEN do my refactoring.  Is there a "shelve without reverting" option I've missed?

Where is IntelliJ IDEA config stored in OSX?

$
0
0

As part of a corporate workstation compliance effort, our IT department had to create a new user account for me on my Mac and left the old account until I transition all the artifacts and configs. So my old home directory was /Users/firstlast and the new one is /Users/flast. Of course, the burden of reconfiguring my environment fell on me.

 

Some of the apps that I use, such as ssh, Maven, Dropbox and DBeaver have their config conveniently and cleanly stored in the home directory (.ssh, .m2, .dropbox, .dbeaver, respectively) so migrating those was a cakewalk just copying the directory from the old home to the new using sudo and then chown. However, that is not the case with IntelliJ IDEA.

 

My IDEA was heavily customized to the extent that I would like to avoid doing it all over again if by all means possible. I understand that each project has its own config in the project directory but what I am after is to get the same list of projects to open when I launch IDEA under the new user as I did under the old user. All my projects were in ~/DEV (so ~/DEV/project1, ~/DEV/project2, etc and I can just copy the DEV directory from the old home to the new.

 

Where is this list of projects stored? I imagine it is somewhere in /private/etc or /private/varbut permissioned to the old user so the new user does not see it.

toward better search replace feedback

$
0
0

Lets say you set up a complicated search/replace with regexes.

 

You do a bulk search replace.  The catch is you must decide to ok the

replace without ever seeing what effect it will have.  Further it jump

to the next one if you say yes, so you don't get to see what the

effect way.  You can do a lot of damage if your replace string is not

correct, but you will not find out until you have replaced everything.

 

 

You should have to verify the first replace, or at least get to see

it, or at least get to see the replace string before you ok.

--

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)

 

wiping the bottom bar

$
0
0

There is a bar at the bottom of the screen.  It often tells you about

the status of your most recent build.  As soon as you start a new

build, it should erase that bar so you don't mistake its contents for

the results of the current build. It could say "building...".

--

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)

 

Single Method Interfaces, AbstractFactories, constructor references and intellij findability

$
0
0

Hi all,

 

We are doing this pattern a ton lately:

 

public ConcreteThing implements Thing {


   public ConcreteThing(String arg1, Long arg2, DependentClass arg3) {

     // ...

   }

}

 

Then I need an AbstractFactory:

 

public ThingCreator {

   Thing makeIt(String arg1, Long arg2, DependentClass arg3);

}

 

So we have YET another class that needs to build "Thing"s on demand, so it needs a ThingCreator:

 

public IUseThings {


   public IUseThings(ThingCreator factory) {

     this.factory = factory;

   }


   private Thing makeAthing() {

       return factory.makeIt(arg1, arg2, arg3);

   }

}

 

Ok so in Java8 we can do this:

 

IUseThings usingThings = new IUseThings(ConcreteThing::new);

 

and dang that just seems SO slick!  In Unit tests of IUseThings I can mock up ThingCreator and keep my tests nice and unit-y.

 

But findability in IntelliJ suffers quite a bit here!  Show class hiearchy, goto-implementation, find usages all will show me who the CLIENTS of ThingCreator are (eg: IUseThings, and IUseThingsTest) but I can't find the "ConcreteThing::new" implementation.  At least if i do find-usages on the ConcreteThing constructor it shows up.

 

I'm wondering if there is some way to make the findability better - do I have to resort to making stub factory classes?

Deploy to Wildfly deployments dir instead of project's target dir?

$
0
0

I have created a Wildfly server and I pointed it to the C:\dev\wildfly dir.

 

However, when I deploy the application via the run configurations, the webapp is always deployed to the project's target directory (using an exploded WAR).

 

How do you deploy to the Wildfly server's C:\dev\wildfly\standalone\deployments dir (like Eclipse did) instead of the C:\projects\myproject\target\MyProject-0.5-SNAPSHOT.war dir?

 

Thanks


IntelliJ 13 hangs frequently

$
0
0

I'm using build 135.480 on Ubuntu 12.4.  IntelliJ seems great when it works, but it seems to be rather fragile.  I find that several times / day I have to restart the IDE, as it hangs doing background tasks.  As I write this there is a hang during Make on "Executing pre-compile tasks...", and I often also get hangs during "Writing classes..." that force a restart.  In some cases, the GUI remains responsive to input commands, in other cases, not so much.

 

I have dumped the threads during this current background task, which I've attached.  I'm hoping someone can help me debug what's happening.  If you have a few minutes to help, I appreciate your time.

 

      Thanks,

       Eric

How do I externally build an index ?

$
0
0

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

 

Thanks

-Rohit

Compiling an IDEA project without running IDEA itself

Label decoration ala eclipse in Project Window

$
0
0

anyone know if its possible to get the subversion label decoration like they have in eclispe?  The one that shows SVN specific information on resources in projects under SVN control. Information includes the revision number, branch or version name, etc.  the one right next to the file.  it usually shows rev, time of last checkin and who checked it in.  i find this useful and havent been able to find the same functionality in intellij.

What is the status of Node.js as a Project SDK?

$
0
0
Infinite thanks as always to everyone at JetBrains for creating and maintaining such an outstanding product.  I literally love it.
That said, I am deeply fascinated by the question: what would it take for Node.js to be an SDK here, in the Project SDK dropdown?

Inline image 1

Please let me know where (if) this is on your road map, and/or if contributions of engineering time from myself or my colleagues might expedite the process.  Thanks very much!


-Nick
Viewing all 5661 articles
Browse latest View live


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