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

IDEA 14.1.1 Ultimate keeps changing the .idea/misc.xml file when gradle projects are refreshed

$
0
0

Hi. Whenever I open idea, it changes the .idea/misc.xml file by adding this:

 

+  <component name="FrameworkDetectionExcludesConfiguration">

+    <file type="web" url="file://$PROJECT_DIR$" />

+  </component>

 

I then go 'Open module settings' -> Facets -> and delete 'web' from 'exclude from detection'. Then I do  a 'Refresh all Gradle projects' in the Gradle tab and I do git status, misc.xml changed again! I'm loosing years of my life over this.

 

What should I do about it? What triggers this strange behavior?

 

My project is a root project with 3 submodules.


How to export code style?

$
0
0

How does one export code styles in IDEA 14.1.1?

Is it possible to add a specific Ant task to IDEA's Build menu?

$
0
0

In the Build menu, I see myproject -> <default target>, very useful.

 

There's one other Ant target I need to run pretty frequently, and it'd be great if I could add it to that menu too. Is there a way to do that?

 

Other than that, you need to open the Build panel, find that target, and run it. The menu would be significantly more convenient.

Ant in IDEA vs on the command line

$
0
0

When I run a bild in IDEA, I don't see any echo'd output. I see it when  run it from IDEA's terminal window, or the command line, but not when I run it in IDEA as intended.

 

Do I have something set up incorrectly in my build properties?

Specifying SVN user name and password from Ant in IDEA

$
0
0

Apologies if this is super obvious, but I'm trying to create an Ant target that among other things, creates a subversion tag from trunk. Subversion works fine from the IDE itself, I have the Subversion command line components (fron Visual SVN) installed, and I'm able to execute svn staatus in my build script. (Not that the output is super useful, another whole thing...)

 

When I try to create the desired tag, I get "E730049: Unable to connect to a repository at UR https://myserver/svn/myproject/trunk".

 

Here's the relevant bit:

<exec executable="svn" resultproperty="svnResult" outputproperty="svnOutput" failonerror="false">
    <arg value="copy" />
    <arg value="${product.svnUrl}/trunk/" />
    <arg value="${product.svnUrl}/tags/${fullVersionString}_TEST" />
    <arg value="-m ${fullVersionString} release tag" />
</exec>

 

When I hit that URL in a browser, it asks for credentials, I supply them, and it works fine. However, if I add <arg value="--username foo"  /> and <arg value="--password bar"  /> to the <exec> tag in the build file, I get "invalid option: --username foo".

 

How can I provide a username and password that will be seen by this command?

 

A related issue is that I'd rather svn credentials weren't in plain text in the build script. Ideally I'd put them somewhere they'd be honored by the cmd line in this context, but were at least nominally somewhat secure.

 

It's clearly not using the ones IDEA itself uses, which makes sense,  since it's a spawned cmd process that's running there I think. Is there any way to make that happen?

 

Seems like both aspects of this might be dealt with by proper setup of the files here:

C:\Users\Me\AppData\Roaming\Subversion\

...but I don't know what to do to get Subversion to store the needed credentials in the proper format.

 

Thanks all.

Anyone know how to hide git ignored files in IDEA?

$
0
0

I'd like IDEA to NOT display files that have been defined in my .gitignore folder.

 

I installed the .ignore plugin but it doesn't actually seem to hide the files in question, it just fades them out a bit.

 

Thanks,

D

Intellij IDEA without GC pauses

$
0
0

Open-sourcing Intellij IDEA has created an exiting opportunity for Excelsior: we  have native compiled IDEA with Excelsior JET,  a Java SE 6 VM with an ahead-of-time (AOT) compiler and installation toolkit.

 

We have been working with the compiled IDEA for a few months and it  looks and feels the same, but with one major distinction: long lasting GC pauses  no longer appear when using the IDE.

 

Feel free to try it yourselves:  native compiled Intellij IDEA 9.0.3 Community Edition is available for  download at Excelsior JET Application Gallery.

 

Develop with (more) pleasure!  

Intellij JUnit test configuration won't load Spring-instrument load time weaver?

$
0
0

I moved to a different machine recently and lost all my test configuration information for my Intellij projects.    Now, I can't re-create the settings for my JUnit tests to run - they require the Spring load time weaver and it's being difficult.   No matter what I try, I get this:

 

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.context.weaving.AspectJWeavingEnabler#0': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loadTimeWeaver': Initialization of bean failed; nested exception is java.lang.IllegalStateException: ClassLoader [java.net.URLClassLoader] does NOT provide an 'addTransformer(ClassFileTransformer)' method. Specify a custom LoadTimeWeaver or start your Java virtual machine with Spring's agent: -javaagent:org.springframework.instrument.jar

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:547)

I have the following in my Junit configuration setup:   -javaagent:C:/Users/me/.m2/repository/org/springframework/spring-instrument/4.0.6.RELEASE/spring-instrument-4.0.6.RELEASE.jar
but that does not help, no matter what I do, I still get this error.    So far, I have tried: 
backslashes in the path
forward slashes in the path
double backslashes in the path
other versions of spring-instrument JAR (3.1.1, 3.2.1, 3.2.9)
verified that the required JAR is actually on my machine
Moved the JAR into the project directory itself
Just wondering if anybody has the "magic bullet" to fix this problem.

Atlassian plugin - Jira - captcha

$
0
0

When I try to connect to Jira using the Atlassian plugin (3.0.16), I have to enter a captcha when my password is changed. But there is no browser, so I don't see a captcha.

 

I have made a connection to Jira before using the browser (after I had to change my password) and entering the captcha, but apperently this is considered a different connection.

 

Did anyone find a solution to this?

Is it possible to use IDEA source formatter from e.g. Gradle?

$
0
0

Would it be possible to use IDEA source formatter outside of IDEA, from e.g. Gradle?

 

That would be awesome!

Python plugin and conda environment

$
0
0

Hi,

 

I am using Python plugin on IntelliJ 14 Ultimate with conda as my virtual env manager.

 

I have chosen the Python SDK under Project Structure to point to the correct env directory that I am using and I can run the Python program from the Terminal window inside IntelliJ within that particular virtual environment. However the editor is showing a lot of red squilly denoting compile errors especially for all the imported libraries that I have fetched into the environment through conda install or pip install.

 

Is there other settings that I need to do to be able to use the IDE appropriately?

 

Thanks,

Suriyanto

GitHub issues do not show in tasks

$
0
0

Hey everyone,

I'm trying to integrate IntelliJ's Task Management plugin with GitHub issues with little success.

I have a test GitHub project, into which I added some issues.

I configured the plugin with the GitHub server, but when I open the tasks drop down I don't see any tasks...

At one point it showed me only one of the 3 issues I had and now that I closed it I see none of the remaining 2.

I tried it with and without the tasks cache option, and also tried lowering the timeout to 1 minute in order to make sure it's not a sync issue.

 

Am I missing anything?

 

Thanks,

Guy

what does "Choose Sources..." do - and how can I undo what it does?

$
0
0

When during a debugging session control moves into binary classes in JARs, the decompiler

decompiles such classes and displays the "Download Sources" and "Choose Sources..." links .

 

When I click on the "Choose Sources..." link, Idea then finds all the source directories under

the directory I choose and lets me select the ones I want to import .

Great!

 

But now I want to change the directory I initially chose for the JAR to a new directory.

 

Where can I do this in the IDE ?

 

Or how can I "undo" the choice of source directory I made for that JAR, so I can make another choice ?

 

I've searched everywhere and can't seem to find a way - any responses gratefully received.

 

Thanks & Regards,

Jason

Gradle Script parameters not being passed along

$
0
0

My gradle build scripts by default have org.parallel=true defined in the gradle.properties file. This makes the builds execute faster in parallel mode. However there are a few tasks which don't work properly if run in parallel mode. I've typically handled this by adding -Dorg.gradle.properties=false on the command line when invoking those specific tasks. This always works just fine.

 

However I'm having a problem with my run configurations not passing this parameter to gradlew when launching my task from Intellij/AS. If I add -D.org.gradle.parallel=false as a script parameter for a Gradle run config the script param is ignored, and gradlew launches in parallel mode, the banner message comes up that says Parallel Execution is a feature still in incubation.

 

Any idea what is wrong or how to get Intellij/AS to pass this parameter to gradlew?

 

Thanks, Derek

Mocha plugin for IntelliJ missing

$
0
0

I canit seem to find the Mocha plugin for IntelliJ.  I see it referenced in several articlaes but it is missing from the Repo.  Any suggestions?


How to open a terminal via intellij in the selected folder

$
0
0

I want to right click on a file in intellij and open the terminal there in mac. I tried 'External Tools' but doesn't open the terminal in the selected directory even though I set $FileDir$ as the working directory of that tool

IDEA 14 . Node js. Excluding all node_modules folders from search.

$
0
0

For Node js projects

is there any way of excluding all node_modules folders in one go,  instead of going to each seperate directory .

I need this to exclude the search functionality in these folders but I have many folders with node_modules , I dont want to go one by one.

Thanks.

IDEA 14.1.1 Ultimate keeps changing the .idea/misc.xml file when gradle projects are refreshed

$
0
0

Hi. Whenever I open idea, it changes the .idea/misc.xml file by adding this:

 

+  <component name="FrameworkDetectionExcludesConfiguration">

+    <file type="web" url="file://$PROJECT_DIR$" />

+  </component>

 

I then go 'Open module settings' -> Facets -> and delete 'web' from 'exclude from detection'. Then I do  a 'Refresh all Gradle projects' in the Gradle tab and I do git status, misc.xml changed again! I'm loosing years of my life over this.

 

What should I do about it? What triggers this strange behavior?

 

My project is a root project with 3 submodules.

IntelliJ 14 Stops Running After Returning from Remote Desktop

$
0
0

Hi,

 

I have a persistent issue.

 

When I remote desktop (mstsc) onto my machine while IntelliJ is running - it works just fine.  After I go back to my desk and login directly to the desktop, IntelliJ has stopped running.

 

I don't logoff - just disconnect.  When I log back in, everything else is just fine; only IntelliJ (and, if I'm running it, PyCharm) will have crashed.

 

Any thoughts?

 

Matty

Maven reimport resolves module addresses against USER_HOME?

$
0
0

Hi

 

this is with Intellij 14.

 

I have an existing Java/Maven project for which our small team does not shared IDEA configuration. We'd like to try that, but without mucking up the project and module configuration files on individual developer machines. So, my idea was to re-import that top-level POM but target a new directory, e.g. <project_home>/ide_settings, and check that in, allowing developers to try it out at no risk to their existing system. That worked on a local test.

 

That worked, but I ran into an odd situation. To avoid collisions with the existing module (.iml) files in the project, I chose to have the new module files places in the ide_settings/ directory. However, I found that during Maven import/reimport, the module files were registering the module content (sources, resources, etc.) relative to my USER_HOME, e.g. something like $USER_HOME$/path/to/project/...src/main/resources. Of course this poses a problem because we don't want to force our developers to install the projects to the same locations on their hard drives.

 

I then tried to close the project and edit the module files to make the paths relative to $MODULE_DIR$, e.g. $MODULE_DIR$/../src/main/resources. That worked when the project was reopened - I could compile and run tests and such - but on triggering a Maven reimport the module files were edited, this time to re-add the $USER_HOME$ paths, alongside the ones I had added.

 

So, first lesson, don't modify the module files directly. :/

 

But: is there a way to do what I need to here? I'd like there to be no paths in the IntelliJ project configuration files pointing to USER_HOME, unless it's in a purely local file which never gets checked in.

 

 

Thanks!

Patrick

Viewing all 5661 articles
Browse latest View live


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