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

File Watcher and VCS (Perforce)

$
0
0

Hi,

 

Hopefully I'm missing something... But I have a custom File Watcher that "pre-minifies" my angular javascript files, and it works perfectly. The only issue is that I want to store the resultant file into source control. If the file is in source control, I must manually open the file for edit before editing the source file.

 

Is there a way to have the editor check out the file for me?

 

Thanks,


Error when add ANE dependancy

$
0
0

I am trying to compile an existing AIR project with a new ANE lib

In module settings I added the the ANE to the mod via the dependancies tab

after I compile I get the following error

 

Error:[mRP]: unable to load SWC com.distriqt.Image.ane: {PATH}/ane/com.distriqt.Image.ane is not a SWC file.

 

I get the same result with both IDEA 12 & 13.1

 

am I missing something? anyone have advice?

 

thanks

Breakpoints in javascript libraries

$
0
0

I'm using Idea v12.1.6.

I've configured a javascript library (Angular.js) in my project, and want to put down a breakpoint.

I notice, when i configure the js lib, the Angular js file is no-longer available for me to set a remote URL in the run config..

In my html, i ref angular from //ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js

When i debug using the run config, IJ does not stop at my breakpoint (it does if i remove the lib and ref the remote cdn url directly in the run config)

 

Also, code completion and syntax hilighting is not there for the angular stuff (e.g. $scope.$watch is not hilighted)

 

How can i get the debug working, using libraries, with code completion, hilighting et al?

 

My end goal is to further introduce maps so my cdn is minified and debug is not.

Error when add ANE dependancy

$
0
0

I am trying to complile an exissting AIR project with a new ANE lib

In modual settings I added the the ANE to the mod via the dependacies tab

after I compile I get the following error

 

Error:[mRP]: unable to load SWC com.distriqt.Image.ane: /ane/com.distriqt.Image.ane is not a SWC file.

 

I get the same result with both IDEA 12 & 13.1

 

am I missing somthing? anyone have advice?

 

thanks

 

---

Original message URL: http://devnet.jetbrains.net/message/5513532#5513532

 

new error messages

$
0
0

When you recompile/rebuild, I wish Idea would immediately clear the

error messages window. It is not always obvious if you are looking at

old error messages or new ones from the latest compile.

--

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)

 

How to create Java EE application by following Netbeans guide

$
0
0

Hello. Anyone could help me to create a Java EE application by reproducing what there is in the following guide https://netbeans.org/kb/docs/javaee/entappclient.html in Intellij Idea IDE? I know to create a Java EE application in Netbeans thanks to that but when I try to create a java ee application in Intellij Idea I fail. It doesn't work. I create an empty project and after that i create a java class library.quite easy but after how can I create an ejb module?

Potential bug in JSHint support?

$
0
0

I'm running IntelliJ 13.1 Ultimate (Build 135.667) and JSHint 2.4.4 (bundled). I think this is actually 13.1.2 EAP but there's no version number other than 13.1 in the About dialog.

 

I don't understand why it's thinking this.normalFont and this.highFont are unresolved variables immediately after they have been assigned values. At least I would expect it to also complain about the original assignments as being unresolved as well in this case.

 

There are intention actions for fixing this, but "Create Field 'normalFont'" just inserts a line that says "this.normalFont = undefined" and then says that normalFont is an unresolved variable.

 

If I run this code through http://JSHint.com, I don't get this warning at all.

 

The documentation comment includes @constructor. I have noticed that if I change it to "@constructor universe", where "universe" is any word, phrase or punctuation mark, this problem goes away. However in that case the generated documentation includes the literal text "@constructor universe" in it and the function isn't flagged as a constructor. I discovered this when I thought that perhaps I could specify after the @constructor tag a list of member variables or something.

 

I can turn the inspection off entirely, or manually turn it off for every single statement like this, but both of those seem wrong to me.

 

Can anyone explain why it's doing this, or what stupid thing I'm doing wrong, or how to convince it that this is a field that actually exists, or something?

 

IntelliJ13_JSHint_badVar.png

Maven dependency suggestions in IDEA 13

$
0
0

I use Intellij IDEA 13 on Ubuntu 13.10 (in Virtualbox) and maven for a project. Everything worked fine up until recently, when IDEA suddenly stopped giving suggestions for groupId, artifactId etc. for dependencies. I didn't do any changes to setting in IDEA or anywhere else. The only change I can remember doing around the same time was updating Virtualbox.

 

I noticed that in settings => maven => repositories the remote repository was set to http://repo.maven.org/maven2, and it gave an error. After fiddling a lot it suddenly changed back to http://repo1.maven.org/maven2 and doesn't give any error anymore.

But I still have the problem where IDEA refuses to give any suggestions when editing pom.xml files (except the modules in my project). If I run the build, it downloads all the depdencies and everything seems to work well.

 

Also, in "Artifactory or Nexus Service URLs" the http://oss.sonatype.org/service/local/ doesn't return any repositories. Don't know if it relevant.


Where is command "Export to DDL"?

$
0
0

How to run hbm2ddl from IDEA? How i can export my entity to SQL? Where in this beautiful monstrous IDE this simple and necessary feature?

Preview compiled coffeescript

$
0
0

Hi, I've recently upgraded to IDEA 13.1

 

In Idea 12 - i had a coffeescript plugin, that allowed me to preview compiled coffee (in js). So, i'd highlight a block of coffee, run the action and voila, instant Java(script). This is a feature i made very regular use of, and am struggling to get it in IDEA 13 - how do i get it back?

 

~gilbert

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

[InterlliJ 13] Terminal tab switch hotkey

$
0
0

Hi,

 

I find the embedded terminal window a great feature. But when creating multiple terminal tabls (with cmd+t), I did not find any shortcut key to easily switch between tabs, is there any?

 

Thanks

Gradle support - IntelliJ doesn't appear to understand "ext"

$
0
0

I define project properties like this:

 

project.ext.playn = [

    version: '1.8.5'

]

 

and then use them in subprojects like

 

compile "com.googlecode.playn:playn-java:$project.playn.version"

 

Now, I'm not actually sure if that's how you're supposed to pass properties around in gradle (I found the documentation to be kinda vague), but it's valid and it works.

IntelliJ doesn't like it though (it can neither resolve "ext" nor any attributes created that way).

 

On a slightly related note: It doesn't recognize "attributes" in "manifest" either.

 

This seems kinda weak considering "improved gradle support" was one of the feature lines for 13.1 - am I missing something? Is there some additional something I have to enable or set to make this work properly?

JPA Console without persistence.xml

$
0
0

Hi,

I have a behaviorsimilar to http://devnet.jetbrains.com/message/5459922:

I'm setting up a persistence.xml-free JPA/Hibernate 4+/Spring 3+ using Intellij 13+. When I try to execute a query in the jpa console, I get the following error:

 

    javax.persistence.PersistenceException: Unable to build entity manager factory

    java.lang.RuntimeException: org.hibernate.boot.registry.selector.spi.StrategySelectionException: Unable to resolve name [org.hibernate.dialect.PostgreSQL9Dialectt.PostgreSQL9Dialect] as strategy [org.hibernate.dialect.Dialect]

 

With the default postgres dialect, I get the same error.

Any idea what's going on?

 

Thanks,

JRG

IntelliJ IDEA Code Golf Plugin

$
0
0

Hello, where I can find out the best solution to tasks for IntelliJ Code Golf Plugin?

Plugin only shows:

Task is solved

Your result is 20. The best result is 2.

The details about the task can be found here

Try again if you want to improve your solution.

 

For example task HelloWorld

Initial code:

 

publicclass HelloWorld { } 

 

Target code:
publicclass HelloWorld {    publicstaticvoid main(String[] args) {        System.out.println("Hello, world!");    }} 

 

psvm

sout

typing Hello, world!

 

Result only 20 How to solve this task with result 2?


Keyword 'not' is not syntax highlighted in coffeescript

$
0
0

Hi, in IJ 13.1 the coffeescript keyword 'not' is not syntax highlighted as a reserverd word - was fine in v12.

~gilbert

"Field can be converted to a local variable" / "Field can be local"

$
0
0

Hi,

 

I believe this warning is false, at least in some cases.

 

I have places where a field is initialized by a call to a method and where that field is used only in a single method, leading to the triggering of this inspection.

 

However, the inspection's validity seems to overlook possible side-effects, non-idempotency and execution costs of the method call used to supply the initializing value for the field in question.

 

Am I mistaken about this?

 

 

Randall Schulz

 

Edited by: Randall Schulz on Apr 29, 2008 12:25 PM — Changed the oxymoronic "local field" to "field" in the 2nd paragraph.

IntelliJ IDEA 13 does not deploy correctly to Tomcat 7

$
0
0

I am evaluating IDEA 13 Ultimate, to see if I can switch over from Eclipse (which I do not like) for web app development.

But so far I was not able to do anything, not even to deploy the simplest test application.

 

I want to build a JSF application using Tomcat; I followed this tutorial to the letter (well, almost, I upgraded the instructions to version 13)

 

http://wiki.jetbrains.net/intellij/Creating_a_simple_Web_application_and_deploying_it_to_Tomcat

 

It creates a very simple "Hello world" application.

I deploy and run it, and it all seems to work...

 

[2014-04-14 04:59:33,374] Artifact TomcatTest:war exploded: Artifact is being deployed, please wait...
[2014-04-14 04:59:33,992] Artifact TomcatTest:war exploded: Artifact is deployed successfully
[2014-04-14 04:59:33,993] Artifact TomcatTest:war exploded: Deploy took 618 milliseconds

 

... but then Tomcat cannot find anything.

IDEA correctly opens the browser at localhost:8080/TomcatTest but... all I get is a 404 from tomcat.

The manager app (localhost:8080/manager) is OK, and it shows /TomcatTest as deployed.

The exploded war artifact in my $project/target dir (the default) contains all the relevant files.

 

Even instucting IDEA to output the exploded var to my tomcat "webapps" dir, as suggested here

 

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

 

does not work.

Which is really absurd, as I can now see under "webapps" the TomcatTest dir, with all the files, but Tomcat seems to look somewhere else and gives me a 404.

 

I am using 135.480

some problems with Groovy compiler use

$
0
0

I have some new problems with Groovy

- when something fails I do not have the slightest idea of what is compiled (see attached image: in that case this is a Big project -90 Maven Modules- and I have no idea of what is happening because there is no indication about the source which is compiled

(this is critical because I do not see any Groovy source with the missing class! is there a way to have the complete stacktrace?

-  a groovy source in a "test" directory does not see Java code in the same directory (I was obliged to add the test classes directory to the dependencies explicitly)

 

thanks for any hint

Howto create a new File Type copying from existing one

$
0
0

Hi,

 

Using IJ CE 13.1.1, I would like to create a new File Type, then register it with a new file extension, and define all the keywords for syntax hilighting.

The procedure is described in IntelliJ documentation: Creating and Registering File Types

 

However, to make the job easier, would it be possible to create a new File Type definition by copying from an existing File Type? Then aftwerward I just need to make a few modifications to customize the new File Type.

 

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>