Quantcast
Viewing all 5661 articles
Browse latest View live

Intellij 13.1 project class path with reference within source subfolder causes code inspection to fail completely

Since IntelliJ 7 we have a standard project setup as follows:

 

source root = D:\src

main package: dce

 

example sub packages:

dce.bo

dce.client

dce.util

 

the java source folder also contains resources: property files and images.

(We prefer not to copy every resource to the classpath while compiling --> resources are not copied to classpath)To be able to access these 'resources' while running in development we added the following folders to our classpath:

D:\src\dce and D:\src\dce\client

 

When we run and debug the application, the application can access all it's resources because the necessary source subfolders containing resources are in the classpath.

--> All work fine

 

However: since IntelliJ 13.1 now all my sourcecode is RED --> the code inspection does not recognise the packages anymore which where also used in the classpath.

 

e.g. any class in dce.client is not recognised by the code inspection (although it compiles and runs just fine).

When I open a class in package dce.client, the inspection gives the following error on the package header: Package name 'dce.client' does not correspondent to file path 'client'

--> the classpath seems to hassle up the source folder structure for the inspection ??

 

 

This make 13.1 useless for us and is a real showstopper !! the same project has been working perfectly from Idea 7 till 13.0.3


Flex/air : how do I create/use an application descriptor?

Hi all,

 

Sorry for the newbie question, but I'm having really a hard time creating or simply using an application descriptor.

The help mentions "create air descriptor template dialog" but I don't find this menu item. I am on a trial of ultimate 13.1

Somewhere it's mentioned I should find something under TOOLS - flex.

 

Can somebody point me to the right direction?

 

Thanks in avance

 

Arturo

IDEA 13.1: Wrong cursor position after moving cursor to an empty line

XSL files not recognized as source code?

Hi all, I'm using IntelliJ 13.1.1 version and I'm trying to import a module to a project that has this structure:

 

module

  - some files

  |- src

       |- Java packages

 

  |-xsl

       |- XSL files

 

Well, when IntelliJ is importing the source code, it only recognizes the 'src' directory, so I can't see the 'xsl' directory

within the IDE because .xsl files are not recognized as source code files. I have already enabled XPath + XSLT plugin...

 

How could I import that directory into the project?

Problem downloading 13.1.1 - just how big is it ?

I've been taking EAP patches for a few months but saw a full 13.1.1 was available so I've just tried to download it. In fact there was no problem downloading it but I thought that perhaps I should abandon it when it reached 466Mbytes !

 

Previous 13s have been 250ish Mbytes so I do suspect something is amiss.

 

Any thoughts or should I just try again ?

 

I'm using linux and issued: wget http://download-cf.jetbrains.com/idea/ideaIU-13.1.1.tar.gz, which is what I normally do for a full download.

 

run at about 23:30 GMT 30/3/14.

 

graham

Eclipse keymap (comment line)

Hi all,

 

what is the shortcut for "comment line" when using the eclipse keymap? Ctrl+Shift+c and Ctrl+/ both do not work.

Artifact's setup cleared after external build

Hi,

 

I have a 'Directory content' added to 'my-webapp:war exploded' artifcat under WEB-INF/classes. Each time I run maven build from console the 'Directory content' is being lost. Is it bug or feature?

 

Best regards, Eugene.

Disable Specific JavaScript inspection

I need to disable the inspection that causes big ugly red underlines when I return a value from a constructor function (JS/ECMAScript). The exact error displayed is this:

"No return value is required for return out of constructor"

 

I can't find where to disable this specific inspection.


Installing 13.1

I uninstalled 12.1.  I have JDK 1.7_51 both 32 and 64 bit installed.

 

I removed all files in F:\Program Files (x86) and C:\users

 

I pruned IntelliJ entries from the registry.

 

When I install 13.1 I get "Failed to install JVM, error code -1"

 

Some time ago I had trouble installing 13 over 12.1.  Someone from

Intellij gave some hints on what to do.  I did not get around to it

until the instructions scrolled off my reader.

--

Roedy Green Canadian Mind Products http://mindprod.com

"Incorrect documentation is often worse than no documentation."

~ Bertrand Meyer (born: 1950 age: 63), creator of design by contract

and the Eiffel language.

 

intelij keeps inserting jars even after i deleted them

hi..

 

i've just upgraded our pom.xml to use tomcat 6.0.37, which means we also upgraded servlet jars (2.5), however, we also have another servlet jar 2.3, which causes classpath conflicts (noSuchMethodfound), we don't use directly servlet 2.3, but active mq has very distint dependcy on it, so i thought i would be able to just remove it from the lbiraries node in the projects window if intelij but it keeps coming back.

Deploying and running multiple WARs on the same instance of Tomcat

I want to deploy and run multiple WARs on the same instance of Tomcat so that they communicate to each other. It seems that I can select only 1 facet to deploy with 1 run configuration.

Is there a way around? I am on Intellij 8.X and my project is Maven based.

Please enlighten.

Vlad

AngularJS Plugin for IDEA 13.1

Hi,

 

the just released new version of WebStorm does contain a new version of the AngularJS Plugin.

It seems that that version of the plugin is not jet available for IDEA:

 

Plugin included in WebStorm: 135.547

Plugin downloadable for IDEA: 134.1444 (see https://github.com/johnlindquist/angularjs-plugin)

 

Will there be an updated version of the Plugin for IDEA?

 

Regards

Stefan

Reformat code does not reflect my code style config for tab indent

I have searched a number of times and have not come up with any answers. My problem is that I open the code style, select general, then select project. The default settings are 4, 4, 8 respectively. So I change them to 2, 2, 4, as well as change the defaults for HTML and Ruby as well. When I return to my file and click on reformat code for this file, nothing happens. But if I start a new line and click tab, it does only tab 2 spaces. Once I reformat my code again, if reverts back to 4 spaces.

 

How can I use the reformat to reflect the new 2, 2, 4 indent scheme?


I am currently working on a Ruby on Rails (using ERB files) project with another dev, who is using Sublime Text, and due to VCS issue, we need the spaces to be 2. I'd rather not have to discard Intellij for what seems to be a simple issue.

How to use the deployment "upload to..." functionality to stage deploy a VCS commit?

When I do a VCS commit, I have the the fantastic functionality to upload all the changed files to our test server upon check-in.  This is great.

 

However, once testing is complete and approved, I'd like to go back to that change and upload the same set of files to our staging server.  I have the different deployment servers and paths set up correctly, it's just that I can't easily reselect that same set of files to upload to the next stage.

 

Does anyone do something similar or have a good suggestion on how to achieve this?

Maven Profiles integration with parameters in pom

Hello,

 

I created a pom with several profiles in, one profile containing parameters (username and password) that need to be supplied. If I run maven command line with -Duser=blah -Dsecret=blah, it seems to work. However, I don't find a consistent way of configuring IntelliJ to use these parameters.

 

I select the Profile in the Maven Projects view, and I tried to supply those parameters in all kinds of ways on the junit configuration but it's not being picked up. What seems to work i creating a Run Configuration for maven on the Maven Projects tab, for example compile, and supplying the parameters to that configuration. Then each time I launch that maven compile configuration, the next junit runs will pick the parameters up, it seems. That is to say, as long as the JUnit Run Configuration existed before I ran the Maven Run Configuration. For a new test I need to rerun the maven configuration, if I relaunch the editor I need to do so, and so on. Is there any consistent way of supplying parameters to the maven profile in the JUnit configuration (I would like to have it in the JUnit configuration, must be possible because there's clearly a link between the selected maven profile and the junit configuration, different profiles yield clearly different results, it just seems to not want to work with parameters in the profile). Is this a bug in the editor or one in my head?

 

Kasper


Gradle fails to sync/refresh

Hi there,

I'm willing to create an Android project with Gradle Androi Module, but as soon as I create it, I have an error I don't understand and I have no idea to resolve it. It says

"Gradle project sync failed. Basic functionnality (e.g editing, debugging) will not work properly" or "Gradle 'myapp' project refresh failed: A fatal exception has occurred. Program will exit. : Gradle settings"

 

If you have an idea of what causes this problem or if you have already encountered it, please tell me what to do. I'm using IntelliJ 13.1.1

Waiting for your answers.Image may be NSFW.
Clik here to view.
Thx Image may be NSFW.
Clik here to view.

Sharing external tool config via version control

Hi,

In my project I need to create some properties file using a script. To achieve this:

  1. I added the "script" as an external tool.

Image may be NSFW.
Clik here to view.
externalTool.jpg

 

  2. In run/debug configuration specified the external tool inside "Before launch" tasks.

 

Image may be NSFW.
Clik here to view.
config.jpg

 

 

 

This led to creation of a configuration inside ".idea/runConfigurations" folder that I added to our version control system.

 

When someone checks out this change, although he gets the new "runConfiguration", it does not work because the "external tool" is not configured in their IDE.

 

How to add the "external tool" inside the version control?

 

In case there is some better way of achieving this instead of using external tool (may be by modifying the default "Make" task to incorporate the "script"), then please guide me.

haxe debug -- waiting for player to connect then nothing. . .

New to Haxe & Intellij.  Coming from Flash Builder 4.7.  Trying to make sure I can do everything I need to do before I spend the money for the licence.

 

I've set up the haxe file and have no problem running it.  But when I click debug, I get "Waiting for Player to connect" and then. . . nothing.  Godot.

 

I've looked at several threads in this forum, but no help so far.

 

In this thread:

 

http://devnet.jetbrains.com/message/5256592#5256592

 

They suggest:

 

- create new Flex run configuration (Run | Edit Configurations | [+] button | Flex), give it some reasonable name

- check 'Debug already running Flash player' radio button

 

Which would be awesome, but in the version I have (13.1.1), there is no Flex option (after the [+] button), just a "FlexUnit" option.  And that has no 'Debug already running Flash player' checkbox.

 

This thread also references the 'already running Flash player' option (which doesn't exist for me):

http://devnet.jetbrains.com/message/5259055#5259055

 

And I was unable to find anything useful in these:

http://devnet.jetbrains.com/message/5476464

http://devnet.jetbrains.com/message/5461658#5461658

 

I really want to make the leap to Haxe, and so I'm totally IDE shopping.  Intellij seems all sorts of slick, so I really hope this works out.  If anyone can point me in the right direction, I'd be really grateful.

Dart plugin: equivalent of DartEditor "Run as Javascript"

In the DartEditor, the Javascript version of a Dart application can be executed by selecting "Run as Javascript". Is there an equivalent function available in IDEA with the Dart plugin?

Cannot type name when extracting variable,field or constant in 13.1.1 (CE)

After upgrading to IntelliJ 13.1.1, I cannot type the name of a new variable, field or constant (and probably also parameter) when trying to extract them. It does show the suggested names, with a red-lined box arround the 1st suggested name, but I can only select one of the suggested names and cannot just start typing anymore.

 

I use this feature heavily, so for me a reason to downgrade back to 13.0.3 where this feature works as expected.

I hope this gets fixed fast.

 

System setup:

IDEA CE 13.1.1

Mac OSX 10.9.2

Java 1.7.0_17

 

Regards,

Joost

Viewing all 5661 articles
Browse latest View live


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