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

New location for the license server breaks IntelliJ Ultimate 14

$
0
0

Hello,

 

We've been using a license server for some time, with many users connected to it. Because we needed to change the machine, we installed the license server on another machine, and changed the URL in every IDE.

 

Since then, we often see errors when the IDE is trying to connect to the server. At some point, the IDE quits, thinking that there are no available licenses.

 

In the client, I can see logs like this one:

 

2015-09-16 10:24:04,903 [184715325]   INFO - .ide.license.impl.ServerSource - Unable to contact license server: Cannot obtain ticket due to connectivity problem: java.net.SocketTimeoutException: Read timed out

 

But on the server side, there are no error logs.

 

When such a problem occurs, quitting and restarting the IDE works, therefore the communication can succeed between the IDE and the server.

 

Can anybody help?

 

Regards,

 

Sébastien


Deployment option missing

$
0
0

Hi,

 

I'm going to use community edition and I set up my SVN and all the rest. I was going to setup a remove server to upload files when... cannot find it :|

 

I searched for deployment, add server, remote server. Look for anything similar in plugins and nothing.

 

Look: http://i.imgur.com/moMxOPO.png

 

Whats I'm I missing here?

 

Thanks

A bit of help debugging an SBT project?

$
0
0

So, I have this SBT project I should like to debug.

 

I have heard it say (e.g. over there) the "easiest way" to debug them using IntelliJ was to set up a remote configuration and connect the jvm to it.

Unfortunately, that's seems to be read a lot easier than done.

 

First, running "sbt -jvm-debug 5005" will result in

http://i.stack.imgur.com/Gax5l.png

And consequently, IntelliJ refuses to connect to a jvm that does not exist.

 

I managed to get SBT running with

 

set SBT_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005" && sbt

 

as suggested elsewhere (I'm on Win7, hence the set instead of export).

 

So when I now click the bug-icon to debug the configuration, I do get a

 

Connected to the target VM, address: 'localhost:5005', transport: 'socket'

 

But that's all i'm getting.

If I now set some breakpoints and run e.g.

 

test-only -- -n somefailingtestcase

 

then the testcase will run and fail but execution will not stop at the breakpoint and nothing will be displayed in the debugger console (except the "Connected to the target VM ...").

I'm fairly certain the execution does pass the breakpoint (tested it with println commands too), so I'd appreciate it if somebody could tell me what I am doing wrong and how I should be doing it instead.

unable to save settings

$
0
0

Whenever I start Intellij I get a message that says "unable t save settings. Failed to save settings. please restart InteliijIDE.

Win 7 64bit  Intellij version 1.4.1 build # 141.177

 

It doesn't seem that it forgets any settings (I can chage plugins and inspector settings etc and have them persist over a closing opening cycle) but I don't want to get a surprise later either.

Does anyone know what might be causing this? Write permissions somehow? AFAIK, Intellij has full read/write permissions on my machine.

 

TIA

fgbhdfbhdfhb

Enabling code completion for Cordova android plugins

$
0
0

Hi There,

 

This is my first post on the forum, so hope I make sense

 

Well, I worked with Intellij for some years already, but now I started using Intellij for developing Cordova / Ionic apps.. All works very well, installed the cordova / phonegap plugin and quickly up and running.

But I cannot find a guide to enable code completion for when writing a custom Cordova Android plugin. The editor recognizes it as Java, but thats it.

Google only delivers me solutions for when using Eclipse, but intellij is a personal favorite, so that is a no-go.

 

Does anybody have it enabled, or know a workaround?

 

Many thanks!

Ant integration -- allow navigate to AntTask.class/java when clicking on task tag in build.xml

$
0
0

Hello guys,

 

When browsing an Ant build.xml file, is it possible to click on a task tag (such as <ftp ..... > ) in order to navigate to the corresponding class and/or java sourcein the linked Ant library ?    (for example apache-ant-1.9.4\lib\ant-commons-net.jar\org\apache\tools\ant\taskdefs\optional\net\FTPTask.class)

Gradle project sync failed. Basic functionality ... will not work properly

$
0
0

I've been getting this error in one of my projects in Android Studio for a couple of days now and have't been able to figure out what the problem is. When I sync the Gradle project it always says: Gradle project sync failed. Basic functionality ... will not work properly.

 

The project assembles, builds and tests properly from the command line. Here are the errors that I think are releated to the issue from the idea.log file. Any idea what could be wrong here? This project is a set of common classes and utitlities that will be used in several of our gradle build scripts.

 

Thansk, Derek

 

2015-09-16 07:47:47,502 [  80357]   INFO - e.LibraryDependencyDataService - Configuring library dependency 'Gradle: joda-time-2.8.2' of module 'gradle-common' to be exported and have scope Compile

2015-09-16 07:47:47,502 [  80357]   INFO - e.LibraryDependencyDataService - Adding library dependency 'Gradle: gradle-tooling-api-builders-2.7' to module 'gradle-common'

2015-09-16 07:47:47,502 [  80357]   INFO - e.LibraryDependencyDataService - Configuring library dependency 'Gradle: gradle-tooling-api-builders-2.7' of module 'gradle-common' to be exported and have scope Compile

2015-09-16 07:47:47,536 [  80391]   INFO - ty.VersionCompatibilityService - Failed to read version for component 'android-gradle-plugin' for project 'gradle-common'

2015-09-16 07:47:47,550 [  80405]   INFO - ls.idea.gradle.GradleSyncState - Sync with Gradle successful for project 'gradle-common'.

2015-09-16 07:47:47,554 [  80409]   WARN - .project.GradleProjectSyncData - Trying to create project data from a not initialized project 'gradle-common'. Abort.

2015-09-16 07:47:47,554 [  80409]   INFO - .project.GradleProjectSyncData - Failed to generate new cache. Deleting the old one.

2015-09-16 07:47:48,234 [  81089]   INFO - indexing.UnindexedFilesUpdater - Indexable files iterated in 350 ms

2015-09-16 07:47:48,236 [  81091]   INFO -       #com.jetbrains.cidr.lang - Clearing symbols finished in 0 s.

2015-09-16 07:47:48,237 [  81092]   INFO -       #com.jetbrains.cidr.lang - Loading symbols finished in 0 s.

2015-09-16 07:47:48,237 [  81092]   INFO -       #com.jetbrains.cidr.lang - Building symbols finished in 0 s.

2015-09-16 07:47:48,237 [  81092]   INFO -       #com.jetbrains.cidr.lang - Saving symbols finished in 0 s.

2015-09-16 07:48:02,633 [  95488]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update done in 70193 ms

2015-09-16 07:48:02,635 [  95490]   INFO -       #com.jetbrains.cidr.lang - Clearing symbols finished in 0 s.

2015-09-16 07:48:02,635 [  95490]   INFO -       #com.jetbrains.cidr.lang - Loading symbols finished in 0 s.

2015-09-16 07:48:02,638 [  95493]   INFO -       #com.jetbrains.cidr.lang - Building symbols finished in 0 s.

2015-09-16 07:48:02,638 [  95493]   INFO -       #com.jetbrains.cidr.lang - Saving symbols finished in 0 s.

2


aspectj compiler dosn't work for single class compile

$
0
0

hello, i'm facing this problem: my project compile succesfully with ajc if i do full rebuild but if a compile a single class which use aspects (some Roo aspects and some custom one) the ajc compiler fails because the weaving of the related aspect doesn't trigger.

in the compiler output i see many of this warning:

 

Warning:ajc: this affected type is not exposed to the weaver: it.kion.dol.model.didattica.ComponenteAF [Xlint:typeNotExposedToWeaver]

 

the annoying thing is that the entire project compile always trigger the weaving of all aspects and it takes long time because of the project size.

 

anyone has suggestions?

 

i'm using a licensed version of idea 14.1.4 with the official aspecj and spring aop plugins and with this ajc configuration (i already played with the delegate to javac check)

 

ajc.png

AdMob and IntelliJ 14.1

$
0
0

Hi Guys,

 

I have been lookking through many sites and recommendations on the net to figure out why I can't get a simple android app to work with the newest Google Play Services and AdMob.

 

I did the steps in the AdMob manual and:

1) Added the google-play-services jar as a dependency

2) Added google-play-services.jar just as a library in Module setting

3) Tried to import it using New -> Module from existing source. This makes IntelliJ break my project.

4) Put google-play-service.jar into my /libs folder.

5) Compile for API level 8, 11, and 13.

 

When I run the app it gets a FATAL EXCEPTION saying :

Error inflating class com.google.android.gms.ads.AdView

.

.

Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/R$stylable;

 

My imports:

import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.AdView;

 

My simple onCreate:

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    AdView mAdView = (AdView) findViewById(R.id.adView);
    AdRequest adRequest = new AdRequest.Builder().build();
    mAdView.loadAd(adRequest);
}

 

And in my layout:

<com.google.android.gms.ads.AdView
        android:id="@+id/adView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:layout_alignParentBottom="true"
        ads:adSize="BANNER"
        ads:adUnitId="@string/banner_ad_unit_id">
</com.google.android.gms.ads.AdView>

So names and namespaces should be correct. I am testing on a Samsung Galaxy 5 and a Nexus 9. Same error.

In pure desperation my next try is to install Android Studio on another machine and se if that works better.

 

Any suggestions are appreciated.

Global Code Style (Tab Character) settings keep getting overwritten

$
0
0

Each time I set my global code style preferences to use tabs instead of spaces, this setting gets overwritten and I keep getting the warnings when opening certain files that have spaces instead of tabs.

 

How can i get this preference to persist as the default for all languages and all projects?

Breaking out some directories as separate projects, in IDEA and source control

$
0
0

I have an app that's existed for a long time as a single monolithic project. It's being refactored into a main app plus a series of add-ons that I want to make into separate IDEA projects, each with their own source files, build process, and build output.

 

However, for technical reasons, the source files for add-ons need to be in directories inside the main app. (The build output for add-ons is just a zip, that when installed, results in the source files being in the same location as I have them in the main project tree.)

 

The main reason to split this into separate projects is that I'm heading towards open-sourcing the whole thing, and while initially I'll be the primary maintainer of the main project and possibly some specific add-ons, it needs to be possible for add-ons to be created and maintained by members of the user community.

 

Conceptually, what I want to do is exclude the directory where these add-ons are from the main project, and create new projects for each directory inside there, but as far as I know, IDEA projects can't contain other

 

I'd need to do the same thing at the VCS level (currently local SVN, will probably switch to Git in order to move it to GitHub), and I suspect nest projects aren't possible there either.

 

Am I right about the things I think aren't doable? Are there ways to accomplish some equivalents?

 

Hope this makes sense, ask if anything's not clear, and thanks in advance for any help.

Why are composite components xhtml files not refreshed?

$
0
0

Hello,

 

I have a problem when editing xhtml files of composite components (JSF).

When I edit a file, it is not refreshed nor hot swapped.

One curious thing is that the problem appears only with composite component xhtml files, note with other xhtml, css or js files.

 

I have set 'On Update action' and 'On frame deactivation' to 'Update classes and resources', and I have my web exploded war under my run config > Deployment > 'Deploy at the server startup'

 

NB: it seems composite component xhtml files are refreshed 'periodically' (or randomly?), as it was cached, but this period is rather long...

NB2: My colleague has the very same problem

 

Has someone already had this problem and know how to solve it? For now I have to restart the server each time I edit xhtml files

Thanks

Git not working

$
0
0

I'm using IntelliJ Idea 14.1.4, I've created a project and working on my code, I enabled Git integration for the project and initialised my local git repository. Each time I select push or checkin it says there are no changes, which is nuts because there are hundreds of changes in a whole pile of files.

 

I followed the steps in HELP but it never picks up any changes, clearly I am missing something simple but I'm not sure what. This is the first time I have tried using git in Idea as I usually use SmartGit externally.

 

Thanks for any ideas!

 

Chris

I'm using IDEA 14.1.4 and I can't find the JSR 45 option in run/debug configuration

$
0
0

I only have a hand full of options and don't see but half of the options that I see listed as configuration options under run/debug. Will I have to load these additional options like plugins, or does the "Remote" option cover JSR 45 debugging? I also need to know if there is a configuration that will enable javascript debugging, (local and remote). Thanks in advance.


How to customize JPA entity generation?

$
0
0

Hi there,

 

The JPA auto-generation based on database schemes is useful. It would be far more useful if we could control the templates used to generate those entity classes.

 

Is there a way to do so?

 

Many thanks,

Jason

Enable spell checking for all strings and comments

$
0
0

I'm editing a bunch of different (old) script files, some perl scripts, some bash and other bat files. Editing is fine, but I'd like to check my spelling within the files.

Right now, I'm having to open the files in Geany to get them spell checked. I would just use that, but these are all part of larger project that otherwise works really well.

My question, is it possible to just turn spell check on? I have it enabled and it works in other files, like php files.

 

Thanks!

New location for the license server breaks IntelliJ Ultimate 14

$
0
0

Hello,

 

We've been using a license server for some time, with many users connected to it. Because we needed to change the machine, we installed the license server on another machine, and changed the URL in every IDE.

 

Since then, we often see errors when the IDE is trying to connect to the server. At some point, the IDE quits, thinking that there are no available licenses.

 

In the client, I can see logs like this one:

 

2015-09-16 10:24:04,903 [184715325]   INFO - .ide.license.impl.ServerSource - Unable to contact license server: Cannot obtain ticket due to connectivity problem: java.net.SocketTimeoutException: Read timed out

 

But on the server side, there are no error logs.

 

When such a problem occurs, quitting and restarting the IDE works, therefore the communication can succeed between the IDE and the server.

 

Can anybody help?

 

Regards,

 

Sébastien

Disable Reformat for whole file

$
0
0

Hello!

 

I would like to disable the "Reformat file" and instead just reformat my selected parts if possible.

That is working fine if I select parts. Is there also a way to reformat all changed parts?

 

Thanks!

Breaking out some directories as separate projects, in IDEA and source control

$
0
0

I have an app that's existed for a long time as a single monolithic project. It's being refactored into a main app plus a series of add-ons that I want to make into separate IDEA projects, each with their own source files, build process, and build output.

 

However, for technical reasons, the source files for add-ons need to be in directories inside the main app. (The build output for add-ons is just a zip, that when installed, results in the source files being in the same location as I have them in the main project tree.)

 

The main reason to split this into separate projects is that I'm heading towards open-sourcing the whole thing, and while initially I'll be the primary maintainer of the main project and possibly some specific add-ons, it needs to be possible for add-ons to be created and maintained by members of the user community.

 

Conceptually, what I want to do is exclude the directory where these add-ons are from the main project, and create new projects for each directory inside there, but as far as I know, IDEA projects can't contain other

 

I'd need to do the same thing at the VCS level (currently local SVN, will probably switch to Git in order to move it to GitHub), and I suspect nest projects aren't possible there either.

 

Am I right about the things I think aren't doable? Are there ways to accomplish some equivalents?

 

Hope this makes sense, ask if anything's not clear, and thanks in advance for any help.

Viewing all 5661 articles
Browse latest View live


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