Quantcast
Viewing all 5661 articles
Browse latest View live

Antlib taskdef in IDEA

I need to work with .7z files in an Ant build I write and run in IDEA. To do that, I've installed Apache Compress Antlib in Ant's lib directory, and added this to the relevant build target:

<taskdef resource="org/apache/ant/compress/antlib.xml" />


The <sevenz> task I need works fine in the build, but IDEA highlights it and the <taskdef> line above as errors in my build file. Clearly Ant has loaded the library and its taskdefs, but IDEA's parser doesn't see them for some reason.

 

Is there something I need to do to fix this? Or is it a bug?

 

Thanks.


IDEA doesn't do anything on JavaScript "onclick"

I have a simple JSF project (from the Core JavaServer Faces, 3rd Edition, Ch 4.), but the onclick doesn't appear to be executing the actual JavaScript file.

 

IDEA (14.1.4) seems happy with all the paths (such as <h:outputScript library="javascript" name="checkPassword.js"/>), and the project overall as far as I can see.

 

Also, I can hardcode an "alert()" into the onclick in the index.xhtml and that works.

 

This may not be an IDEA issue, but I'm confused why the JavaScript call isn't working.


Here's the JS file:

 

function checkPassword(form)
{
    alert("inside js");
    var password = form[form.id + ":password"].value;
    var passwordConfirm = form[form.id + ":passwordConfirm"].value;

 

    if(password == passwordConfirm)
        form.submit();
    else
        alert("Password and password confirm fields don't match");
}

 


Here's the index.xhtml file that calls it:

 

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:f="http://xmlns.jcp.org/jsf/core">

 

<h:head>
    <title>#{msgs.windowTitle}</title>
    <h:outputStylesheet library="css" name="styles.css"/>
    <h:outputScript library="javascript" name="checkPassword.js"/>
</h:head>

 

<h:body>
    <h:form>

 

        <h:panelGrid columns="2" columnClasses="evenColumns, oddColumns">

 

            #{msgs.namePrompt}
            <h:inputText/>

 

            #{msgs.passwordPrompt}
            <h:inputSecret id="password"/>

 

            #{msgs.confirmPasswordPrompt}
            <h:inputSecret id="passwordConfirm"/>

 

        </h:panelGrid>

 

        <!--Execute JavaScript function on click of the button-->
        <h:commandButton type="button" value="Submit Form" onclick="checkPassword(this.form)"/>

 

    </h:form>
</h:body>
</html>

 

-----

 

Intellij is fine with the entire configuration. If I rename anything, it goes red right away. Yet, when I click the "Submit" button, absolutely nothing happens.

 

The project structure is shown on the attachment.

 

Any suggestions greatly appreciated.

 

Thanks,

 

- m

Please publish release notes for minor versions

I am on Linux and although updating is not rocket science, it is hardly a one-click activity either, I have to download, install, update symlings, menu's... and for what? That is what I want to know. I get the "Platform and Plugin Updates A new version of IntelliJ IDEA is available!" and link toclick where I can download it. There I see the release notes for the major version but nothing about what is new/fixed in the minor one so I have no idea if there is anything that concerns me.

 

Please, publish the release notes soI know what I can skip and if I don't skip it, so I know what changes I can expect.

Copy Paste and SVN Problem

Hey,

 

I'm having the following problems using IntelliJ IDEA 14:

 

1. Copy Paste between IDEA and other Windows Applications, like Notepad++ etc. stops working all of a sudden. Strange enough copy pasting from IDEA to IDEA works, as does copy pasting between the other Windows Applications.
    A restart of IDEA helps, but a few hours later the problem might occur again. I'm not sure the exceptions in the log file have anything to do with it, because i don't remember anything being logged there the last times this problem occured, but who knows..

 

2. I often get this PTY error you can see in the log, when trying to commit to SVN. Again a restart helps. What does not work at all is the annotate function, for whatever reason (used to work in IDEA 12..).

 

Anyone has an idea about how to fix this stuff?

So far i tried it with different Java versions (1.7.x,1.8.x, 32 and 64 bit) and the 32 and 64 bit IDEA launcher..nothing helped :/

IntelliJ IDEA does not detect classpath library jar file

Weblogic server in clustering

Hi,

 

I cannot understand why  we should choose a managed server in the configuration of oracle weblogic server in clustering mode.

While inOracle's definition,multiple application components are"clustered" by deploying them on multiple server instances in the cluster. So weshouldchoose theclusterand not aparticular server. O.O'?

Grouping gulp tasks

I have project with many apps. On each app have many gulp tasks. Tasks are grouped by meaning. In the end, there is a large list of tasks. It would be very convenient if all these tasks can be grouped.

Make JSLint and JSHint working by config file and node, as JSCS and TSLint.

Because it is more convenientand does not causedissonance withjscsandtslint. =)


Per-module compiler settings

Hi!

 

Is there a way to specifiy the compiler settings and module level, and not only at project level?

I am not speaking about the project structure settings, which is per-module, but Settings -> Build -> Compiler.

I want to specify different compiler process VM args for modules.

 

Thanks in advance,

Csaba

How to choose code inspection profile to run during commit?

It's just i couldn't find anything relevant in IDEA's settings, I am sure I might be missing something obvious. By default, it seems to choose the default project profile.

 

Conversely, for better usability, you could also put a 'Configure' button next to the commit changes dialog > Perform code analysis check, just like for todo check (way less useful to me) in order to choose the desired profile without the fuss to go in settings for each project, etc

idea.exe vs. idea64.exe?

For a long time now, I've noticed there are two exe files for IDEA: idea.exe and idea64.exe. It seems obvious from the naming that idea64.exe is a 64-bit version. However, I've never found any reference to this in the IDEA docs.

 

First, is there a reason why the difference between these files isn't explained anywhere? It seems odd that JetBrains would provide a 64-bit version, but never mention it or explain why you'd use it over idea.exe.

 

And second, if one wishes to use the 64-bit IDEA, do we have to manually start it up using idea64.exe? Or does idea.exe have some logic built into it that checks whether the system is 64-bit, and automatically launches idea64.exe if it is?

 

Thanks,

 

Brian

Errors on startup in log: "Error while indexing..."

Version: IntelliJ Ultimate version 14.1.4 (#IU-141-1532, dated June 18, 2015)

OS: OS X 10.10.4

Everytime I load a Java project I get errors like this in my error log:
3:41:26 PM AbstractMethodError
           Error while indexing /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/lib/tools.jar!/com/sun/tools/hat/resources/oqlhelp.html
           To reindex this file IDEA has to be restarted
3:41:49 PM AbstractMethodError
           Error while indexing /Users/jhall/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-core/1.3/1dc37250fbc78e23a65a67fbbaf71d2e9cbc3c0b/hamcrest-core-1.3-sources.jar!/org/hamcrest/core/package.html
           To reindex this file IDEA has to be restarted
I also can't seem to edit HTML files.  If I create a new one or load an existing one, the editor tab doesn't show the text of the HTML document.  It is blank with a text input box with the text "Enter your URL here" in it.  On closing the tab, this gets logged:
4:07:52 PM AbstractMethodError: null
Editing Javascript files appears to work fine and intellisense works with these.
I've tried several things to no avail: Drag IntelliJ to the trash and re-install, repair permissions, turned off FileVault, and verified the OS X disk has no errors.
Can anyone suggest a way to fix my issues?
Thanks!

auto-format not formatting in play framework template

Hi All. I'm a new Scala and new Play 2.0 user on IDEA 14.1.4 Ultimate & Scala Plugin 1.5.2., and I have an issue where IDEA is not correctly formatting a play template file in my opinion. To recreate: Make a new Scala + Play 2.x project, let it initialize the sbt stuff, and replace 'app > views > index.scala.html' with this unformatted code:

 

@(message: String)

@main("Welcome to Play") {

@play20.welcome(message)

$(function() {
console.log("$");
});

}
Run 'Code > Reformat Code...' On my setup this only indents lines 3-4, but I expect it to indent more like this:
@(message: String)
@main("Welcome to Play") {
    @play20.welcome(message)
    $(function() {
        console.log("$");
    });

}

Any help would be awesome!

matt

---

Original message URL: https://devnet.jetbrains.com/message/5548104#5548104

Disable this tooltip

Associate .js files with node.

Hey,

 

In one of my node.js projects, all the nodes.js files have the hexagon icon and have node.js syntax parsing enabled for those javascript files.

 

The new static webproject I made treats .js files has normal js files.

 

Is there a way to enable node.js syntax for the new project?

 

Thanks

Intellij Idea randomly stops working

Hi,

 

I have already posted on stackoverlow and again, a little different on stackoverflow, but no luck.

 

Intellij Idea randomly stops working and therby blocks  some things in my system. The system itself remains responsive, but I cannot start any programs through gnome3 (my wm) anymore.

 

I can switch to the console (I am on ubuntu 15.04) and from there do a

 

    killall -9 java

 

Then idea is killed, and all the program I tried to start immidatly pop up.

 

Now, while the system is "frozen" (in the sense I described above), I noticed that one of my cpu-cores has 100% usage. But looking into htop, no process uses any significant cpu power. The 100% cpu-usage drops, when I kill java.

 

I am using intellij idea for haXe, so it might be related to the intellij-haxe plugin, but I do not know.

 

My system:

 

Ubuntu 15.04 running gnome3.

java version "1.7.0_80"

Intellij Idea 14.1.4

 

Any other ideas of what I could try?

 

Thanks!

Nathan

 

Edit:

 

I ran "jstack -F " to cat a stacktrace. Interestingly, running this comments causes the block to be resolved. This is the output of jstack: https://gist.github.com/RudolfVonKrugstein/afbdc471883b4e5c5db1

How to export code style?

How does one export code styles in IDEA 14.1.1?

Working with Maven & Eclipse projects

My firm uses Eclipse and Maven as the standard development platform. I've been able to use IntelliJ to work with our SCM and Maven successfully. However, when I access the same local code base from both editors, it seems that IntelliJ adds lots of extra entries to Eclipse project configuration. How can I use these two IDEs side by side without having them interfere with one another's project settings?

External Tools report format

Hi all,

 

In IntelliJ, we can set up External Tools to run, and they can return their output in a format that IntelliJ can parse, to display messages, complete with line numbers, file names, and links.

 

Does anyone know where to find the documentation for that output file format, i.e. what structure IntelliJ expects? Is it XML, JSON, or something else? Is there a schema?

 

Brgrds,

 

Christian

Make JSLint and JSHint working by config file and node, as JSCS and TSLint.

Because it is more convenientand does not causedissonance withjscsandtslint. =)

Viewing all 5661 articles
Browse latest View live


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