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

Number of attempts to login via FTP

$
0
0

Hi,

 

Is it possible to tell IntelliJ that it should only try one time to login to FTP?

 

the Problem: Sometime I want to connect to an FTP-Server, where the Pasword has changed.

 

So I run in "Too many login attempts", and my account is disabled.

 

So for me it would be much better, if IntellJ trys to login to FTP just one time. And when it is not sussesfuly, than intelliJ has to ask me, what to do - so I can change the Password.

 

Is it possible?


Enabling AspectJ post-compilation weave mode

$
0
0

I'm trying to weave an aspect into a dependency of my project, and it looks like post-compilation weaving is the way to achieve that. The "Enable Post-Compilation Weave Mode" checkbox in the AspectJ facet is grayed out however -- it says I need to enable external builds under Settings->Compiler first. However, that setting appears not to exist -- how can I enable post-compilation weaving?

 

(Extra context: The actual problem I'm trying to solve is setting up a profiling system with AspectJ, and having it only enabled in developer builds. Our main way of doing developer builds is having a separate module which includes the product as a dependency and wraps it with some extra stuff, so I'm trying to add an aspect to that module. However, then the aspect only gets weaved into the thin layer of extra code in that module, and not into the product itself.)

WebLogic server not found

$
0
0

I am running idea-IU-139.224.1 (14) and WebLogic 12.1.3.0.0.

 

I have local install of WLS that works from the command line, and a remote install at slc08uyu that runs fine and is accessible on my network.

 

When I try to run a remote session (or try to test the connection) I get this error.

 

Error running slc08uyu: Unable to connect to the slc08uyu:7003, reason: Server not found

 

Thanks for the help,

Glenn

Deployment with select JAR files

$
0
0

Hey everyone,

 

I'm trying to make use of the Deployment feature of IDEA 14.x Ultimate, but I'm running into some confusion. I have a complex, multi-module Maven project that produces various *.jar artifacts in each target/ directory. I would like to use the Deployment feature to send only certain JAR files to the remote server. I've been playing around with the path mappings, but it looks like I can only specify folders. I also noticed I can exclude paths and files, but I would then basically need to put in excludes for everything besides the one or two JARs that I actually want.

 

So the question is, can I actually send select files using the Deployment feature, or did I misunderstand the purpose of this functionality?

 

 

Thanks!

Migrating an Eclipse AspectJ project

$
0
0

Hi *,

 

at my company, we are currently working with Eclipse for our Java projects.

As me and some other coworkers would rather use IntelliJ, we took a crack at migrating our projects and failed at getting AspectJ to work.

 

Here are the steps we took:

 

  1. import the project and dependencies into IntelliJ
  2. download and install AspectJ
  3. Under Settings -> Java Compiler: Use ajc compiler, delegate to javac (path to aspectjtools.jar is correct as the test button indicates)
  4. Add AspectJ libs to Global Libraries (aspectjrt.jar, aspectjtools.jar, aspectjweaver.jar, and org.aspectj.matcher.jar)
  5. Create AspectJ facet for the one module that is using AspectJ, leave all settings as is (no aspect path defined)
  6. Add aspectjrt to project libraries
  7. rebuild, make etc.

 

On make I get the following errors:

Error:(38, 0) ajc: The type LoggingDirectory must implement the inherited abstract method LogContext.isDebugEnabled()

 

LogContext is just an empty interface. Classes that want a logger appended implement this interface.

 

This method is injected with AspectJ. Unfortunately I am not an expert with this and guy who implemented it already left, so I am stuck.

 

In order to check general functionality, we implemented a tiny project from scratch with just three classes with the same settings as above:

 

publicinterface LogContext {}   

 

public aspect LogContextAspect {    publicvoid LogContext.log() {        System.out.println("Log!");    } } 

 

publicclass Aspect implements LogContext {     publicstaticvoid main(String[] args) {        Aspect aspect = new Aspect();        aspect.log();    } } 

 

The code actually executes fine and prints out the "Log!" message, but on make I get the following error:

Error:(4, 0) ajc: The type Aspect must implement the inherited abstract method LogContext.log()

 

What are we missing here? In order to migrate our projects, we need AspectJ to work.

The whole system is built with Java 6 compatibility but runs on Java 7.

 

Thanks for your help!

 

- Sascha

Moved to Ubuntu/Linux: Idea can't resolve java.lang.String

$
0
0

Hi all,

 

I'm a longtime idea user.

 

I recently switched my laptop from windows to linux.

 

When opening my projects, the idea editor cannot resolve any 'java.lang.*' objects. Everything is highlighted red.

 

 

I've search the internet and tried the following:

-dropped and added jdk's, changed the jdk for the project, etc.

-confirmed rt

-cleared caches

-deleted the system folder

-switched jdk versions (I originally had started on IBM jdk and thought that was the problem)

-renamingmy Idea director (~/.IntellijIdea11)

 

I found that creating a new project (from scratch) succeeds (i.e. editor can resolve java.lang.String)..;just not old projects

 

I'm using Idea 11.17 on Ubuntu 14.04LTS

 

Any suggestions?

 

thanks

 

bill

Maven duplicate finder plugin support

$
0
0

Dear Sir,

 

Is there any way to integrate maven duplicate finder plugin into IDE?

It would be helpful to visualize this information in some way or create inspection for that.

Tree structure is not enough if multiple modules are involved.

 

Thanks

Sergiy

Need more keybind actions!


Background Tasks illegible

$
0
0

Hello,

 

I am running Intellij 14 Ultimate on Windows Server 2008 R2 enterprise and am having a hard time viewing the Background Tasks window.

 

 

Here is a screenshot (bigger)

 

 

background-tasls.png

 

I am running this under Java 7. Any help is appreciated.

Issue with Android and "text" substitiution

$
0
0

I am using intellij 10.0.3 and I also have the commerical edtion as well.

 

but in the community edition....

 

I'm writing an Android app.

Lets say the activity is all done.

 

This activity has a few text widgets and a button.

Code works great, no issues.

 

I go and move the "Start" button from the left side to the right and then

run the app.

 

The text of the button "Start" is being fetched out of a textWidget that i don't even enter any data in.

Bizarre.

 

This is the second time this has happened to me. I had to delete the widgets and re-do my UI and

now it's back.

 

I did an Invalidate Cache / Restart and still it appears.

 

Is this an Android issue or is it IntelliJ?

 

Any idea what it is?

 

Thanks Al

IntelliJ 14.0.3 won't start on Ubuntu 14.04

$
0
0

I recently upgraded IntelliJ IDEA from an earlier 14.0.x version to 14.0.3. I'm using 32 bit Ubuntu 14.04. My upgrade procedure entails removing the folder where the old version was installed, downloading the tarball of the new version and unpacking it, and then changing a symbolic link in /usr/local/bin to point at the new location of idea.sh. I've done this many times in the past without incident.

 

However, for reasons I don't understand IntelliJ 14.0.3 doesn't start. There is no splash screen. In fact the idea.sh process appears to terminate immediately (or at least very quickly).

 

To explore further I renamed my .IdeaIC14 folder in my home directory to something else so that IntelliJ would build a brand new one from scratch. However, that did not work either. After attempting to launch IntellIJ I found a new .IdeaIC14 folder but it was essentially empty (just contained a tmp folder). I did not see any log files to study.

 

Any advice as to where I should go from here to try and diagonse this problem?

 

Thanks!

How to use domain creds on a datasource

$
0
0

I'm new to using IntelliJ for my database connections and I'm sure I'm missing something simple.  How do you use domain credentials with setting up a datasource?  For example in the username field, I tried  "MYDOMAIN/username" but it still says it's an invalid login.  I've checked with other SQL editors and I do have authority to access that server and database.  Any help would be appreciated.

Visibility scope modifiers for fields and methods aren't visible on uml diagram

$
0
0

How can I show visibility modifiers  of fields and methods in uml designer? They aren't visible...

public.pngprotected.pngpackage_protected.pngprivate.png

EXAMPLE:

1) In the tutorial:

tutorial.JPG

2) It's mine:

wewewqrewqrew.JPG

 

 

IDE: Intellij IDEA 14.0.3 30-day trial

OS: Windows 7 Pro SP1

Best Method of Configuring a Multi-Module Project w/ Agnostic Root

$
0
0

I've read the docs on setting up a multi-module project but I'm still unclear on a few thing. I'm trying to set up a project which contains/maintains 2 sibling modules (each with their own technologies). I'm essentially setting up a web app project that uses AngularJS/Bootstrap on the frontend (module 'A') and likely Grails/Spring Security for a Restful backend (module 'B'). Since the frontend and backend use different technologies and would very possible be deployed to different servers, I thought the dual module aproach under a top level project container made sense. As such, I'd like to setup the initial top level project as technology-agnostic, but the project creation wizard seems to require one to select a target technology, which is fine for the modules but in this case not for the top level project What am I missing?

How to configure the maximum views of "Back/Forward" in navigate menu in IDEA?

$
0
0

  The Back/Forward commands are real very useful, but it seems that the maximum views I can go back or forward is 20. This maximum is not enough for me, and I can not find where to configure this value.

  Could anyone help me? Thanks for your attention.


Auto-Reformat on Auto-Import

$
0
0

IntelliJ 12.0.2 makes automatically a code-reformat when I'm adding an import-line for new classes via the auto-import shortcut (alt+enter). I tried to disable this but found nothing... does anybody know how to disable automatic code-formatting in this case?

code formatting: want blank line before first Python method in class

$
0
0

Hi Folks,

 

I'm using 14.0.3 with a Python project, and I want Reformat Code to put blank lines around all methods in a class, but it is treating the first method differently and not putting a blank line above it for classes that have no """ docs (see pic). I don't like this because the method does not stand out. I tried playing with the settings for 'Blank lines around methods' (Editor > Code Style > Python > Blank Lines > Minimum Blank Lines > Around method > 2), but it ignores that for the first item.

 

The online docs for Code Style. Java say:

Minimum Blank Lines: Warning! These settings do not influence the number of blank lines before the first and after the last item.

I'm not sure if that's relevant, though.

 

Thanks in advance,

 

matt

Showing project changed after configuring github.

$
0
0

Hi,

 

i created a project using Intellij and i have been really enthusiastic with the easiness of webapp development with it

 

Meanwhile, after setting up my github account from my project directory, and reloading my project, only my top level files load into intellij.

 

I am told i have to reset the root configuration. I perform the operation but it does not perform.

 

I try to get back to my initial project architecture by adding back my module from the project setting panel. But instead of finding my initial configuration, i have a double module loaded : main & test.

 

It does not compile anymore.

 

Would you share any of your experience about it?

IntelliJ icons won't display!

$
0
0

I have a problem with my Icons,

The Icons won't load anymore in my Java project,

 

I also got something weird when i added a library.

 

How can i fix this??

 

Kinds regards,

 

Bart

Gradle Repo Directory referenced in Project

$
0
0

Hello,

 

I used the Maven mechanism in IntelliJ Idea and the support is very convinient. I can download the JARs from Maven Central and IDEA puts the downloaded Library directly in into the Modules Library path, so I can compile my Java Source.

 

Now, I would like to use Gadle. Grald comes with its own repository and stores the downloaded JAR files  within the cache folder. Now I can run the gradle build but IDEA don't add the JARS automatically to the mdoule library folder. So I have to manually add all downloaded JARS files to the library project settings, so I can do my java source code creation.

I created a PATH Library which points to the Gradle root repository like this:

 

GRADLE_REPO = /Users/tadeusz/.gradle/caches/modules-2/files-2.1/*

 

So in this folder it contains all subdirectories which contains the source, java-doc and binary JAR files that have been downloaded by Gradle as defined deindependencies in my build.gradle file.

 

So I don't wanto to add manually all the jars files I defined as dependencies in my build.gradle file when I build my module. I would like to have the same comfort like with the maven integration.

 

Does anyone have already experience or a solution how I may use the Path library in order to archive this or another solution?


Kind regards.

Tadeusz

Viewing all 5661 articles
Browse latest View live


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