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

wafrqafr


Block comments not being reformatted/realigned on changes?

$
0
0

Whenever I add curly brackets around a section of code, or remove them, or paste a block of code from the clipboard. I've noticed the block comments are not being realigned with the code. The block comments retain their indents whereas the code is reindented. This is only block comments, inline comments are realigned correctly.

 

Seem to be spending a lot of time manually correcting the indents of modified block comments.

 

Any idea what code style setting this might be. I've only really noticed it the past few weeks, feels like something changed fairly recently (currently using 14.1.4).

ZK framework support

$
0
0

I believe you have a great product so I suggest doing it greater by supporting zk framework.

As you can see from this link (http://www.zkoss.org/product/zkstudio) it is already supported by some java ide.

Keep up the good work guys.

IntelliJ plugin for ZK!

wrfqwarfqwa

fdhdgfhfgjfj

Github plugin is not using proxy settings

$
0
0

Hi all,

 

Using IntelliJ Idea 14.1 on Windows 7.

 

I'm trying to use the Github integration plugin to create a New Project From Version Control through Github.

Well, I have the IDE settings configured to connect through a proxy with credentials. That works fine, because I can download and install

plugins and so on.

 

The problem is that the Github plugin seems not being using the proxy settings, because when I try to clone any project I receive this error message:

 

Clone failed

unable to access 'https://github.co/eyp/Xarcade2Jstick.git/': Received HTTP code 407 from proxy after CONNECT

 

 

The 407 error means the proxy needs credentials. I've tried to config git adding the property http.proxy as http://username:password@myproxyIP:port with:

 

git config --global --add http.proxy http://username:password@myproxyIP:port

 

but it didn't work either.

 

Furthermore, I've tried to use the cntlm proxy, but without success, I get the error: 'Proxy returning invalid challenge!'

 

 

Also I've tried it adding some properties in the idea.exe.vmoptions file, but I get the same 407 error:

 

-Dhttp.proxyHost=myProxyIP
-Dhttp.proxyPort=myProxyPort
-Dhttp.proxyUser=myUsername
-Dhttp.proxyPassword=myPassword
-Dhttps.proxyHost=myProxyIP
-Dhttps.proxyPort=myProxyPort
-Dhttps.proxyUser=myUsername
-Dhttps.proxyPassword=myPassword

 

Any ideas on how to solve this?

 

Thanks in advance.

Javascript highlighting in polymer HTML file

$
0
0

Hello,


We are having a slightly strange problem. We are developing a java web application where we use polymer on the frontend, thus it's practical to edit the .html files in the same IDE.

 

I can see on the IntelliJ javascript features page that it should support highlighting within the <script></tags>, but it just wont work.

 

Any ideas?

 

I am running IDEA 14.1.4 Community Edition

 

Example of file:

 

hello.html:

<dom-module id="my-hello">
    <template>
        <iron-ajax
                auto
                url="http://localhost:8088/ping"
                handle-as="json"
                on-response="hresponse"
                debounce-duration="300"></iron-ajax>
        <div>
            Hi! My name is <span>Jane</span>
        </div>
        <div>
            <h1>Job: <span>{{bajaxResponse.name}}</span>, ID: <span>{{bajaxResponse.id}}</span></h1>
            <p>Progress: <span>{{bajaxResponse.progressPercentage}}</span></p>
        </div>

        <sub-hello bajaxResponse="{{bajaxResponse}}"></sub-hello>
    </template>

    <script>
    var test = "Hello"
    Polymer({
        is: 'my-hello',
        properties: {
            mytest: {
                type: String,
                value: "Hello"
            },
            bajaxResponse: {
                type: Object,
                notify: true
            }
        },
        hresponse: function(request) {
          console.log(request.detail.response);
          this.bajaxResponse = request.detail.response;
        }


    });
  </script>
</dom-module>

 

 

Best Regards,

Jørgen


What is the "default gradle wrapper"

$
0
0

Creating a gradle based project you have the option to chose between using the "default gradle wrapper" and a "customizable gradle wrapper".

Whats the difference between both?

 

Thank you!

  thana

Is it possible to turn off selectively error highlighting?

$
0
0

I have something like the following in a .groovy file:


#!/bin/bash


function trampoline() {

 local interpreter="$1"
  shift

  umask 077
  tmpdir="$(mktemp -d -t $$.XXXXXXXXXXXXXXXX)"
  tmpfile="${tmpdir}/$(basename $0)"

  sed -e '1,/^!#$/d' "$0" >"${tmpfile}" && "${interpreter}" "${tmpfile}" "${@:1}"
  status=${PIPESTATUS[0]}

  rm -rf "${tmpdir}"

  exit ${status}
}


trampoline "${GROOVY_HOME}/bin/groovy" "$@"

!#

println 'aoeu'
Everything past the `!#` should be treated as if it were Groovy but everything prior to that should be treated as if it were shell WRT syntax highlighting. Is there a way to get this to happen or at least tell IntelliJ not to highlight the stuff prior to the `!#`? Not just the highlighting, either, formatting should be bimodal as well.

Getting a JUnit version error after adding new dependencies.

$
0
0

Hi,

 

So i added two new dependencies to use PowerMock in addition to other previous dependencies. Now I'm getting an error:

 

FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:test'.
> Test filtering is not supported for given version of JUnit. Please upgrade JUnit version to at least 4.6.

 

And here are my Gradle dependencies:

 

dependencies {
  testCompile 'org.codehaus.groovy:groovy-all:2.3.7'
    testCompile "junit:junit:$junitVersion"
    testCompile "com.google.code.protoj:protoj-nodep:1.8.4"
    testCompile 'org.powermock:powermock-api-mockito:1.6.1'
    testCompile 'org.powermock:powermock-module-junit4:1.6.1'
  testCompile 'org.mockito:mockito-core:1.9.5'
}

 

I added the 2 PowerMock dependencies. And $junitVersion is 4.11.

 

Before the dependencies the tests were fine. I can run gradle tests on command line aswell and everything works fine.

Problem with indent

$
0
0

I cannot figure out why this indentation is occurring in my code:

 

 

it('should return an array of users from the group', function() {
  var result = jsom.getGroupUsers(2);
  result
  .then(function(data) {
    expect(data.length).toBe(2);
    expect(data[0].displayName).toBe('Brian');
      // why is this indented?
  });
  // this does not indent
});

 

It is not a continuation line as the line before is ended.  This code is inside of a function. 
It only seems to happen inside the then or catch blocks.

 

I am using IntelliJ 14.1.4 Ultimate.

Where is the "do not show this dialog" option for auto-format code in 14.1.4?

$
0
0

In Windows, by default, Code -> Reformat Code is `CTRL+ALT+L` and "Show Reformat File Dialog" is `CTRL+ALT+SHIFT+L`.

 

The latter window has no "show this dialog in the future" checkbox. 

 

I believe it used to live under Settings -> Editor -> General -> Formatting, but in 14.1.4, the only options there are "Show notification after reformat code action" and "Show notification after organize imports action".

 

How it used to be, apparently:

 

http://stackoverflow.com/questions/27747355/intellij-idea-how-to-revoke-reformat-code-optimize-imports-dialog

http://stackoverflow.com/questions/9344667/intellij-idea-code-reformat-options

 

How can I re-enable the "show this dialog" option? 

 

How can I change the default Reformat Code... settings (scope, in particular)? 

Flash App Icon Errors & Problems Copying Image Files to apk / ipa Files.

$
0
0

Hello.

 

I am making a Flash AIR application in IntelliJ IDEA. I am currently trying to test for android, and I am creating the apk file by choosing Build -> Package AIR Application... and then clicking Package. I get this error when I do it:

 

         Failed to package AIR application HeadExploder.apk:

 

               MY_PATH\HeadExploder-app.xml:          error 303: Icon media/icons/exploindeIcon50.png is missing from package    

 

 

The icons section of my HeadExploder-app.xml descriptor file looks like this:

 

<icon>
    <image50x50>./media/icons/exploindeIcon50.png</image50x50>
</icon>

I've tried various things in the value here like:
./media/icons/exploindeIcon50.png
../media/icons/exploindeIcon50.png
media/icons/exploindeIcon50.png
src/media/icons/exploindeIcon50.png
./src/media/icons/exploindeIcon50.png


But nothing I try works. :/

My src folder is at the same package level as the descriptor xml

It goes src/media/icons/ ..icon files..

The build output when I "Make" the project is in
out/production/HeadExploderIntelliJ
folder and contains the images I need in the icons folder.

Screenshot_082815_032202_PM.jpg


However, when I use 7-zip to "open archive" on the 
apk it does not contain the icons folder:

Screenshot_082815_032738_PM.jpg



So my questions are:
- Is my problem actual that the icons folder is missing in the apk?
- If yes, how can I copy the image files folder to the apk?
- If no, how to I add the icon images and prevent the error?

I know other people have gotten past this by using the command 
line ADT to creat the apk. I feel like there must be a way to 
do it in IntelliJ though so I am asking for help. Thanks.


Feature request: save clipboard

$
0
0

Scenario: Cut code in one class. Switch to other class to paste. Power outage.

 

Since IntelliJ IDEA already saved, we have data loss. I don't know if there is some kind of short term history that allows a rollback in such a situation. In any case:

 

It would just be very convenient to be able to continue work just where we left off, incl. the clipboard history. So, the moment IntelliJ saves a class, the clipboard should also be saved (before the class!).

 

For this, IntelliJ should denote internally which clipboard content was created from within the IDE so that upon saving, only those entries are saved, so that no confidential information is saved.


asfasfasfasf

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

Light weight Java IDE

$
0
0

IntelliJ 4 was very fast, but 14 is very slow.

Any light weight Java IDE which supports the latest JDK?

Remote Deploy, Execute and Debug in IntelliJ

$
0
0

This might be an easy one for some of you. But I am completely puzzled.

 

I have an Application with a normal "main(args)" method. I want to deploy the JAR with its dependencies to a remote server, execute it and (if possible) also be attach a debugger. Although I searched the documentation, I cannot see how this should work. There is a remote-profile in 'Debug Configurations" dialog, but it does not let me pick what application I actually want to run. How to go about this? How do I have to prepare the remote machine (install what software) to make this work?

 

~Ma

Syntax highlighter for config files (.cfg, .ini, .rc) [closed]

$
0
0

It's higly strange, but I can not find any configs highlighter.
Not in idea (14.1 ultimate), nor in plugins.

 

How it is possible?

Viewing all 5661 articles
Browse latest View live


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